大网数据广告活动
服务器运维问答

Cannot install lsphp74-imagick: unmet dependencies

· 52CE 我爱测

I have an Ubuntu 20.04 LTS instance running on Amazon Lightsail and I have trouble installing lsphp74-imagick . $ sudo apt install lsphp74-imagick Response: The following packages have unmet dependencies: lsphp74-imagick : Depend…

问题原文

原帖链接 · martintrapp · CC BY-SA 4.0

I have an Ubuntu 20.04 LTS instance running on Amazon Lightsail and I have trouble installing lsphp74-imagick.

$ sudo apt install lsphp74-imagick

Response:

The following packages have unmet dependencies:
lsphp74-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: ttf-dejavu-core but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

For libmagickcore I get the following:

$ sudo apt install libmagickcore-6.q16-3
..
E: Package 'libmagickcore-6.q16-3' has no installation candidate

Not sure where to go from here. Did anyone run into this?

Any help is appreciated.

已采纳解答

原帖链接 · djdomi · CC BY-SA 4.0

The Original Issue sounded like an Repository issue. And it was so.

To fix that:

Install automatically the Repository

wget -O - http://rpms.litespeedtech.com/debian/enable_lst_debian_repo.sh | bash

Fix Manually

You may find outdated lines with

grep -Ri litespeedtech /etc/apt/*

Install the GPG Keys and Sources

wget -qO - https://rpms.litespeedtech.com/debian/lst_repo.gpg | sudo apt-key add -
sudo echo "deb http://rpms.litespeedtech.com/debian/ focal main" > /etc/apt/sources.list.d/openlitespeed.list

then run apt-get update and it should be gone.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2021-09-13)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。