Simple Method Upgrade to Latest Ubuntu 20.04

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, avr: 1.00)

This tutorial explains how to upgrade to Ubuntu 20.04 LTS from Ubuntu 18.04 or Ubuntu 19.10. Ubuntu 20.04 LTS (Focal Fossa) was released on April 23, 2020, and it will be supported for five years. 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.

Backup Your Data

First and foremost, make sure you backup your data before starting the major upgrade of your operating system. If you are running Ubuntu on a virtual machine, it is best to take a complete system snapshot so you can quickly restore your machine in case the update goes wrong.

Step 1: Update Currently Installed Packages

Before starting the release upgrade, it is recommended to update all your currently installed packages to their latest versions.

sudo apt-mark showhold

If there are on hold, packages, you should unhold the packages with:

sudo apt-mark unhold package_name

Step 2: Upgrade All Installed Packages:

Packages marked as held back cannot be automatically installed, upgraded, or removed. This may cause issues during the upgrade process. To check whether there are held back packages on your systems run:

sudo apt update
sudo apt upgrade

Perform a major version upgrade of the installed packages:

sudo apt full-upgrade

Step 3: 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.

We’ll perform the update from the command-line, which should work for both Desktop and Server systems.

do-release-upgrade is part of the “update-manager-core” package that is installed by default on most Ubuntu systems. If for some reason it is not installed on your system, install it with:

sudo apt install update-manager-core

Start the upgrade process by entering:

sudo do-release-upgrade -d

The command will disable all third-party repositories and change the apt list to point to focal repositories. You will be prompted several times to confirm that you want to continue with the upgrade. When asked whether you want the services to be automatically restarted during the upgrade type y.

During the upgrade process, the command will ask you various questions, like whether you want to keep an existing configuration file or to install the package maintainer’s version. If you didn’t make any custom changes to the file, it should be safe to type Y. Otherwise, is recommended to keep the current configuration. Read the questions carefully before making a selection.

That’s it. Enjoy new Ubuntu 20.04 installation

Recommended For You

About the Author: Iman

Internet enthusiast like to share about newest information technology such as programming language, software developer and etc...