【问题标题】:The following packages have unmet dependencies以下包具有未满足的依赖项
【发布时间】:2015-01-09 22:31:43
【问题描述】:

我正在尝试在 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 ubuntu gmp apt-get


【解决方案1】:

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

apt-get remove php5-common 

然后重新安装。

【讨论】:

  • 我应该知道重新安装会解决我的问题。非常感谢!
【解决方案2】:

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

尝试从:

sudo apt-search php5

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

【讨论】:

    猜你喜欢
    • 2022-07-05
    • 2014-01-08
    • 1970-01-01
    • 1970-01-01
    • 2020-09-11
    • 1970-01-01
    • 2019-09-12
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多