破解PHP安装?任何包的未满足依赖关系

时间:2015-02-11 01:02:05

标签: php debian failed-installation

我需要在我的服务器上启用APC,但是不会安装单个软件包(即使php5说它有未满足的依赖项但已安装)

我得到的错误说它不会安装软件包。我尝试-f--fix-missing无效

apt-get -f install php5 php5-fpm php-pear php5-common php5-mcrypt php5-mysql php5-cli php5-gd
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:
 php5-cli : Depends: libdb5.1 but it is not installable
            Depends: libssl1.0.0 (>= 1.0.0) but it is not installable
            Depends: libxml2 (>= 2.8.0) but 2.7.8.dfsg-2+squeeze8 is to be installed
            Depends: libedit2 (>= 2.11-20080614-4) but 2.11-20080614-2 is to be installed
 php5-common : Depends: psmisc (>= 22.15-1~) but 22.11-1 is to be installed
 php5-fpm : Depends: libdb5.1 but it is not installable
            Depends: libssl1.0.0 (>= 1.0.0) but it is not installable
            Depends: libxml2 (>= 2.8.0) but 2.7.8.dfsg-2+squeeze8 is to be installed
 php5-gd : Depends: libjpeg8 (>= 8c) but it is not going to be installed
 php5-mcrypt : Depends: libltdl7 (>= 2.4.2) but 2.2.6b-2 is to be installed
 php5-mysql : Depends: libmysqlclient18 (>= 5.5.24+dfsg-1) but it is not going to be installed
E: Broken packages

1 个答案:

答案 0 :(得分:0)

“它不可安装”意味着APT不知道从哪里获得此包。您在/etc/apt中有不兼容的来源,或者您需要使用apt-get update更新包缓存。