Question
cURL is not installed on this server after updating to Ubuntu 20.04
I’ve updated Ubuntu from 16.04 to 18.04 and then from 18.04 to 20.04. Now two plugins on Wordpress give me these errors:
1- OneSignal Push: cURL is not installed on this server. cURL is required to send notifications. Please make sure cURL is installed on your server before continuing.
2- Composer detected issues in your platform: Your Composer dependencies require the following PHP extensions to be installed: curl
I’ve tried every related solution on the internet so far but could not solve this problem yet. I ran sudo apt-get install curl, but nothing has changed. I also got this: curl is already the newest version (7.68.0-1ubuntu2.2)
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
More information:
sudo apt install php-curl > output > The following packages have unmet dependencies: php-curl : Depends: php7.4-curl but it is not going to be installed E: Unable to correct problems, you have held broken packages
It is stated in another forum that this error is related to remnants from the previous PHP installations of previous Ubuntu versions.
Checking which packages that contain curl are (still) installed: dpkg -l ’curl’ | grep ^ii
output:
libcurl3-gnutls:amd64 7.68.0-1ubuntu2.2 amd64 easy-to-use client-side URL transfer library (GnuTLS flavour) ii libcurl4:amd64 7.68.0-1ubuntu2.2 amd64 easy-to-use client-side URL transfer library (OpenSSL flavour) ii python3-pycurl 7.43.0.2-1ubuntu5 amd64 Python bindings to libcurl (Python 3) –
But, I don’t know how to go from here.