How to Upgrade Ubuntu from One Version to the Next

Ubuntu gets release very frequently.. how does one upgrade Ubuntu from one version to the next?

As you may already know, Ubuntu gets updated very frequently unlike Windows. At first it was around 6 months.. but my understanding is it has been pushed to 9 months.

With these frequent updates, the most effective way is to upgrade over the Internet. That means downloading and installing newer packages and software directly from the Internet.

For those without stable or reliable Internet connection, upgrading over the Internet may be difficult.

If you have a great Internet connection, then follow the guide below to upgrade Ubuntu.

Step 1: Prepare Ubuntu for upgrade

Before you starting downloading a new Ubuntu OS, you first goal should be to backup your current machine. You can use a backup software or just copy important files and data to a secure location.

When you’re done, continue below preparing the Ubuntu machine.

First update all current installed packages.. then remove obsolete software from your system. To do that, run the commands below:

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

You may have to reboot after running the above command.

Step 2: Install Ubuntu upgrade tool

After updating all current packages and may have rebooted, run the commands below to install Ubuntu upgrade package. Ubuntu uses the software to upgrade.

sudo apt-get install update-manager-core

Step 3: Upgrade Ubuntu

The next step is to use the upgrade tool to upgrade Ubuntu. To do that, run the commands below:

sudo do-release-upgrade

Ubuntu should fetch newer packages from online, then show you all the changes that are about to be done. All new software that will be installed, removed or updated. When you’re ready, type Y for yes for Ubuntu to start.

The same process works with Ubuntu servers. For the servers, run the upgrade commands below:

sudo do-release-upgrade -d

That’s it!

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.