To see which Ubuntu version a server is running, SSH into the server and run the following command:
cat /etc/lsb-release
Check the End of Life date in the list of Ubuntu versions to know if an Ubuntu version still receives security updates.
Rather than upgrading Ubuntu, it's often better to create a new server running the latest version of Ubuntu, connect the new server to ServerPilot, and migrate the apps from your existing server to the new server.
When upgrading Ubuntu, you can only upgrade to the next Ubuntu version (you cannot skip versions). For example, to upgrade from Ubuntu 20.04 to 24.04. you must perform two separate upgrades: first upgrade from Ubuntu 20.04 to 22.04, and then upgrade from Ubuntu 22.04 to 24.04.
Our articles below have detailed instructions for performing each Ubuntu version upgrade.