Php

Debian lenny 5 安裝 php-dev

  • March 24, 2011

我正在嘗試安裝 apt-get install 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: autoconf (>= 2.63) but 2.61-8 is to be installed
           Depends: libtool (>= 2.2) but it is not going to be installed
E: Broken packages

我該如何解決這種情況?

問題是你試圖從squeeze而不是lenny安裝php5-dev。php5-dev 的 lenny 版本不依賴於 libtool 或 autoconf 的任何特定版本,就像擠壓版本那樣。如果我猜你是如何陷入這種情況的,我猜你是因為你現在或某個時候在你的 sources.list 中“擠壓”並安裝了一些東西,或者你正在引用“穩定”而不是你的sources.list中的“lenny”或“squeeze”,現在你可能會在squeeze中執行一些lenny的組合。apt-cache policy php5-dev應該告訴您從哪裡獲得 php5-dev,這可能會有所幫助。

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