Ubuntu 20.04 LTS to 22.04 LTS has crashed update/upgrade fetch

I was following this tutorial( and I managed to upgrade to Ubuntu 22.04 with no problem.

Then after some time I was going to my personal WordPress page admin and wanted to install a new plugin and I saw this big red message stating “An unexpected error occurred. Something could be wrong with or the way this server is configured. If the problem persists, try asking in the support forum.” Image -->

Then I saw that **CURL **does not seem to be working on the server when I looked in Site Health Section Image -->

Then I tried to update and upgrade on the server with no result with the error stating “Failed to fetch”. Image -->

Does anyone know maybe how I can resolve this error?

Best regards.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Site Moderator
Site Moderator badge
November 28, 2022

Hi @damir,

The curl: (6) Could not resolve host: error doesn’t mean you don’t have cURL installed on your droplet but that you can’t connect to the said website for a reason.

This could be a few things, like a firewall issue. Check your firewall (ufw/iptables) and see if everything is correctly set there.

Additionally, it’s possible there is a network configuration error like IPv6 being enabled or you using a Wrong DNS server.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up