Ubuntu Upgrade Guide 18.04

Now it's been a while since the Canonical team released its latest creation, the new version of Ubuntu, and more precisely version 18.04.

Bionic Beaver, this is the code name of the distro, is an LTS release.

The term LTS (Long Time Support) indicates that it is a version with support extended to 5 years for the official version of Ubuntu while the support is 3 years for the flavors.

If you have not yet updated to the latest version of Ubuntu, with this guide we will go to see the procedure to upgrade to the latest version of Ubuntu.

First of all, let's always remember to make a good backup if we had not done it, even if the update process is safe, there could always be some problems and we could find ourselves without our beloved files.

A small note, it is also possible to update through a GUI, but not trusting fully the GUI for this type of operation, the two examples that we will see are both executable from the terminal.

Preliminary phase

After backing up, we check if the most recent packages are installed in our system. To do this, type:

sudo apt update sudo apt upgrade sudo apt dist-upgrade

In this way we will facilitate the update phase and make the installation of the distro quicker.

In addition, the dist-upgrade command also removes packages that are no longer required, and then we will help the system do some cleaning.

As I mentioned above there are two different solutions to upgrade to Ubuntu 18.04, let's see them both.

1 Update through the official Ubuntu tool

This is the official method and recommended by Canonical itself, as the tool takes care of performing all the necessary updates automatically.

First of all, let's install the tool.

Open the terminal and type the command:

sudo apt install update-manager-core

This command installs install the tool that will allow us to make the version progress.

Once the tool has been installed, we just need to start the update using the command:

sudo do-release-upgrade

This command starts the installer which will ask us some questions we should answer in order to complete the installation.

Once we have answered the questions we just have to wait for the Ubuntu 18.04 update to be downloaded and installed.

2 Manual method or "Debian method"

This second method, when valid is a bit more delicate and is only recommended if we have problems with the official tool.

In order to use this method to update to the latest version of Ubuntu, we will edit directly the source.list file, and then the repositories on which the whole system is based.

This procedure, as I have just mentioned above, is more delicate and indicated to more experienced users.

I defined it as the "Debian method", because it is the same procedure that is used to switch from one branch to another in Debian, ie by changing the name of the release to be used.

But let's proceed by steps.

First we create a backup copy of the files that we will modify.

Open the terminal and type the following commands:

sudo nano cp /etc/apt/source.list / home / myname / backup sudo nano cp /etc/apt/source.list.d / home / myname / backup

With the commands we just inserted we went to create a backup copy of the files.

At this point we just have to go and change the names of the release:

sudo nano /etc/apt/source.list

Once we have opened the file we just have to change the "xenial" or "artful" entries with the codename of the new release, which in the case of Ubuntu 18.04 is "bionic".

We perform the same procedure for the files inside the source.list.d folder.

After we have made the appropriate changes, let's update the system:

sudo apt update sudo apt dist-upgrade

Once the update process is complete, we reboot the system to verify that the new installed packages are used correctly.

As we have just seen whether you choose to proceed with the Ubuntu update automatically and in case of problems with the manual one, it takes only a few seconds and in most cases the procedures are completely painless.

This website uses cookies to improve your experience. I think this does not create problems, but if you want you can do without it. accept Information

en_USEnglish
it_ITItalian en_USEnglish