我正在尝试在 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)
尝试
apt-get remove php5-common
然后重新安装。
关于php - 以下包具有未满足的依赖项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27862752/