Score:-2

E: Package 'libcurl3' has no installation candidate in ubuntu21.04?

th flag

I am very new to the ubuntu os , when i tried to install php7.2-curl extension(sudo apt-get install php7.2-curl)it throws following error

The following packages have unmet dependencies:
 php7.2-curl : Depends: php7.2-common (= 7.2.34-23+ubuntu21.04.1+deb.sury.org+1) but 7.2.34-24+0~20210826.64+debian9~1.gbp428dfa is to be installed
E: Unable to correct problems, you have held broken packages.


i find some solution to fix this issue (sudo apt-get install libcurl13 php7.2-curl) when i run this command it shows following error ,How to resolve the issue ,Help me to fix this issue

Package libcurl3 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  libcurl4:i386 libcurl4

E: Package 'libcurl3' has no installation candidate

pLumo avatar
in flag
Does this answer your question? [How do I resolve unmet dependencies after adding a PPA?](https://askubuntu.com/questions/140246/how-do-i-resolve-unmet-dependencies-after-adding-a-ppa)
Nmath avatar
ng flag
"*you have held broken packages*" - package management must be in order before installing new software. `sudo apt update` should be executed before any other `apt` commands so that you are dealing with the current list of available software and generally updates need to be completed with `sudo apt upgrade` before installing anything new.
Sravani avatar
th flag
@pLumo, that's not related to my question
pLumo avatar
in flag
Your sources are clearly broken because you added some non-standard repositories. If it is a ppa or a manually added repo doesn't matter, the duplicate explains it very well how to fix it.
pLumo avatar
in flag
Also asked [here](https://stackoverflow.com/questions/69176516/how-to-install-php7-2-curl-extension-in-ubuntu21-04), with more information given ...
pLumo avatar
in flag
You have conflicting repositories. You have to remove the `https://packages.sury.org/php stretch/main amd64 Packages` repository and all packages that came with it. If you really need 7.2 (instead of 7.4 that is provided by Ubuntu) you can use ondreys ppa (that you already do) , otherwise I would suggest to remove that ppa with `ppa-purge` and install 7.4. All this information is in the duplicate, i linked above.
Score:1
sa flag

libcurl3 has been replaced by libcurl4 in Ubuntu 21.04, so if you install libcurl4 Ubuntu will use it instead of libcurl3. Open the terminal and type:

sudo apt update
sudo apt install libcurl4
sudo ln -s /usr/lib/x86_64-linux-gnu/libcurl.so.4.5.0 /usr/lib/x86_64-linux-gnu/libcurl.so.4.7.0
sudo apt install php7.2-curl
kr flag
Can you explain the meaning behind libcurl.so.4.5.0 and libcurl.so.4.7.0 ?
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.