How can I upgrade ubuntu from 14.04.6 lts to latest version

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Hi @pgatesy,

Please make sure to backup your data first as updates quite often fail!

Ubuntu upgrade

The first step would be to make sure your current system is up to date. You can achieve this by running

sudo apt update && sudo apt upgrade

After it’s completion make sure either UFW firewall is temporarily disabled or TCP port 1022 is open. You can execute the following

sudo ufw allow 1022/tcp comment 'Temp open port ssh tcp port 1022 for upgrade'

Upgrade the operating system to the latest release from the command-line by typing the following command:

sudo do-release-upgrade

Now follow on-screen instructions. During upgrade procedure, you may be promoted to replace existing grub or ssh config file. Make sure you choose to keep existing version to avoid problems!

After some time you will see “System upgrade is complete” message. Press y to restart your system to load updates kernel and operating system for your cloud server

You’ll need to reboot your droplet now.

As soon as it’s powers on, close connections to your port 1022:

 sudo ufw delete allow 1022/tcp

That’s it, you should now have an updated Ubuntu version!

Please make sure to backup your data first as updates quite often fail!


  • Hi @pgatesy,

    I’ve actually tested this before however just for the sake of it tried it again. I can confirm the process is more than likely to fail due to some custom installations on the droplet you might have.

    As such, I’ll recommend rather than upgrading this droplet, to actually have a new one created with Ubuntu 18.04 for instance and migrate your website there. It will save you a lot of hassle trust me.