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

Php 以下包具有未满足的依赖项,php,ubuntu,gmp,apt-get,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 situati

我正试图在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.

为什么它不让我安装这个?

不知何故,您安装了一个特殊版本的php common(=5.5.17+dfsg-2+deb.sury.org~precise+1) 设法


然后再次安装。

您的安装似乎被从某个外来repo安装的
php5-common-5.5.17+dfsg-2+deb.sury.org~precise+1
软件包破坏

尝试从以下内容开始:

sudo apt-search php5

删除所有看起来可疑的内容,然后从正式回购中重新安装。我认为,简单地删除这个外来的
common
并重新安装
gmp
可能会解决一个问题。

通过谷歌搜索“无法纠正问题,您持有的软件包已损坏”。这让我想到了有用的sudo apt get install php5 common php5 gmpI应该知道重新安装可以解决我的问题。非常感谢!
sudo apt-search php5