Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

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!
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.
Hi there,
What you could try doing is to remove the repository that is causing the problem and then once you are ready, you could re-add the correct repository again for the new Ubuntu version.
You could do that in two ways:
grep -r mod-pagespeed /etc/apt/*
Open the file with your favourite text editor and comment out the mod-pagespeed lines by adding a # in the beginning of the line
Alternatively, you can use the add-apt-repository, the command should look something like this:
sudo add-apt-repository "deb [arch=amd64] http://dl.google.com/linux/mod-pagespeed/deb stable main"
Then update the package index: sudo apt update.
And finally, rerun the upgrade. After the upgrade is complete, you could re-add the repo as normal.
Make sure to always back up your Droplet when doing such major upgrades.
Let me know how it goes!
Best,
Bobby