In this article, I am going to show you how to upgrade Ubuntu Desktop 18.04 LTS to Ubuntu Desktop 20.04 LTS and Ubuntu Server 18.04 LTS to Ubuntu Server 20.04 LTS. So, let’s get started.

Upgrading Ubuntu Desktop 18.04 LTS to 20.04 LTS:

If you’re using Ubuntu Desktop 18.04 LTS and would like to upgrade to Ubuntu Desktop 20.04 LTS, then this section is for you.

First, open Software & Updates app from the Application Menu of Ubuntu 18.04 LTS.

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS ubuntu

Now, make sure all the marked checkboxes are checked in the Ubuntu Software tab.

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS ubuntu

You may also want to change the Ubuntu mirror to Main server if you’re having problems with the later section of this article. Because, the updates may not be immediately available to your closest mirror. It may take time for the updates to propagate to all the Ubuntu official mirrors.

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS ubuntu

Now, go to the Updates tab. Make sure all the marked checkboxes are checked.

Also make sure that Notify me of new Ubuntu version is set to For long-term support versions.

Then, close the Software & Updates app.

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS ubuntu

Before you upgrade to Ubuntu 20.04 LTS, you should update all the existing packages of your Ubuntu 18.04 LTS to the latest available versions.

To do that, open the Software Updater app from the Application Menu of Ubuntu 18.04 LTS.

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS ubuntu

The Software Updater app should check for new updates.

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS ubuntu

All the available updates should be displayed. Click on Install Now.

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS ubuntu

Type in your login password and click on Authenticate.

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS ubuntu

The updates are being downloaded and installed. It may take a while depending on the speed of your internet.

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS ubuntu

Once the updates are installed, click on Restart Now.

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS ubuntu

Once your computer boots, open a Terminal (press T) and run the following command:

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS ubuntu

Software Updater should display the message Ubuntu 20.04 is now available. Click on Upgrade…

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS ubuntu

Now, type in your login password and click on Authenticate.

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS ubuntu

Ubuntu 20.04 LTS release notes should be displayed. Now, click on Upgrade.

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS ubuntu

Ubuntu 18.04 LTS is being prepared for the upgrade. It may take a while.

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS ubuntu

Click on Start Upgrade.

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS ubuntu

Click on Close.

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS ubuntu

The upgrade should start. It may take a while to complete depending on the speed of your internet connection.

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS ubuntu

Ubuntu 18.04 LTS is being upgraded to Ubuntu 20.04 LTS.

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS ubuntu

Ubuntu 18.04 LTS is being upgraded to Ubuntu 20.04 LTS.

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS ubuntu

Ubuntu wants to remove packages that are not supported in Ubuntu 20.04 LTS. Click on Remove to remove them.

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS ubuntu

The unsupported packages are being removed.

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS ubuntu

Once the upgrade is complete, click on Restart Now.

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS ubuntu

Your Ubuntu 18.04 LTS machine should be upgraded to Ubuntu 20.04 LTS. Enjoy!

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS ubuntu

Upgrading Ubuntu Server 18.04 LTS to 20.04 LTS:

If you want to upgrade Ubuntu Server 18.04 LTS to Ubuntu Server 20.04 LTS, then this section is for you.

First, update the APT package repository cache with the following command:

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS ubuntu

As you can see, 23 packages can be upgraded.

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS ubuntu

It’s best to upgrade all the existing packages to their latest versions before attempting to upgrade to Ubuntu 20.04 LTS.

Upgrade all the packages of your Ubuntu 18.04 LTS machine with the following command:

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS ubuntu

Now, press Y and then press .

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS ubuntu

The updates are being installed.

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS ubuntu

At this point, the package upgrade should be complete.

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS ubuntu

Now, reboot your Ubuntu Server 18.04 LTS machine with the following command:

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS ubuntu

Now, to make sure that update-manager-core is installed, run the following command:

$ sudo apt install update-manager-core -y

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS ubuntu

In my case, it is already installed.

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS ubuntu

Now, check whether you can upgrade to Ubuntu 20.04 LTS with the following command:

$ sudo do-release-upgrade

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS ubuntu

It may report that There is no development version of an LTS available. If that’s the case, you have to run do-release-upgrade command with the -d flag.

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS ubuntu

Run do-release-upgrade with the -d flag as follows:

$ sudo do-release-upgrade -d

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS ubuntu

do-release-upgrade is checking for new Ubuntu release (Ubuntu 20.04 LTS in this case).

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS ubuntu

If you’re attempting to upgrade your Ubuntu Server 18.04 LTS over SSH (as I am), then you have to allow the updater to run an SSH server on port 1022. In case, the upgrade fails and you are unable to access your Ubuntu Server 18.04 LTS over SSH (port 22), then you will be able to connect to the backup SSH server running on port 1022.

To confirm that, press Y and then press .

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS ubuntu

If your Ubuntu Server 18.04 LTS has firewall configured to block port 1022, then open another SSH session and run the following command to allow access to the port 1022:

$ sudo ufw allow 1022/tcp

Then, press to continue.

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS ubuntu

The package repository information is being updated.

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS ubuntu

Now, it should show you a summary of the upgrade. As you can see, 17 packages are not officially supported anymore. 3 packages are going to be removed. 133 new packages will be installed and 450 packages will be upgraded. In total, about 336 MB of data will be downloaded from the internet. The numbers will be different for you.

Anyway, to continue the upgrade, press Y and then press .

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS ubuntu

All the required packages are being downloaded. It may take a while to complete depending on the speed of your internet connection.

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS ubuntu

The updates are being installed.

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS ubuntu

You will be asked to pick an LXD version. If you don’t care (leave 4.0 – the default version), just press .

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS ubuntu

The upgrade should continue.

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS ubuntu

If you have edited some configuration files, you will be asked whether you want to keep the version you currently have or replace it with the version that comes by default with the update (the package maintainer version). The default action is to keep the version you already have.

In this case, I have modified the /etc/nanorc file. The default action N or O will keep you keep the /etc/nanorc file you already have.

If you select Y or I, then the /etc/nanorc file will be replaced by the one provided by the updated package.

You can select D to see the difference between these 2 versions before you decide which version to keep.

I am going to keep the version that I have. So, I am just going to press .

NOTE: You should keep the version you have. Otherwise, the configuration you’ve done will be lost. For example, if you have configured an Apache web server, and you replaced the configuration file with the package maintainer version, then you will have to reconfigure your Apache webserver after the upgrade. I am sure, you don’t want that.

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS ubuntu

You may see this type of prompt many times. Pick the option that you think is the best for you and press .

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS ubuntu

Now, you will be asked to remove the obsolete (unsupported packages). To confirm, press Y and then press .

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS ubuntu

The obsolete packages are being removed.

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS ubuntu

Once the upgrade is complete, you will be asked to restart your server. Press Y and then press .

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS ubuntu

Enjoy Ubuntu Server 20.04 LTS once your server boots.

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS ubuntu

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS ubuntu

So, this is how you upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS. Thanks for reading this article.

About the author

How to Upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS ubuntu

Shahriar Shovon

Freelancer & Linux System Administrator. Also loves Web API development with Node.js and JavaScript. I was born in Bangladesh. I am currently studying Electronics and Communication Engineering at Khulna University of Engineering & Technology (KUET), one of the demanding public engineering universities of Bangladesh.