2015-02-11 43 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

相關問題