A Linux Playground

My doodles and what I get up to.

Upgrade Ubuntu to Newer Version Using CLI

Install update manager

Firstly run

1
sudo apt-get install update-manager

This will install the manager that will take care of updating the system.

If upgrading from a lts (long term support) version to a non lts version edit /etc/update-manager/release-upgrades and the value of Prompt= from lts to normal first.

Do upgrade

The start the upgrade process by executing

1
sudo do-release-upgrade

It will then ask you if you want to proceed. Pressing y it then opens a non standard ssh port (1022 in mycase) if updating remotely to which you can connect if there is an issue and potentially fix the system.