Ubuntu LTS Upgrade

When you have backed up your data and ready to upgrade, from current Ubuntu LTS version (e.g. 16.04) to next (e.g. 18.04), following could be useful:

Find the current version of Ubuntu using:

lsb_release -a

Following commands make sure that you have update manager installed, your software sources are up-to-date and your current OS is updated to the newest version:

sudo apt-get install update-manager-core
sudo apt-get update
sudo do-release-upgrade

To get the development version, using -d switch, like so:

sudo do-release-upgrade -d

Source: