Question

How can I upgrade ubuntu from 14.04.6 lts to latest version

How can I upgrade ubuntu from 14.04.6 lts to latest version

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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!

Regards, KDSys