How to upgrade Ubuntu to 19.04

A few days ago the release of Ubuntu 19.04. It’s not the LTS version of the system, so it will be supported only over the next nine months. In this version there were not so many innovations, one of the most noticeable is the addition of extra icons in the theme of Yara, as well as update the application stack. For example, GNOME was updated to version 3.32 and improved appearance and without the global menu, and the kernel version is upgraded to 5.0.

Read more about innovation, read the article what’s new in Ubuntu 19.04. In this article we will talk about how to upgrade to Ubuntu 19.04 with the previous version of the system.

Update Ubuntu to 19.04

Step 1. Updating an existing system

Before you upgrade to a new version, need to upgrade your current system to avoid possible errors and problems during the upgrade. To do this, run:

sudo apt upgrade

sudo apt dist-upgrade

If the system have not been updated, this process can take quite a long time. After completion, restart the computer.

Step 2. Cleanup Ubuntu

If you installed a PPA repository to the system, it is desirable to remove them especially if the packages replace the system. To remove a ppa, use the tool ppa-purge:

sudo apt install ppa-purge

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

You can also clear the system of unnecessary packages and cache to have more free disk space:

sudo apt autoremove

sudo apt clean

Step 3. The choice of the method to find the new version

Open the system menu and search for Software & Updates, then run the utility found:

In the opened window, navigate to the Updates. Here in the section Notify me of new release select When the availability of any new versions:

Similar actions can be performed through the terminal. To do this, open the file /etc/update-manager/release-upgrades and set the value of the parameter Prompot in normal:

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

Prompot = normal

Now you can move on to the next step.

Step 4. Search for new version

Open a terminal and run the command:

update-manager -c

To find the new version you can run the command:

/usr/lib/ubuntu-release-upgrader/check-new-release-gtk

While the program will check for updates and then report that is now available a new version of the system. Click to Update…:

Step 5. To install the update

In the next window, the utility will display the summary information about the new version. Here you also need to press the button to Upgrade:

Then will start downloading the necessary files and repositories:

This is the last step where you might want to reconsider. The utility will tell you which packages you need to download and how much time it will take. Save unsaved documents to avoid data loss and press the button to Start the update:

Also the utility will report that the lock screen is disabled until you restart that the computer has not gone into sleep mode after updating:

Nothing more to do, we have to wait until the refresh completes Ubuntu 19.04:

Step 6. Removal of unnecessary packages

Before completing the upgrade to Ubuntu it will ask whether you want to remove packages that are no longer needed:

After the upgrade completes reboot the system:

Step 7. Checking the version

After the reboot we can check the version of the operating system. To do this, open the terminal by pressing Ctrl+Alt+T and run:

cat /etc/lsb-release

Updating through the terminal

For server versions of their distribution you should use update Ubuntu through the terminal. For this we need to install the package update-manager-core:

sudo apt install update-manager-core

Then follow step 3 to the system could see the new version, and then run the update command:

do-release-upgrade

All steps are the same as the graphical version, only now they will be run in the terminal.

Insights

Today we discussed how to upgrade Ubuntu to 18.10 19.04. As you can see, it is not very difficult. However, I note that a more reliable method is a clean install of the operating system. With this approach, less likely to get errors.

Source: losst.ru

(Visited 86 times, 1 visits today)