如何解决如何在 Debian 10 上安装 php-5.6 imagick
可以在 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
解决方法
删除 ondrej-ubuntu-php-hirsute.list
用于 Ubuntu hirsute:
sudo rm /etc/apt/sources.list.d/ondrej-ubuntu-php-hirsute.list
在 Sury 存储库中使用 buster
代号代替 stretch
:
sudo sed -i 's/stretch/buster/' /etc/apt/sources.list.d/php.list
然后运行:
sudo apt update
sudo apt install php5.6-imagick
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。