Debian 9.4:无法安装 php7.2-curl

Debian 9.4:无法安装 php7.2-curl

尝试从 Debian 9.4 上的知名存储库 deb.sury.org 安装 php7.2-curl 库。但它给出了错误:

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

那么,我该如何安装 libcurl4,看起来普通的 Debian 存储库中只有 libcurl3 呢?

答案1

这里最简单的解决方案是升级到 Debian 10/Buster,因为php7.2-curl默认情况下它已经具有相应的依赖项。

显然,升级到 Buster 后,不需要 deb.sury.org 存储库。

来自 Debian 软件包:https://packages.debian.org/sid/php7.2-curl

答案2

安装 libcurl4 对我有用

apt install libcurl4

然后安装了php7.2-curl,重新启动apache2没有问题。

相关内容