How to Upgrade Ubuntu 18.04 to 20.04 LTS

How to Upgrade Ubuntu 18.04 to 20.04 LTS

To upgrade Ubuntu 18.04 to 20.04, follow the release-upgrade path for an existing system. This in-place upgrade advances Ubuntu while retaining user data where possible.

I’ll show the desktop and server upgrade steps, then explain Ubuntu 20.04’s support status.

TL;DR

You can move an Ubuntu 18.04 LTS system to 20.04, but in 2026, 20.04 is no longer in standard support, so choose it only as a deliberate intermediate release or with Ubuntu Pro coverage.

  • Back up the system, fully update 18.04, and check free disk space and architecture.
  • Use Software Updater on a desktop or run do-release-upgrade on a server.
  • Current help defines -d as a development-release option. The old 20.04 point-release note was a temporary exception.

What Is the Ubuntu 18.04 to 20.04 Upgrade?

The Ubuntu 18.04-to-20.04 upgrade is an in-place release upgrade that advances an existing system while retaining user data where possible. As of November 2026, both releases are past standard support: 18.04 ended in May 2023 and 20.04 in May 2025. Ubuntu Pro extends expanded security maintenance to May 2028 for 18.04 and May 2030 for 20.04.

The 20.04 release notes require a fully updated 18.04 LTS system and access to a network mirror. They exclude i386 32-bit hosts from the upgrade offer and document no offline in-place path. Installing from media is a separate clean-install route that needs its own migration plan.

How to Upgrade Ubuntu 18.04 to 20.04

The upgrader can ask how to handle changed configuration files. Keep a console or reliable remote session available, and reserve time to read each prompt before confirming.

1. Confirm the release and make a backup

Check that this machine is actually running Ubuntu 18.04 and identify its architecture. Back up user files and any data or configuration that would be difficult to recreate. For a virtual machine, take a restorable snapshot and confirm how to roll it back.

lsb_release -a
dpkg --print-architecture

If the machine reports i386, stop and choose a migration or reinstall plan because Ubuntu did not offer this host upgrade for that architecture. Check free space on the root and var filesystems for package downloads and unpacking, then confirm power and network access.

2. Apply updates to Ubuntu 18.04

Refresh the package list and apply the updates offered for Ubuntu 18.04 before starting the release upgrade. Read the proposed package changes before confirming.

sudo apt update
sudo apt full-upgrade

apt update refreshes package indexes. apt full-upgrade applies updates and resolves dependency changes, which can add or remove packages. Review proposed removals before confirming, especially when server applications use third-party packages, and restart if an update requests it.

3. Start the desktop or server upgrade

Open Software & Updates and select the Updates tab. Set notifications to long-term support versions, then run Software Updater and accept the 20.04 offer if it appears.

If the offer is missing, confirm the system is on the latest 18.04 updates and that the notification setting is for LTS versions. The release upgrade remains an attended process because the updater can ask about services, configuration files, and package removals.

On a server, install update-manager-core first if it is missing.

sudo apt install update-manager-core

Set the release-upgrade prompt to lts in the release-upgrades configuration file. Then start the interactive upgrader.

sudo do-release-upgrade

Canonical’s older rollout notes mentioned -d before the first point release, when the upgrade was not yet enabled. Current do-release-upgrade help defines -d as a development-release request.

For SSH, use a persistent session and keep console or recovery access available. The server upgrader uses GNU screen and can reattach after some dropped connections, but that does not replace a backup.

4. Review prompts and verify the new release

Read package-removal and configuration-file prompts carefully. If a configuration file has local edits, compare the proposed version with your current one before choosing. Let the upgrade finish, then restart when asked.

After reboot, confirm the machine starts and you can log in normally. Check key services as well. The release check below confirms 20.04, while a representative request and application logs check workload health.

lsb_release -a

Troubleshooting the Upgrade and Choosing a Supported Destination

Before changing packages, inspect pending updates with apt list --upgradable and deliberate holds with apt-mark showhold, because either can prevent the upgrade check from succeeding.

SymptomWhat to checkSafer response
Install all available updates warningPending updates, held packages, and configured repositoriesInspect the package list and resolve the specific conflict before retrying.
No desktop upgrade offerRelease notification set to LTS and 18.04 updates appliedConfirm policy and availability. Do not use a development-release flag as a workaround.
Upgrade interruptedExact error and upgrader logs named by the systemRestore a backup or follow recovery guidance for that failure before retrying.

Ubuntu may disable third-party sources during an upgrade. Vendor packages can depend on libraries unavailable in the current release, which may block the calculation. Before re-enabling a source, check maintainer support for Focal and use our Ubuntu package manager guide or apt and apt-get comparison to inspect its configuration.

Conclusion

Choose 20.04 only when a workload specifically requires it and you have a support plan, such as Ubuntu Pro. It is not the standard-supported destination in 2026. Canonical’s current release cycle lists Ubuntu 26.04 LTS as the latest LTS, while a system already on 18.04 should use the documented sequential upgrade path and check availability rather than skipping releases.

The Ubuntu 20.04 release notes describe the historical route and its prerequisites. Canonical’s server upgrade guide and release-cycle table cover current procedures and maintenance dates.

FAQ

Can I upgrade Ubuntu 18.04 directly to 20.04?

Ubuntu’s 20.04 release notes document a direct upgrade from 18.04 LTS after installing all available updates. In 2026, remember that both releases are past standard support.

Why does the upgrader say to install all available updates?

Pending, held, phased, or third-party packages can make the release-upgrade check fail. Inspect the package list and repository state, then resolve the specific conflict rather than removing packages blindly.

Should I use do-release-upgrade -d?

Not as a routine fix. The old 20.04 rollout notes used -d before the first point release; current command help describes it as a development-release option.

Is Ubuntu 20.04 still supported?

Standard support ended in May 2025. Ubuntu Pro provides expanded security maintenance through May 2030; check Canonical’s lifecycle page for current terms.

Can a 32-bit Ubuntu 18.04 system upgrade to 20.04?

No. Ubuntu’s 20.04 release notes say i386 hosts are not offered the upgrade. Plan a supported architecture migration or clean install, with a backup.