Upgrade Ubuntu 16.04 LTS to Ubuntu 18.04 LTS Server

I have been messing around Ubuntu 18.04 LTS recently. For those who want to test out the new Ubuntu 18.04 LTS , they can use this post to upgrade to Ubuntu 18.04 LTS development release.

Ubuntu 18.04 LTS (Bionic Beaver) will be released on April 26th, 2018. This is a LTS version will be supported for about 5 years. This is a great version to upgrade to if you’re running earlier versions of Ubuntu..

You may be able to upgrade from Ubuntu 16.04 LTS to 18.04 LTS easily… not too sure if you can do it from 17.04 or 17.10, since they are non LTS versions.

If you want to upgrade to the development version, follow the steps below.

If you don’t want to do an in-place upgrade, you can download the ISOs image from its download page and upgrade from the CD/DVD or do a clean install.

To upgrade Ubuntu, please follow the steps below

Step 1: Update Ubuntu 16.04 Server

Before upgrading to Ubuntu 18.04, you should first update the current 16.04. It’s recommended to update/upgrade all installed packages before upgrading. To update Ubuntu, connect to the server and run the commands below:

sudo apt update && sudo apt dist-upgrade && sudo apt autoremove

Step 2: Install Ubuntu Update Manager

After updating Ubuntu 16.04 server, run the commands below to install update-manager-core if it is not already installed.

sudo apt-get install update-manager-core

Then open the update-manager configuration file and make sure the Prompt line is set to lts

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

Prompt=lts

Step 3: Perform Ubuntu 18.04 LTS Upgrade

Now that your system is ready, run the commands below to begin Ubuntu upgrade to the latest development release..

sudo do-release-upgrade -d

Follow the on-screen instructions…. y = yes and N= No. When prompted whether you wish to upgrade type y for yes.

Do you want to start the upgrade?

1 installed package is no longer supported by Canonical. You can
still get support from the community.

2 packages are going to be removed. 64 new packages are going to be
installed. 394 packages are going to be upgraded.

You have to download a total of 234 M. This download will take about
1 minute with your connection.

Installing the upgrade can take several hours. Once the download has
finished, the process cannot be canceled.

 Continue [yN]  Details [d] y

Wait for all the newer packages to be downloaded… this may take a while depending on your internet connection speed. After all packages are downloaded, your system will begin upgrading immediately…. wait for the process to complete, the reboot to finish.. you’ll be notify to reboot.

When everything is setup correctly, you system should be upgraded to the latest Ubuntu development release.

Enjoy!

Summary:

This post shows students and new users how to upgrade to the development version of Ubuntu 18.04… Please do not upgrade if you’re not going to use it for testing purposes.

That’s it!

You may also like the post below:

Apache2 with PHP 7.1 Support on Ubuntu 18.04 LTS {Beta} Server