Ubuntu has just released their latest version which is 19.04, codenamed Disco Dingo, Ubuntu 19.04 has been released on October 17, 2019. In this tutorial I will give you two ways to upgrade Ubuntu 18.04 or Ubuntu 18.10 to Ubuntu version 19.04. The first method uses a graphical display and the second method uses the command line via the terminal.
Usually you use a graphical update manager to upgrade your Ubuntu desktop and use the command line in the terminal for the upgrade Ubuntu server, but on the desktop version you can also upgrade using the command line method via the terminal.
Ubuntu 18.04 is a long-term support release or version (LTS), where Ubuntu 18.04 will get support for 5 years. Ubuntu 19.04 is a non-LTS release, meaning it will only be supported for 9 months, until January 2020. If you prefer stability over testing, then I recommend using Ubuntu 18.04 instead. But if you like testing and want to experience the latest version, you can follow this tutorial to upgrade from Ubuntu 18.04 to 19.04.
For Ubuntu 18.10 users will reach the end of life this July, so I suggest 18.10 users upgrade to Ubuntu 19.04.
Urgent: Before upgrading Ubuntu, you can use the systemback program to create a bootable ISO image of your current OS. If the upgrade fails, you can easily restore your OS with the bootable ISO. Everything on your OS including software and files will remain intact.
1. Upgrade Ubuntu 18.04 and 18.10 to Ubuntu 19.04 GUI
First of all, open it
software updater or (update manager) from your applications menu. This will update the software package information. If there is an update available, click the button Install Now and enter your password to install the update.
If a new version of the Linux kernel is installed, the updater software will tell you to restart your computer. Click Restart Now.
Then open it Software & Updates from your applications menu.
Select tab Update. At the bottom of the window, change notification settings from For long-term support version to For any new version. You will be asked to enter Password You so that the update is applied.
Close the Software & Updates window. Next, open a terminal window and issue the following command in the terminal.
You will be notified that the software is up-to-date and Ubuntu 19.04 is now available. Click the button Upgrade.
Then enter Password You. The release notes window appears. Click Upgrade. The distribution upgrade window will open. If you are notified that some third party source was disabled, agree to or accept. You can re-enable it after the upgrade process is complete.
In a few moments, you will be asked Do you start the upgrade? Click the button Start Upgrade.
Wait for the upgrade process to complete. The Update Manager may ask if you want to restart the service during the upgrade without asking. Please tick and click the button Next.
After a new package version has been installed, the Update manager may ask to remove obsolete packages. Please choose Remove.
Obsolete Packages are software packages whose name cannot be found in the new Ubuntu release software repositories. The causes of outdated packages are as follows:
- The developers stopped maintaining this package and no one else wanted to take over. So Ubuntu package manager decided to remove this package from Ubuntu repositories.
- The package becomes an orphan package, which means no other packages depend on it and very few users of this package. So Ubuntu’s package manager decided to remove this package from Ubuntu repositories.
- Packages have a new name in the new Ubuntu release software repositories.
After obsolete packages are removed from your system. Restart your computer and check Ubuntu version You with the following command.
$ lsb_release -a
Output: No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 19.04 Release: 19.04 Codename: Disco
2. Upgrade Ubuntu 18.04 / 18.10 to Ubuntu 19.04 Using Command Line
You can use the command line to upgrade to Ubuntu desktop or Ubuntu server without a hitch. If you are using SSH to log into your Ubuntu server it is highly recommended to keep your OpenSSH session alive by adding the following line in
/etc/ssh/sshd_config files on your server.
Save and close the file. Then restart the SSH daemon.
sudo systemctl restart ssh
To upgrade to Ubuntu 19.04, run the following command to upgrade existing software. (Please note that if a new kernel was installed while running the following commands, you will need to reboot the system to continue with the upgrade process.)
$ sudo apt update && sudo apt dist-upgrade
Then make sure you have installed the package
$ sudo apt install update-manager-core
Next, edit the configuration file using
nano or your preferred command line text editor.
$ sudo nano /etc/update-manager/release-upgrades
At the bottom of this file, change the Prompt value from
To save a file in a text editor
Ctrl+O, then press
Enter to confirm. To exit, press
Ctrl + X. After that, run the following command to start the upgrade process.
If you are running Ubuntu 18.10, follow the on-screen instructions to upgrade to Ubuntu 19.04. If you are running Ubuntu 18.04, follow the onscreen instructions to upgrade to Ubuntu 18.10 first and then follow the same steps to upgrade to Ubuntu 19.04
After the upgrade is complete, reboot your Ubuntu desktop or server. To check your Ubuntu version, run the command:
$ lsb_release -a
Output: No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 19.04 Release: 19.04 Codename: disco
I hope this tutorial helped you update Ubuntu 18.04 or Ubuntu 18.10 to Ubuntu 19.04 As usual either through the GUI display or using the command line command line in the terminal. I hope this article was useful and good luck, I hope your ubuntu upgrade process is successful. 🙂 You can also read the latest articles on → Guide on how to upgrade to the latest Ubuntu 20.04.