How To Upgrade Ubuntu to Latest version

Run Commands

EasiestSoft@Ubnutu:~ $ sudo apt update
$ sudo apt upgrade
$ sudo apt dist-upgrade

$ sudo apt install update-manager-core
$ sudo do-release-upgrade

Allow additional ssh port

Continue running under SSH?
If you continue, an additional ssh daemon will be started at port '1022'.
Do you want to continue?
Continue [yN] y

Then at the prompt, type y and press Enter to continue

Starting additional sshd
To make recovery in case of failure easier, an additional sshd will
'iptables -I INPUT -p tcp --dport 1022 -j ACCEPT'
To continue please press [ENTER]

Run commands to allow 1022/tcp:

EasiestSoft@Ubuntu:~ $ sudo ufw allow 1022/tcp

Press Enter

Rewrite sources.list

Updating repository information
No valid mirror found
If you select 'No' the upgrade will cancel
Continue [yN] y

Nginx configurations, Keep currently


Keep the local version currently current installed

Restart system

Finally, remove rule allow 1022/tcp from ufw

EasiestSoft@Ubuntu:~ $ sudo ufw delete allow 1022/tcp
$ reboot

©2012-2019 EasiestSoft