When updating from Ubuntu 16.04 to 18.04 we used the
do-release-upgrade command as one of the steps to get the newer versions. While using that method the update Ubuntu’s core we came across a known bug that would not allow us to continue with the upgrade. Instead, it would give the following error message:
Checking for a new Ubuntu release
Please install all available updates for your release before upgrading.
If you experience the error above run each command below.
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get dist-upgrade
Once you’ve updated your server with the commands above, feel free to continue with our How to Upgrade Ubuntu 16.04 to 18.04 tutorial.