How to Upgrade to Ubuntu 20.04 from Ubuntu 18.04 & 19.10

The stable version of Ubuntu 20.04 LTS (code-named Focal Fossa) is released on April 23rd, if you are curious to know what is in it, you can now upgrade to the version of it from lower versions for testing purposes.

Just like every new Ubuntu release, Ubuntu 20.04 ships with new features including the latest and greatest software such as the Linux kernel and refreshed state-of-the-art toolchain. You can find more information about the new changes from the release notes.

Importantly, Ubuntu 20.04 LTS will be supported for 5 years until April 2025, for Ubuntu Desktop, Ubuntu Server, and Ubuntu Core.

This guide walks you through the steps to upgrade to Ubuntu 20.04 LTS from either Ubuntu 18.04 LTS or Ubuntu 19.10, both on desktop and server systems.

Before going for the upgrade, note that:

  1. You never know what happens during an upgrade, so take a backup of your system (especially if it’s a testing system with important file/document/projects); you can go for a full image/snapshot or a partial backup of your system.

Installing Updates On Current Ubuntu Version

As a requirement, you need to make sure that you have installed all updates for your current version of Ubuntu before you upgrade. So search for the Software Updater setting in System Settings and open it as shown in the following screenshot.

Ubuntu Software Updater
Ubuntu Software Updater

Once it has opened, allow it to check for updates as shown in the following screenshot.

Checking for Ubuntu Upgrades
Checking for Ubuntu Upgrades

After checking for all the updates, it will show you the size of the updates. You can find more about the updates by clicking “Details of updates”. Then click Install Now.

Install Ubuntu Updates
Install Ubuntu Updates

Only a user with administrative rights to use the sudo command can install software and updates. So provide your password to authenticate to start the updates installation process. Then click Authenticate.

Enter Sudo Password
Enter Sudo Password

If authentication is successful, the updates installation process should start as shown in the following screenshot.

Installing Ubuntu Updates
Installing Ubuntu Updates

After all the updates are installed, restart the system to apply the new changes by clicking Restart Now.

Restart to Apply Ubuntu Updates
Restart to Apply Ubuntu Updates

Upgrading to Ubuntu 20.04 from Ubuntu 18.04 & 19.10

To start the upgrade process, search and open the Software & Updates setting in System Settings.

Ubuntu Software Updates
Ubuntu Software Updates

Then click on the third tab called Updates as highlighted in the following screenshot. Then set the Notify me of a new Ubuntu version setting drop-down menu to:

  • For long-term support versions – if you are using 18.04 LTS.
  • For any new version – if you are using 19.10.
Notify New Ubuntu Version
Notify New Ubuntu Version

Next, press Alt+F2 and type the following command into the command box as shown in the following screenshot and press Enter.

update-manager -c -d
Run Update Manager
Run Update Manager

Then the Update Manager should open up and tell you that “The software on this computer is up to date. However, Ubuntu 20.04 LTS is now available (you have 18.04 or 19.10)”, as shown in the following screenshot. Click Upgrade and provide your password when prompted.

New Ubuntu Version Available
New Ubuntu Version Available

Next, read the welcome message and click Upgrade and wait for the Update Manager to download the distribution upgrade tools. It will highlight the steps for the upgrade as shown in the following screenshot.

Upgrading Ubuntu to Version 20.04
Upgrading Ubuntu to Version 20.04

Then it will give you a summary of the upgrade process highlighting the number of packages that are installed but no longer supported, those that will be removed, the new packages that will be installed, and those that will be upgraded.

It also shows the download size and the time it will take according to the quality of your internet connection. You can view details by clicking Details. Click Start Upgrade.

Start Ubuntu Upgrade Process
Start Ubuntu Upgrade Process

Once the upgrade is done, restart the system to apply the new changes and after a reboot, log in. To view the information about your operating system, go to Settings –> About as shown in the following screenshots.

Ubuntu 20.04 Login
Ubuntu 20.04 Login
Ubuntu 20.04 Login
Ubuntu 20.04 Desktop
Ubuntu 20.04 System Info
Ubuntu 20.04 System Info

Upgrading to Ubuntu 20.04 from Ubuntu 18.04 LTS or 19.10 Server

First, ensure that your system is up to date by running the following commands.

$ sudo apt-get update
$ sudo apt-get upgrade -y
OR
$ sudo apt-get dist-upgrade -y 
Install Updates on Ubuntu Server
Install Updates on Ubuntu Server

Once all updates are installed (when the system is up to date), reboot your system to apply them. Then run the following command to install update-manager-core package if it is not already installed.

$ sudo update-manager-core
Install Ubuntu Update Core Manager
Install Ubuntu Update Core Manager

Then ensure that the Prompt directive in /etc/update-manager/release-upgrades configuration file is set to ‘lts' if you only want LTS upgrades (for Ubuntu 18.04 users) or to 'normal' if you want non-LTS upgrades (for Ubuntu 19.10 users).

$ sudo vi /etc/update-manager/release-upgrades
Set Prompt Directive
Set Prompt Directive

Now launch the upgrade tool with the following command.

$ sudo do-release-upgrade -d
Run Upgrade on Ubuntu
Run Upgrade on Ubuntu

The above command will read the package list and disable third-party entries in the sources.list file. It will also calculate the changes then prompt you to start the upgrade and show you the number of packages that are currently installed but no longer supported, those that will be removed, the new packages that will be installed and those that will be upgraded as well as the download size and the time it will take according to the quality of your internet connection.

Answer y for yes to continue.

Disabling Third-Party Repositories
Disabling Third-Party Repositories
Start Ubuntu Server Upgrade
Start Ubuntu Server Upgrade

Then follow the on-screen instructions. Note that during the upgrade process, you will be prompted to manually configure some packages or choose options to use via a prompt.

The following screenshot shows an example. Read the messages carefully before making choices.

Ubuntu Package Configuration
Ubuntu Package Configuration

Please follow the on-screen keyboards carefully. Once the upgrade is complete, you need to restart the server as shown in the following screenshot.

Ubuntu Upgrade Completed
Ubuntu Upgrade Completed

After a restart, login and run the following command to check the current Ubuntu version on your server.

Check Ubuntu Release Version
Check Ubuntu Release Version

There you go! We hope you have successfully upgraded your Ubuntu version from 18.04 or 19.10 to 20.04. If you encountered any issues along the way or have thoughts to share, use the feedback form below to reach us.

If you read this far, tweet to the author to show them you care. Tweet a thanks
Aaron Kili
Aaron Kili is a Linux and F.O.S.S enthusiast, an upcoming Linux SysAdmin, web developer, and currently a content creator for TecMint who loves working with computers and strongly believes in sharing knowledge.

Each tutorial at TecMint is created by a team of experienced Linux system administrators so that it meets our high-quality standards.

Join the TecMint Weekly Newsletter (More Than 156,129 Linux Enthusiasts Have Subscribed)
Was this article helpful? Please add a comment or buy me a coffee to show your appreciation.

2 thoughts on “How to Upgrade to Ubuntu 20.04 from Ubuntu 18.04 & 19.10”

  1. Hi, I’m facing an error in ubuntu 18.04.

    Could not calculate the upgrade

    An unresolvable problem occurred while calculating the upgrade.

    This was likely caused by:
    * Unofficial software packages not provided by Ubuntu
    Please use the tool ‘ppa-purge’ from the ppa-purge
    package to remove the software from a Launchpad PPA and
    try the upgrade again.

    If none of this applies, then please report this bug using the
    command ‘ubuntu-bug ubuntu-release-upgrader-core’ in a terminal. If
    you want to investigate this yourself the log files in
    ‘/var/log/dist-upgrade’ will contain details about the upgrade.
    Specifically, look at ‘main.log’ and ‘apt.log’.

    Restoring the original system state

    Aborting
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done

    Reply
    • I got this exact same problem too. I found a workaround for this. We need to use an app called Synaptic to remove all packages that are considered unofficial.

      Steps:

      1. Install synaptic with “sudo apt-get install synaptic“.
      2. Open synaptic app and find the list of obsolete packages by clicking on the “Status” button and selecting “Installed (local or obsolete)”.
      3. Select all of the obsolete packages and mark them for removal, then click on the Apply button. (Note: Your important apps may listed as obsolete packages, so make sure to back up the app data if possible. You may also need to keep the list by using a screenshot, so you can install them back later after upgrade).
      4. Do the upgrade process again by pressing Alt+F2 type “update-manager -c -d” then click enter.
      Reply

Got something to say? Join the discussion.

Thank you for taking the time to share your thoughts with us. We appreciate your decision to leave a comment and value your contribution to the discussion. It's important to note that we moderate all comments in accordance with our comment policy to ensure a respectful and constructive conversation.

Rest assured that your email address will remain private and will not be published or shared with anyone. We prioritize the privacy and security of our users.