← ServerPilot Docs

How to Upgrade Ubuntu

Determine which Ubuntu version a server is running

To see which Ubuntu version a server is running, SSH into the server and run the following command:

cat /etc/lsb-release

Check if your Ubuntu version has reached its End of Life

Check the End of Life date in the list of Ubuntu versions to know if an Ubuntu version still receives security updates.

Decide whether to upgrade Ubuntu or migrate apps to a new server

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.

Upgrading to a newer Ubuntu release

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.

Last updated: May 14, 2024

Launch your first site in 5 minutes