How To Upgrad Ubuntu server to 18.04

🗻 Run Commands

tuenhai@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:

tuenhai@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

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

results matching ""

    No results matching ""