以下包具有未满足的依赖项

时间:2015-01-09 14:28:04

标签: php ubuntu gmp apt-get

我试图在Ubuntu 14.04上安装GMP:

$ sudo apt-get install php5-gmp
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-gmp : Depends: php5-common (= 5.5.9+dfsg-1ubuntu4.5) but 5.5.17+dfsg-2+deb.sury.org~precise+1 is to be installed
E: Unable to correct problems, you have held broken packages.

为什么不让我安装这个?

2 个答案:

答案 0 :(得分:2)

不知怎的,你已经安装了一个特殊版本的php-common(= 5.5.17 + dfsg-2 + deb.sury.org~minision + 1) 试着

apt-get remove php5-common 

然后重新安装。

答案 1 :(得分:0)

您的安装似乎被某个外星人回购安装的php5-common-5.5.17+dfsg-2+deb.sury.org~precise+1包破坏了。

尝试开始:

sudo apt-search php5

删除所有可疑的东西,然后从官方仓库重新安装。我认为,简单删除此外星人common并重新安装gmp可能会解决问题。

相关问题