Categories: TutorialsUbuntu

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 26.04 LTS

Ubuntu 26.04 LTS is a Long-Term Support release that delivers improved stability, stronger security, updated software, and enhanced system performance. If your server is still running Ubuntu 18.04 LTS, upgrading to Ubuntu 26.04 LTS is recommended to benefit from the latest features and ongoing security updates.

Before performing the upgrade, make sure to back up your server. While many VPS providers offer the option to reinstall the operating system, doing so removes all existing files, applications, and configurations. Creating a snapshot or using your preferred backup solution allows you to restore your server if any issues arise during the upgrade.

Start by updating your current Ubuntu 18.04 installation. Install all available package updates and reboot the server afterward by running:

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

Once the system has restarted, remove any obsolete packages that are no longer required:

sudo apt --purge autoremove

Next, ensure the release upgrade utility is installed. If it is not already present, install it with the following command:

sudo apt install update-manager-core

After your system is fully updated, you can begin the distribution upgrade by executing:

sudo do-release-upgrade

If the upgrade tool reports that no new LTS release is available, you can instruct it to look for development releases by using:

sudo do-release-upgrade -d

Follow the prompts displayed throughout the upgrade process. The installer will download the required packages, replace outdated components, and ask for confirmation when necessary. Once the installation is complete, restart the server to finalize the upgrade.

After the reboot, verify that the new release has been installed successfully by checking the operating system version:

lsb_release -a

A successful upgrade should return output similar to the following:

Distributor ID: Ubuntu
Description: Ubuntu 26.04 LTS
Release: 26.04
Codename: [Ubuntu 26.04 Codename]

Your server has now been successfully upgraded from Ubuntu 18.04 LTS to Ubuntu 26.04 LTS. You can now take advantage of the latest security improvements, updated packages, and long-term support available in the new release.

Ubuntu Server Admin

Recent Posts

🚀 Deploy ERPNext on Ubuntu VPS

This article provides a guide demonstrating how to deploy ERPNext on Ubuntu VPS. This guide…

3 days ago

Advantech AOM-2721 is now Ubuntu Certified

Canonical announces that the Advantech AOM-2721 is officially joining the list of Ubuntu Certified Hardware.…

1 week ago

Ruby and Rails Performance Roundup: The Backlog Edition

Yet again instead of tweets, a blog post. The backlog got out of hand -…

1 week ago

How to Deploy OpenProject on Ubuntu VPS

This article provides a guide demonstrating how to deploy OpenProject on Ubuntu VPS. What is…

1 week ago

Canonical integrates NVIDIA Nemotron 3.5 Lightning with Ubuntu for always-on AI agents

Canonical is pleased to announce that  NVIDIA’s newly introduced NVIDIA Nemotron 3.5 Lightning, an open,…

2 weeks ago

Xfwl4’s Second Preview Release

I’m pleased to announce the second preview release of xfwl4, Xfce’s Wayland compositor, version 4.21.1.…

2 weeks ago