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

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


Solution 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