How To Upgrade Ubuntu 18.04 to 20.04 LTS using command line

Here are the steps to upgrade Ubuntu 18.04 LTS to 20.04 LTS using the command line:

  1. Start by making sure your system is up-to-date by running the following commands:
sudo apt update
sudo apt upgrade
  1. Install the update-manager-core package, if it’s not already installed:
sudo apt install update-manager-core
  1. Run the following command to check if a new version of Ubuntu is available:
do-release-upgrade -c
  1. If a new version is available, you will be prompted to start the upgrade process. Press ‘y’ and then hit enter to continue.
  2. Wait for the upgrade process to complete. This may take some time depending on your internet connection and the amount of data to be downloaded and installed.
  3. After the upgrade process has completed, reboot your system.
sudo reboot
  1. Verify that the system has been upgraded to Ubuntu 20.04 LTS by running the following command:
lsb_release -a

It’s important to note that upgrading the system using this method will keep your personal files and settings. However, it’s always recommended to make a backup of your important data before proceeding with the upgrade.

Also, it’s better to check for any compatibility issues with any software and configurations you have on your 18.04 version before upgrading, in order to avoid any future problems.

Leave a Comment