php5-fpm:依赖:php5-common(= 5.3.10-1ubuntu3.8)但需要安装 5.4.6-1ubuntu1.4

php5-fpm:依赖:php5-common(= 5.3.10-1ubuntu3.8)但需要安装 5.4.6-1ubuntu1.4

我想使用 FastCGI 在 Nginx 后面设置 PHP,但我坚持sudo apt-get -f install php5-fpm

我尝试过的:

sudo apt-get -f install php5-fpm 
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-fpm : Depends: php5-common (= 5.3.10-1ubuntu3.8) but 5.4.6-1ubuntu1.4 is to be installed
E: Unable to correct problems, you have held broken packages.

我的源列表(该服务器仅限于乌克兰网络,不连接到世界各地)

deb http://mirror.yandex.ru/ubuntu precise universe
deb http://mirror.yandex.ru/ubuntu precise-updates universe

deb http://mirror.yandex.ru/ubuntu quantal-security main restricted
deb-src http://mirror.yandex.ru/ubuntu quantal-security main restricted

答案1

问题在于您混合了不同版本的存储库。您不应该这样做!

精确的宇宙,因为 yandex 没有主要限制

Yandex 存储库包含mainrestricteduniversemultiverse如下precise precise-updates所示precise-security

在此处输入图片描述

在此处输入图片描述

在此处输入图片描述

修复存储库后,只需执行sudo apt-get update此操作即可。

quantal-security 主要受到限制,因为我需要 php5-fpm

Precise 有包裹!

http://packages.ubuntu.com/search?keywords=php5-fpm

相关内容