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

标签 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.

为什么不让我安装这个?

最佳答案

不知何故,您安装了一个特殊版本的 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/

相关文章:

php - MySQL在单个单元格中通过多个ID进行连接查询

node.js - Docker 容器中的 Ffmpeg 错误 : ffmpeg exited with code 1:

linux - 定期将 bash 历史推送到 github

python - Gtk-警告 ** : cannot open display: :0. 0 --- Ubuntu 14.04

c++ - 使用 gmp mpz_pow_ui 的 mpz 类型溢出

PHP cURL 调用返回错误 56 和 NSS 错误 -12195

php - 调用 MySQL 存储过程时数据包乱序错误

c - 如何使用 GMP 计算 2 ^ -18?

php - Mysql查询: auto-increment manipulation and update on the foreign table

c++ - 可以以某种方式省略 `get_mpz_t()` 吗?