​How to Upgrade to Ubuntu 20.04

Upgrade to Ubuntu 20.04

In this article, we will have explained the necessary steps to upgrade to Ubuntu 20.04 LTS. Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges. All the commands in this tutorial should be run as a non-root user.

Ubuntu 20.04 is releasing today and you should learn about upgrading to Ubuntu 20.04 from older supported Ubuntu versions. It comes with a lot of new packages and major software upgrades, including the latest versions of OpenJDK, GCC, Python, Ruby, and PHP. This release is based on the Linux 5.4 LTS kernel and adds support for new hardware and filesystems. The desktop edition comes with GNOME 3.36 and a new default theme called Yaru.

Before you upgrade (whenever you choose to) I recommend creating a backup of any important files and system settings, dotfiles, and any critical content. Keep some ‘rescue’ media to hand should things go wrong, too. If you upgrade to 20.04 before April 23 you do NOT need to reinstall anything to get the ‘final version once it’s released. Just keep installing any (and all) pending software updates and you’re good to go.

Upgrade to Ubuntu 20.04

Step 1. First, before you start installing any package on your Ubuntu server, we always recommend making sure that all system packages are updated.

sudo apt update
sudo apt upgrade
sudo apt dist-upgrade

Step 2. Upgrade to Ubuntu 20.04 LTS (Focal Fossa).

Upgrading to the latest Ubuntu version is a pretty straightforward process. You can upgrade either from the command line with do-release-upgrade or using the GUI update tool.

 Start the upgrade process by entering:

sudo apt install update-manager-core
sudo do-release-upgrade -d

When the upgrade process is complete and assuming all went well, you’ll be asked to reboot your machine. Type y to continue:

System upgrade is complete.

Restart required

To finish the upgrade, a restart is required.
If you select 'y' the system will be restarted.

Continue [yN] y

Wait for a few moments until your system boots up and log in. You can also check the Ubuntu version by entering the following command:

$ lsb_release -a

No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04 LTS
Release:	20.04
Codename:	focal

That’s all you need to do to how to upgrade to Ubuntu 20.04. I hope you find this quick tip helpful. If you have questions or suggestions, feel free to leave a comment below.