The latest version of Ubuntu is 20.04.lts and is named as “Focal Fossa”.
To start with the upgrade the first and foremost thing is to backup
the server . The rest procedure is as follows:
The current os version can be recorded from /etc/os-release file.
Once done with backup we need to update all packages of ubuntu 18.04
to latest by running the command
sudo apt update
After successful update just upgrade all the installed packages to
latest using the command
sudo apt upgrade
Now remove all unused old kernels as they wont be used any further
removing them might help us clear some space on the disk.
sudo apt --purge autoremove
Install update-manager-core package if not already installed.
Now upgrade the system to latest lts.
sudo do-release-upgrade
If you come across an output like this :
Checking for a new Ubuntu release
There is no development version of an LTS available.
To upgrade to the latest non-LTS development release
set Prompt=normal in /etc/update-manager/release-upgrades.
Use the following command to upgrade the system forcefully
using -d option with the command used above.
sudo do-release-upgrade -d
Once upgrade is complete reboot the system .
After reboot we you can check the /etc/os-release file to confirm
the updated version.
Comments
Post a Comment