Php

Debian 7.0 安裝包 php5-dev 失敗

  • February 8, 2016

嘗試在 debian 中安裝時,顯示libssl-dev需要依賴項

apt-get 安裝 php5-dev

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-dev : Depends: libssl-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

安裝libssl-dev包需要依賴zlib1g-dev。安裝zliblg-dev包有unment依賴,

The following packages have unmet dependencies:
zlib1g-dev : Depends: zlib1g (= 1:1.2.3.4.dfsg-3) but 1:1.2.7.dfsg-13 is to be installed

zlib1g-dev安裝包怎麼安裝dev5-php

您可以通過鍵入以下內容來安裝它:

su -c 'aptitude install libssl-dev'

如果沒有完成,請分享輸出

apt-cache show libssl-dev

從目錄發布您的文本:/etc/apt/sources.list查看儲存庫列表是否足夠。查看連結,這可能值得一看。

引用自:https://unix.stackexchange.com/questions/260314