【发布时间】:2021-03-02 16:57:12
【问题描述】:
可以在 Debian 10 上安装 php5.6-imagick 吗?我安装了 debian 10 并在其中移动了我的旧代码库,但站点无法使用 php7,所以我想出了如何安装 php5.6,但是当我尝试安装 php5.6-imagick 时出现此错误:
The following packages have unmet dependencies:
php5.6-imagick : Depends: libmagickcore-6.q16-3 (>= 8:6.9.6.8) but it is not installable
Depends: libmagickwand-6.q16-3 (>= 8:6.9.6.8) but it is not installable
Recommends: ghostscript but it is not going to be installed
Recommends: ttf-dejavu-core but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
输出:grep -Rn --include=\*.list ^[^\#] /etc/apt/
/etc/apt/sources.list.d/php.list:1:deb https://packages.sury.org/php/ stretch main
/etc/apt/sources.list.d/ondrej-ubuntu-php-hirsute.list:1:deb http://ppa.launchpad.net/ondrej/php/ubuntu hirsute main
/etc/apt/sources.list:7:deb http://deb.debian.org/debian/ buster main
/etc/apt/sources.list:8:deb-src http://deb.debian.org/debian/ buster main
/etc/apt/sources.list:10:deb http://security.debian.org/debian-security buster/updates main
/etc/apt/sources.list:11:deb-src http://security.debian.org/debian-security buster/updates main
/etc/apt/sources.list:14:deb http://deb.debian.org/debian/ buster-updates main
/etc/apt/sources.list:15:deb-src http://deb.debian.org/debian/ buster-updates main
【问题讨论】:
-
强制尖叫:PHP 5.6 已终止生命,并在两年多前停止获得官方安全更新。停止使用它。修复您的代码库以使用当前版本的 PHP (8.0.2)
-
请添加
grep -Rn --include=\*.list ^[^\#] /etc/apt/的输出 -
编辑了我的帖子。
标签: php debian imagick debian-buster