损坏的PHP安装?取消设置对任何包的依赖项


Broken PHP install? Unmet dependencies on any package

我需要在我的服务器上启用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

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