E: Package 'php7.0-curl' has no installation candidate code example
Example: Package 'php7.4-curl' has no installation candidate
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt install php7.4-curl
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt install php7.4-curl