Here are the steps to upgrade Ubuntu 18.04 LTS to 20.04 LTS using the command line:
- Start by making sure your system is up-to-date by running the following commands:
sudo apt update
sudo apt upgrade
- Install the update-manager-core package, if it’s not already installed:
sudo apt install update-manager-core
- Run the following command to check if a new version of Ubuntu is available:
do-release-upgrade -c
- If a new version is available, you will be prompted to start the upgrade process. Press ‘y’ and then hit enter to continue.
- 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.
- After the upgrade process has completed, reboot your system.
sudo reboot
- 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.