You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Ubuntu22.04安装NextCloud遇php7.0包不可用问题求助

问题:Ubuntu 22.04安装NextCloud时PHP7.0包不可用

编辑:此前遵循的教程已过时导致操作失败,后续通过视频教程找到了解决方案

我原本按照教程在家庭服务器上安装NextCloud,完成数据库软件安装后,需安装最后一个组件——PHP。但执行教程中的命令时遇到如下错误:

Package php7.0-common is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source

我此前尝试过一些解决方案,但均已过时,因此发布此帖求助。非常感谢您的帮助。

Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04

查找解决方案时,我已执行以下命令尝试修复问题:

  • sudo add-apt-repository ppa:ondrej/php-7.0
  • sudo apt-get install software-properties-common -y
  • sudo apt-get update
  • sudo apt-cache search php7.0-curl
    以及相关问答中的 sudo apt-get install php7.0-curl

内容的提问来源于stack exchange,提问作者Maxou

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.01 08:40:42