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,
Usual steps are
sudo apt update
sudo apt upgrade
sudo apt dist-upgrade
However, doing an upgrade from 14 to 22 is quite a big leap, and considering you are on 14 when it’s way past its EOT, I would assume that you have a lot of outdated software which might not work on Ubuntu 22, and as a whole have issues when upgrading.
As such, before you upgrade, create a snapshot of your Droplet:
https://docs.digitalocean.com/products/snapshots/
Then proceed with the upgrade.
Bear in mind that it might just be easier to create a new Ubuntu 22.04 droplet. I would even recommend going to 24.04, as 22.04 is also a bit old and then migrate your stuff over.