If you are running the server version of Ubuntu or choose to not use the GUI, then you can use this tutorial to upgrade your system to the latest version (or the latest LTS version).
Although many systems can be upgraded in place without incident, it is often safer and more predictable to migrate to a major new release by installing the distribution from scratch, configuring services with careful testing along the way, and migrating application or user data as a separate step.
- Please backup your important datas.
- Now update your software package list.
sudo apt-get update -y
- Now upgrade your packages to available latest version.
sudo apt-get upgrade -y
- Now use the dist-upgrade command, which will perform upgrades involving changing dependencies, adding or removing new packages as necessary. This will handle a set of upgrades which may have been held back by apt-get upgrade.
sudo apt-get dist-upgrade
- Now check whether the update-manager-core package is installed or not.
sudo apt-get install update-manager-core -y
- If you want to upgrade to the latest LTS version or the latest version, you have to do some editing in the file /etc/update-manager/release-upgrades.
sudo nano /etc/update-manager/release-upgrades
If you want the LTS version, then change Prompt=lts or if wish to the latest normal version, then change Prompt=normal. After editing, press ctrl+x and then y to save & exit the file.
- Upgrade the system to the latest version of Ubuntu.
This includes a lot of download of packages from the Internet. Give some patience according to your Internet speed.