Score:1

error installing php dependencies on ubuntu

cn flag

I have a vps with linux ubuntu 20.04 LTS installed, I also installed the lamp stack to upload my web projects, php with version 7.4, now I need to install some more php libraries for example: php-gd so run the command:

sudo apt-get install php7.4-gd

but when installing I get the following error: php7.4-cli : Depends: php7.4-common (= 7.4.3-4ubuntu2.18) but 7.4.3-4ubuntu2.17 is to be installed

and actually it won't let me install anything else, because it always throws me that error.. any idea how to solve this?

Score:0
iq flag

There is a dependency issue with the php7.4-cli, here is things you can do to try to fix that, first do an update and upgrade s

udo apt update
sudo apt upgrade

Then clear your cache

sudo apt clean
sudo apt update
sudo apt install php7.4-gd

If that still dont work we can try removing the conflicting package

sudo apt remove php7.4-cli
sudo apt install php7.4-gd

If not we can still force the install sudo apt install php7.4-gd --allow-downgrades

I sit in a Tesla and translated this thread with Ai:

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.