我已经尝试过在debian 9中安装php,但我没有使用。
我做了这个命令:
sudo apt-get -y install php7.0 libapache2-mod-php7.0错误发生后:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libapache2-mod-php7.0 : Depends: php7.0-cli but it is not going to be installed
Depends: php7.0-opcache but it is not going to be installed
Depends: libc6 (>= 2.27) but 2.24-11+deb9u3 is to be installed
E: Unable to correct problems, you have held broken packages.(我试图安装这个依赖项,但我做不到,总是依赖于另一个依赖项)
/etc/apt/sources.list .列表
#
# deb cdrom:[Debian GNU/Linux 9.4.0 _Stretch_ - Official amd64 NETINST 20180310$
# deb cdrom:[Debian GNU/Linux 9.4.0 _Stretch_ - Official amd64 NETINST 20180310$
deb http://ftp.br.debian.org/debian/ stretch main
deb-src http://ftp.br.debian.org/debian/ stretch main
deb http://security.debian.org/debian-security stretch/updates main
deb-src http://security.debian.org/debian-security stretch/updates main
# stretch-updates, previously known as 'volatile'
deb http://ftp.br.debian.org/debian/ stretch-updates main
deb-src http://ftp.br.debian.org/debian/ stretch-updates main
deb http://http.us.debian.org/debian/ wheezy main contrib non-free有人能帮我吗?
先谢
发布于 2018-07-09 15:04:01
似乎您已经合并到您的apt文件喘息和扩展版本的debian。尝试删除文件的最后一行:
deb http://http.us.debian.org/debian/ wheezy main contrib non-free然后尝试一个apt更新命令。然后您可以尝试安装php7。
但是,请注意,如果您是从一个喘息安装,你必须升级它来拉伸在尝试安装php7.0之前
https://stackoverflow.com/questions/51233870
复制相似问题