LinuxFinder
How to Upgrade to Ubuntu 18.04 From Ubuntu 17.10 and 16.04 Right Now

How to Upgrade to Ubuntu 18.04 From Ubuntu 17.10 and 16.04 Right Now

Short description: In this article, we’ll talk about how to Upgrade to Ubuntu 18.04 From Ubuntu 17.10 and 16.04 Right Now.

Recently released a new version of Ubuntu with a long period of support – 18.04. For the next few years, it will be the main version of Ubuntu. There were not many changes in it. Among the main ones, we can mention the use of Xorg instead of Wayland, the kernel update without reboot, and the new Netplan network configuration system. In the graphical interface, there were notable improvements.

If you do not already have Ubuntu installed on your computer, then you can install it from scratch. And here already available Ubuntu 17.10 or 16.04 it is simple enough to update. In this article, we’ll look at how to upgrade to Ubuntu 18.04 from Ubuntu 17.10.

How to Upgrade to Ubuntu 18.04 From Ubuntu 17.10 and 16.04

In general, there are two main ways to update: through the terminal and through the graphical interface. But for some reason I have an upgrade to Ubuntu 18.04 via the graphical interface did not work – either the developers broke something, or I have a wrong system. Therefore, we will immediately consider updating via the terminal. The plus of this method is that you will see in detail what’s going on. Updating on the server and in the usual desktop version will not be different.

1. UPDATE OF EXISTING SYSTEM

Before we can update Ubuntu before 18.04, we need to update all the packages to the latest versions to avoid all possible problems. To do this, use the following commands:

sudo apt update

sudo apt upgrade

sudo apt dist-upgrade

2. CLEANING THE SYSTEM

The next step is cleaning the system of unnecessary packages, as well as removing all third-party PPA repositories. This is also desirable to do to get fewer problems – after installation you will be able to add your repositories back. First we clean the packages:

sudo apt autoremove

sudo apt clean

Then delete the repository using the ppa-purge utility, if it is not already installed, then you need to install:

sudo apt install ppa-purge

find /etc/apt/sources.list.d -type f -name “* .list” -print0 | \
while read -d $ ‘\ 0’ file; do awk -F / ‘/ deb / && /ppa\.launchpad\.net/ {system (“sudo ppa-purge ppa:” $ 4 “/” ​​$ 5)}’ “$ file”; done

3. SETTING UP SEARCH FOR A NEW VERSION OF THE SYSTEM

Here you can go in two ways. In the graphical version, it will be more convenient to use the utility Programs and updates. Open it from the main menu of the system:

How to Upgrade to Ubuntu 18.04 From Ubuntu 17.10 and 16.04 Right Now

Click the Updates tab:

Here, select Get updates – For any new version.

Then you will have to enter the password and close the window. You can proceed to the next step. In the server version of the system, you only need to use the terminal, open / etc / update-manager / release-upgrades:

sudo vi /etc/update-manager/release-upgrades

And make sure that there is a line there:

Prompt=normal

If it does not exist, then it must be added.

4. RUN UP

To run the Ubuntu update, type:

sudo do-release-upgrade -d

The -d option is mandatory, since without it the utility does not see the new version of Ubuntu.

5. CONFIRMATION OF UPDATES

The system will download the necessary metadata, calculate the time it takes to download the packages, and ask you to confirm the update of ubuntu 17.10 to 18.04.

After downloading the packages, you can not undo the changes.

6. KEYBOARDING

After a while, the utility will ask you to select a keyboard shortcut to switch the keyboard layout.

7. THE SECTION FOR THE LOADER

Then you have to choose a place to install the Grub boot loader, it should be installed on a hard disk, for example in / dev / sda, and not on a partition. To select the desired item, use a space.

8. CLEANING UNPACKED PACKAGES

The next step is to clean up the packages that are no longer needed.

9. COMPLETION OF UPDATES AND RESTART

Then the program will inform you that the Ubuntu update is almost complete and you must restart the system to complete it, agree.

10. COMPLETE SETTINGS

After the reboot, you can configure LivePatch to update the kernel, disable the transfer of data to Canonical and install the applications you need:How to Upgrade to Ubuntu 18.04 From Ubuntu 17.10 and 16.04 Right Now

How to Upgrade to Ubuntu 18.04 From Ubuntu 17.10 and 16.04 Right Now

11. READY

Upgrading to Ubuntu 18.04 is completely completed to make sure that everything went well, look at the system version:

cat /etc/lsb_release

As you can see, now the computer has the latest version – Ubuntu 18.04 LTS.

CONCLUSIONS

In this small article, we looked at how to Upgrade to Ubuntu 18.04 From Ubuntu 17.10 and 16.04. As you can see, this is not a very difficult task, which does not take much time. It took me about 40 minutes to complete the upgrade. If you want to try the update via the graphical interface, see the article about updating Ubuntu 17.10, everything is described in detail, and nothing has changed here. Have you already installed / updated Ubuntu 18.04? How do you like this system? Write in the comments!

Tonrok1

Add comment