Apply for Free VPS

Upgrade an Ubuntu release safely

Updated 27 Nov 2026 ubuntu upgrade

Move from one Ubuntu LTS to the next with a backup and a way back.

A release upgrade changes many packages at once. For important servers, building a new server and moving the application is often safer.

Before

  1. Take a backup you have tested.
  2. Check that your software supports the new release.
  3. Confirm you can use the browser console and know your root password.
  4. Check free space with df -h /.

Prepare

sudo apt update && sudo apt full-upgrade -y
sudo reboot

Upgrade

sudo apt install -y tmux ubuntu-release-upgrader-core
tmux new -s upgrade
sudo do-release-upgrade

Third-party repositories are disabled during the upgrade; re-enable the ones you need afterwards. When asked about changed configuration files, keep your version unless you know the new one is needed, and compare them later.

After

lsb_release -a
systemctl --failed
sudo apt autoremove --purge

Test the application, SSH settings, scheduled jobs and certificates.

Was this helpful?

Report outdated or incorrect information