1

我无法安装 curl。您可以在下面看到错误消息。当我安装 php5-fpm 和 Nginx 时,我需要 /etc/apt/sources.list 中的以下行:

in deb http://php53.dotdeb.org stable all

没有注释掉这一行,但看起来服务器无论如何都在使用 dotdeb.org。如何在不卸载 php5-fpm 的情况下解决这个问题?

srv106:/etc/php5/fpm# apt-get install php5-curl
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-curl : Depends: php5-common (= 5.3.3-7+squeeze9) but 5.3.11-1~dotdeb.0 is to be installed
E: Broken packages
4

1 回答 1

0

php5-curl需要php5-commonsqueeze,也php5-fpm需要php5-commondotdeb,安装不上是正常的。您是否尝试过php5-curl在 source.list 中不注释 dotdeb.org 的情况下安装?因为php5-curl存在于这些存储库中。

于 2012-08-28T12:39:25.147 回答