Score:1

Cannot install lsphp74-imagick: unmet dependencies

cn flag

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 avatar
za flag
`wget -O - http://rpms.litespeedtech.com/debian/enable_lst_debian_repo.sh | bash` try that first
cn flag
unfortunately that did not help
djdomi avatar
za flag
more verbose output
cn flag
Thank you for pointing me the right direction. It was a repo issue. After a fresh install I tried the following and it worked without any issue: ```wget -qO - https://rpms.litespeedtech.com/debian/lst_repo.gpg | sudo apt-key add - ``` then ```echo "deb http://rpms.litespeedtech.com/debian/ focal main" | sudo tee /etc/apt/sources.list.d/openlitespeed.list```
djdomi avatar
za flag
I will add tomorrow it as answer and I hope you can accept it then ;)
cn flag
You can add it then I'll accept it but please give at least a vote to my question.
Score:1
za flag

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.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.