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.
Heya, @joelhobsn
Before attempting a major upgrade on any system, you should make sure you won’t lose data if the upgrade goes awry. The best way to accomplish this is to make a backup of your entire filesystem. Failing that, ensure that you have copies of user home directories, any custom configuration files, and data stored by services such as relational databases.
On a DigitalOcean Droplet, one approach is to power down the system and take a snapshot (powering down ensures that the filesystem will be more consistent). See How to Create Snapshots of Droplets for more details on the snapshot process. After you have verified that the Ubuntu update was successful, you can delete the snapshot so that you will no longer be charged for its storage.
For backup methods which will work on most Ubuntu systems, see How To Choose an Effective Backup Strategy for your VPS.
Ubuntu no longer supports apt-key adv, so you need to manually import the key.
sudo mkdir -p /etc/apt/keyrings
sudo curl -fsSL https://repos-droplet.digitalocean.com/apt/droplet-agent.asc | sudo tee /etc/apt/keyrings/droplet-agent.asc
Then update the DigitalOcean repository configuration:
echo "deb [signed-by=/etc/apt/keyrings/droplet-agent.asc] https://repos-droplet.digitalocean.com/apt/droplet-agent main main" | sudo tee /etc/apt/sources.list.d/droplet-agent.list
Finally, update the package lists:
sudo apt update
After fixing the repository errors:
sudo apt clean
sudo apt autoclean
sudo apt update
sudo apt upgrade
Then, retry your Ubuntu upgrade:
sudo do-release-upgrade
Hope that this helps!