Upgrade from Ubuntu 16 to Ubuntu 18


This is more to aid my memory than anything else, as it is something we do for the 300+ servers on a regular basis that I help to host.

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

Once upgrading to Ubuntu 18 it is good to note that Apache and PHP will stop working. The fix for this is to re-install the php and libapache2 php mod after the upgrade

sudo apt install php
sudo apt install libapache2-mod-php

Some of the common issues are that when you try to do the upgrade you get the error: Please install all available updates for your release before upgrading. To solve this, run

sudo apt-get --with-new-pkgs upgrade

Add Comment

Leave a Reply




Get in touch

I'm available on just about every social media platform out there as RMTWeb.