Debian lenny 5 安装 php-dev

Debian lenny 5 安装 php-dev

我正在尝试安装 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

我该如何解决这种情况?

答案1

问题是您正在尝试从squeeze而不是lenny安装php5-dev。 php5-dev 的 lenny 版本并不像挤压版本那样依赖于任何特定版本的 libtool 或 autoconf。如果我猜你是如何陷入这种情况的,我猜你陷入这种情况是因为你现在或在某个时候在你的sources.list中“挤压”并安装了一些东西,或者也许你引用的是“稳定”而不是您的sources.list中的“lenny”或“squeeze”,现在您可能会在squeeze中运行一些lenny的混合。apt-cache policy php5-dev应该告诉你从哪里获得 php5-dev,这可能会有所帮助。

相关内容