无法在Debian上安装php5-curl

时间:2012-05-20 13:22:54

标签: curl debian

我无法安装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

1 个答案:

答案 0 :(得分:0)

php5-curl需要php5-common进行挤压,php5-fpm需要来自dotdeb的php5-common,您无法安装它是正常的。你有没有试过安装php5-curl而没有在sources.list中评论dotdeb.org?因为php5-curl存在于这些存储库中。