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
sudo apt update
should be executed before any otherapt
commands so that you are dealing with the current list of available software and generally updates need to be completed withsudo apt upgrade
before installing anything new. – Nmath Sep 15 '21 at 06:40https://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 withppa-purge
and install 7.4. All this information is in the duplicate, i linked above. – pLumo Sep 15 '21 at 07:03