How to Perform Ubuntu LTS Release Upgrade

Every five years or so, a new Ubuntu LTS version is released… The next LTS release is just around the corner and will be called Ubuntu 18.04 LTS (Bionic Beaver)… Ubuntu 16.04 LTS (Xenial Xerus) is the currently supported LTS version, which was released on April 21st of 2016 and be supported until the year 2021…

For those who want to learn how to perform Ubuntu LTS release upgrades, the steps below should be a great place to start..

Using the steps below, you will be able to upgrade from Ubuntu 16.04 LTS to Ubuntu 18.04 LTS easily… For Ubuntu servers, you’d probably want stay with LTS versions of Ubuntu in order to get long term support…

If you don’t want to do an in-place upgrade over the Internet, 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

Before upgrading to upgrading Ubuntu, you should first update the current installation with the latest packages… You should always update Ubuntu packages prior to all upgrades.

You will also want to remove any third-party repositories and/or remove these packages before upgrading…. When you’re ready, run the commands below to update Ubuntu..

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

Step 2: Install Ubuntu Update Manager

After updating Ubuntu 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

# Default behavior for the release upgrader.

[DEFAULT]
# Default prompting behavior, valid options:
#
#  never  - Never check for a new release.
#  normal - Check to see if a new release is available.  If more than one new
#           release is found, the release upgrader will attempt to upgrade to
#           the release that immediately succeeds the currently-running
#           release.
#  lts    - Check to see if a new LTS release is available.  The upgrader
#           will attempt to upgrade to the first LTS release available after
#           the currently-running one.  Note that this option should not be
#           used if the currently-running release is not itself an LTS
#           release, since in that case the upgrader won't be able to
#           determine if a newer release is available.
Prompt=lts

Step 3: Perform Ubuntu LTS Upgrade

Now that your system is ready, run the commands below to begin Ubuntu upgrade to the latest LTS 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… 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:

Install NextCloud on Ubuntu 18.04 LTS with Nginx, MariaDB and PHP 7.1 Support

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.