“curl : Depends: libcurl4 (= 7.61.0-1ubuntu2.2) but it is not going to be installed” Ubuntu 18.10 with PHP 7.2.10

穆斯塔法·塔赫里

我正在努力在 Ubuntu 18.10 中安装 cURL 模块。从 17.10 升级到 18.10 cURL 被移除/删除。现在当我尝试执行命令时

sudo apt-get install php7.2-curl

我收到此错误:

The following packages have unmet dependencies:
  php7.2-curl :
  Depends: libcurl4 (>= 7.44.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

sudo apt-get install curl

给出错误

The following packages have unmet dependencies:
  curl : Depends: libcurl4 (= 7.61.0-1ubuntu2.2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我的 /etc/apt/sources.list.d/ 的内容列表

apt-cache 策略 php7.2-curl curl libcurl4 的输出

apt update 和 apt dist-upgrade 的输出

Other Software List

用户535733

问题:在准备 dist-upgrade 时,您似乎犯了错误:

  • 您未能禁用 17.10 存储库。
  • 您未能卸载非 Ubuntu 软件,并且没有禁用这些 PPA。

现在,您被各种错误版本的软件包所困扰,这些软件包(可以理解)阻塞了 apt。我们通常称之为部分不完整的升级。所有这些信息都来自您提供的输出。

解决方案:您有两个选择:

  1. 收拾残局。

    • 卸载所有 PPA 和其他非 Ubuntu 软件,并禁用它们的来源。
    • 禁用 17.10 存储库。
    • 然后运行 ​​apt update 和 apt dist-upgrade 以使您尽可能接近库存 18.10。
    • 然后,一一开始添加回非 Ubuntu 源和软件。
  2. 如果您不知道如何做 #1,那么请保留您的数据并执行 18.10 的全新安装。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章