How Can I Upgrade Ubuntu 18.04 to 20.04

This guide is focused on Linux servers running Ubuntu distribution. Before proceeding with the procedure for updating your Ubuntu, it is recommended to make backups, otherwise there is a high risk of losing all data.

First stage before updating

First, update your Ubuntu

apt upgrade

Then restart your server

reboot

Next, do the following:

apt update && sudo apt upgrade -y

After that, you need to remove unused packages and kernels to free up space in your /boot partition

apt --purge autoremove

Then you need to edit the update manager configuration file. This can be done as follows:

nano /etc/update-manager/release-upgrades

Find the line starting with Prompt =. Make sure it is not commented out and the lts value matches the one shown:

Prompt=lts

Running Updates

First, we recommend checking the backups again. Then run the update tool on your Ubuntu, then enter Y

do-release-upgrade

Then follow the instructions that you see in your terminal and click carefully. This will be followed by the removal of packages, with which you must agree by clicking on Y

Was this article helpful?

Related Articles

Leave A Comment?