2015-02-11 79 views
-1

我需要我的服务器上启用APC,但不是一个单一的包将安装(甚至PHP5表示,它已经不能满足的依赖,但已安装)破碎的PHP安装?在任何包装不能满足的依赖

我得到的错误说,它不会安装包裹。我试图-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 

回答

0

“这不是安装”是指APT不知道从哪里得到这个包。您在/etc/apt中有不兼容的来源,或者您需要使用apt-get update来更新程序包缓存。

+0

谢谢,这有所帮助,但添加的源代码是安装php5-fpm并最终php apc,而不是它说这些软件包不可用。 – WASasquatch 2015-02-11 01:16:33

+1

它说php5-fpm是可用的(可能来自增加的来源),但它取决于libdb5.1这不是(可能应该在分布源)。这通常意味着您添加了不同版本的发行版的源代码。 – StenSoft 2015-02-11 01:18:31

+0

我对他的错误评论标签为OS版本 – WASasquatch 2015-02-11 02:32:29