2 Ways to upgrade Ubuntu 18.04 to Ubuntu 20.04 (Graphic & Terminal)

2 Ways to upgrade Ubuntu 18.04 to Ubuntu 20.04 (Graphic & Terminal)

Ubuntu 20.04 Focal Fossa was released on the 23rd. April 2020 published. This tutorial shows you two ways to switch from Ubuntu 18.04 to Ubuntu 20.04: with the graphical update manager and with the command line. Usually a graphical update manager is used to update the Ubuntu desktop and a command line method is used to update the Ubuntu server, but the command line method also works for desktops.

Ubuntu 20.04 New Functions

  • The ZFS file system has been improved.
  • The computer manufacturer’s logo at startup
  • Linux kernel 5.4
  • GNOME 3.36, which is much faster than previous versions.
  • PHP7.4, Ruby 2.7, Python 3.8, OpenJDK 11.
  • ZFS 0.8 : contains built-in encryption
  • and much more.

Pay attention:  Before upgrading, you can use Systemback to create a bootable ISO image of your current operating system. If the update fails, you can easily restore your operating system using the boot ISO. Everything in your operating system, including software and files, will be safe.  If you are using a laptop, connect the power supply.

Upgrading from Ubuntu 18.04 to Ubuntu 20.04 with the Graphic Update Manager

First open an update program (also called update-manager) from the menu of your application. It updates the information on the software. If updates are available, click Install now and enter a password to install the updates.

2 Ways to upgrade Ubuntu 18.04 to Ubuntu 20.04 (Graphic & Terminal)

If a new version of the Linux kernel is installed, the update manager will warn you that you need to restart your computer. Click on Restart.

2 Ways to upgrade Ubuntu 18.04 to Ubuntu 20.04 (Graphic & Terminal)

Then open the Software and Updates application menu.

2 Ways to upgrade Ubuntu 18.04 to Ubuntu 20.04 (Graphic & Terminal)

Click on the Updates tab. Set the Notification for long-term support versions option at the bottom of the window and you will be prompted to enter your password to make the change effective.

2 Ways to upgrade Ubuntu 18.04 to Ubuntu 20.04 (Graphic & Terminal)

Close the Software and Updates window. Then open the terminal window and execute the following command.

Update Manager -d

After checking for updates, the update manager will inform you that Ubuntu 20.04 is now available. Click on the Upgrade button.

2 Ways to upgrade Ubuntu 18.04 to Ubuntu 20.04 (Graphic & Terminal)

Then enter your password. A window with holiday lists will appear. Click on Update.

2 Ways to upgrade Ubuntu 18.04 to Ubuntu 20.04 (Graphic & Terminal)

The distribution update window opens. If you have received a notification that certain third party sources have been disabled, please accept them. You can reactivate it once the update is complete.

2 Ways to upgrade Ubuntu 18.04 to Ubuntu 20.04 (Graphic & Terminal)

Within a few minutes you will be asked if you want to start an update. Click on the Start Upgrade button.

2 Ways to upgrade Ubuntu 18.04 to Ubuntu 20.04 (Graphic & Terminal)

Wait until the update process is complete. The update manager may ask you to restart services when updating packages without asking you to do so. Tick the box and click Next.

2 Ways to upgrade Ubuntu 18.04 to Ubuntu 20.04 (Graphic & Terminal)

After the installation of new versions of packages, the service manager may ask you to remove obsolete packages. I always choose to delete.

2 Ways to upgrade Ubuntu 18.04 to Ubuntu 20.04 (Graphic & Terminal)

Outdated packages are software whose name is not in the software repository of the new version of Ubuntu. The reason for these obsolete packages is as follows:

  • The promoter stops supervising this package, and no one else is willing to take it back. The administrator of the Ubuntu package therefore decides to remove this package from the Ubuntu repository.
  • The package becomes an orphan package, which means that there are no other packages that depend on it, and very few users of that package. The administrator of the Ubuntu package therefore decides to remove this package from the Ubuntu repository.
  • The package has a new name in the software repository of the new version of Ubuntu.

After removing outdated packages from your system. Reboot your computer and check the version of Ubuntu with the following command.

lsb_release -a

A way out:

LSB modules are not available.
Identification of business partners : Description of Ubuntu
: Ubuntu Focal Fossa
Release : 20,04
Coding : Focus

Ubuntu 18.04 to Ubuntu 20.04 of command line

You can use the command line to update the Ubuntu desktop or headless server. Speaking of servers, it is recommended to update Ubuntu on a test server before doing it on a production server. Some server programs such as iRedMail (a software package for mail servers) may not yet be compatible with Ubuntu 20.04. In this case it is recommended to wait a while until the software supports Ubuntu 20.04.

If you are using SSH to connect to your Ubuntu server, it is a good idea to back up your OpenSSH session by adding the following line to /etc/ssh/sshd_config on your server

Customer Life Interval 60

Save the file and close it. Then restart the SSH daemon.

sudo systemctl Restart ssh

To upgrade to Ubuntu 20.04, first run the following command to update your existing software. (Note that if a new Linux kernel is installed with the following command, you need to reboot the system to continue the upgrade process).

sudo apt update & sudo apt dist-upgrade

Make sure you have installed the basic package of Update Manager.

sudo apt install update manager core

Open the /etc/update manager/release upgrades file with a command line text editor like Nano.

sudo nano /etc/update manager/release upgrades

Make sure the note value is set to lts.

2 Ways to upgrade Ubuntu 18.04 to Ubuntu 20.04 (Graphic & Terminal)

Save the file and close it. To save the file in the NANO editor, press Ctrl+O and then press Enter to confirm. Press Ctrl+X to exit.

Then execute the following command to start the update process.

Update for publication -d

Then follow the on-screen instructions to upgrade to Ubuntu 20.04. In principle, you should be encouraged to answer the questions.

2 Ways to upgrade Ubuntu 18.04 to Ubuntu 20.04 (Graphic & Terminal)

When you update the server, you will probably see the messages as shown below. I recommend selecting N to save the current version. The updated version will be available in the same directory. You can see it later.

2 Ways to upgrade Ubuntu 18.04 to Ubuntu 20.04 (Graphic & Terminal)

Once the upgrade is complete, restart your desktop computer or Ubuntu server. To check your version of Ubuntu, run it:

lsb_release -a

A way out:

LSB modules are not available.
Identification of business partners : Description of Ubuntu
: Ubuntu Focal Fossa
Release : 20,04
Coding : Focus

How to restart third-party deposits

Third party repositories are defined in the .list files in /etc/apt/sources.list.d/. First, activate the third-party repositories with the following command, deleting the # character in lines beginning with deb.

sudo sed -i ‘/deb/s/^#//g’ /etc/apt/sources.list.d/*.list

Then change all cases of bionics to focus.

sudo sed -i ‘s/bionic/focal/g’ /etc/apt/sources.list.d/*.list

Update the package repository index.

sudo apt update

Some third party warehouses do not have an entry for Ubuntu 20.04, so you will probably see these errors:

E : There is no release file in the repository http://linux.dropbox.com/ubuntu focal release.
N : Updating from such a repository cannot be done safely, so it is disabled by default.
N : See the apt-secure(8) manual for information on creating a repository and the user configuration.

You must edit and disable these archive files one by one. For example, I’m editing the dropbox file.

sudo nano /etc/apt/sources.list.d/dropbox.list

Deactivate this archive by adding a # at the beginning of a line.

# deb [arch=i386,amd64] http://linux.dropbox.com/ubuntu focal main # disabled when switched to focus

Save the file and close it. We have to wait for the opening of these depots on April 20th. Add the Ubuntu support. Some software packages in third-party warehouses may be included in 20.04. For example, the Ubuntu 20.04 repository contains the Nextcloud desktop package, so I don’t need the Nextcloud APP anymore. I can suppress the next PPA cloud.

sudo rm /etc/apt/sources.list.d/nextcloud-client.list*

Packaging

Let’s go, let’s go, let’s go, let’s go! I hope this tutorial helped you get from Ubuntu 18.04 to Ubuntu 20.04. As always, if you find this article useful, subscribe to our free newsletter to receive new training materials. Maybe you’d like to read it for yourself:

Evaluate this training manual.

On second thought: 5 Average : 4.4]ubuntu upgrade to 18.04 command line,upgrade ubuntu 17.10 to 18.04 command line,upgrade ubuntu 16.04 to 18.04 without losing data

More Stories
Chrome 83 Enhanced Safe Browsing, New Privacy and Security Controls