How To Upgrade Ubuntu 18.04 to 20.04 LTS using command line

Upgrading Ubuntu 18.04 to 20.04 LTS using the command line involves several steps, including updating the package lists, upgrading the packages, and finally, upgrading the system to the new release. Here are the general steps to upgrade Ubuntu 18.04 to 20.04 LTS:

  1. Start by running the command sudo apt update to update the package lists.
  2. Next, run the command sudo apt upgrade to upgrade the packages on the system.
  3. Run the command sudo apt dist-upgrade to upgrade the system to the new release.
  4. After the upgrade process is complete, run the command sudo do-release-upgrade -d to start the upgrade to Ubuntu 20.04 LTS.
  5. Follow the on-screen prompts to complete the upgrade process. This may take some time, depending on the speed of your internet connection and the amount of data on your system.
  6. After the upgrade is complete, reboot your system.

It is important to note that before you start with the upgrade process, you should have a backup of all important data, as there is always a chance of data loss or damage during an upgrade. It’s also recommended to have your system fully updated by running sudo apt update && sudo apt upgrade and also to have enough free space on your hard drive.

It is also important to note that the upgrade process may take some time, so you should make sure that your system will not be interrupted during the upgrade process.

Leave a Comment