-2

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

6
  • 1
    Does this answer your question? How do I resolve unmet dependencies after adding a PPA?
    – pLumo
    Sep 15 at 6:31
  • "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.
    – Nmath
    Sep 15 at 6:40
  • @pLumo, that's not related to my question
    – Sravani
    Sep 15 at 6:44
  • 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
    Sep 15 at 6:48
  • Also asked here, with more information given ...
    – pLumo
    Sep 15 at 6:53
1

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.