How To Upgrade Ubuntu 18.04 to 20.04 LTS using command line

How To Upgrade Ubuntu 18.04 to 20.04 LTS using command line

To upgrade an Ubuntu Linux system from version 18.04 to version 20.04 LTS (Long-Term Support), you can use the do-release-upgrade utility to update the system to the latest available patches and security updates.

It is important to note that upgrading a system from one major release to another (e.g., from Ubuntu 18.04 to Ubuntu 20.04 LTS) can be a risky process, and it is important to follow the instructions carefully to avoid causing any damage to your system. It is also a good idea to back up your important data before proceeding with the upgrade.

Here are the steps to upgrade an Ubuntu 18.04 system to Ubuntu 20.04 LTS using do-release-upgrade:

  1. Open a terminal window and log in to the system as the root user.

  2. Run the following command to update the package manager's list of available patches and security updates:

apt update
Sourc‮.www:e‬lautturi.com
  1. Run the following command to upgrade the system to the latest available patches and security updates:
apt upgrade
  1. Once all the patches and security updates have been installed, you can start the do-release-upgrade utility by running the following command:
do-release-upgrade
  1. Follow the prompts to upgrade the system to Ubuntu 20.04 LTS. This process may take some time, depending on the size of the update and the speed of your Internet connection.

  2. Once the upgrade process is complete, you will need to reboot the system in order for the changes to take effect. To reboot the system, run the following command:

reboot

After the system has rebooted, you can verify that the system has been upgraded to Ubuntu 20.04 LTS by running the lsb_release -a command, which will display the current Ubuntu version.

For more information about upgrading an Ubuntu system using do-release-upgrade, you can consult the documentation or visit the Ubuntu website.

Created Time:2017-10-29 22:08:33  Author:lautturi