Decided to go with a clean install of Ubuntu 16 and a restore of Moodle files etc....
Installing and upgrading help
Moodle 3.15 to 3.2x upgrade and Ubuntu
This discussion has been locked so you can no longer reply to it.