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

“It is not installable”表示APT不知道从哪里得到这个包。您要么在 /etc/apt 中有不兼容的源,要么您需要使用 apt-get update.

更新包缓存