How you can improve Ubuntu 16.04 to 18.04 LTS utilizing terminal


Get real time updates directly on you device, subscribe now.

I am utilizing Ubuntu Linux 16.04 LTS on Lionde. How do I improve Ubuntu 16.04 to 18.04 LTS utilizing terminal bash shell over ssh based mostly session?

Introduction : Ubuntu advocate upgrading a Server Version set up by utilizing the do-release-upgrade command. A part of the update-manager-core package deal, it doesn’t have any graphical dependencies and is put in by default. This web page exhibits the best way to use the beneficial improve methodology for Ubuntu Linux 16.04 LTS.

Steps to improve Ubuntu 16.04 to 18.04

To improve on a server system:

Login to Ubuntu boxPatch present system by working sudo apt replace && sudo apt upgradeAfter reboot makes positive both UFW firewall is quickly disabled or TCP port 1022 is openTo improve Ubuntu 18.04 LTS from 16.04 LTS run sudo do-release-upgradeFollow on-screen directions to improve to Ubuntu 18.04

Allow us to see all instructions in particulars.

How you can improve from Ubuntu Linux 16.04 to 18.04

Sort the apt command or apt-get command to improve current system:
$ sudo apt replace
$ sudo apt ugprade
Reboot the Linux field if kernel was up to date
$ sudo reboot
When you have a ufw firewall working on ufw, open ssh port 1022 utilizing the next ufw syntax:
$ sudo ufw enable 1022/tcp remark ‘Temp open port ssh tcp port 1022 for improve’

How you can improve to Ubuntu 18.04 LTS utilizing do-release-upgrade

Improve the working system to the newest launch from the command-line by typing the next command:
$ sudo do-release-upgrade
Upgrade Ubuntu 16.04 to 18.04 using do-release-upgradeHow you can improve from Ubuntu Linux 16.04 to 18.04 LTS utilizing the cli
Now comply with on-screen directions. Throughout improve process, you might be promoted to exchange current grub or ssh config file. Be sure you select to maintain current model to keep away from issues:
grub keep config files on ubuntu 18.04 ltsClick on to enlarge
After a while you will note “System improve is full” message. Press y to restart your system to load updates kernel and working system on your cloud server:
To finish the upgrade a restart is required for ubuntu


Login utilizing the ssh command:
$ ssh consumer@your-ubuntu-server
Confirm Ubuntu Linux kernel model with uname:
$ uname -r
Ensure that all wanted ports are open and working with the ss command or netstat command:
$ sudo ss -tulpn
$ sudo netstat -tulpn
Use grep command/egrep command or tail command/cat command to confirm log recordsdata for errors:
$ dmesg
$ tail -f /path/to/log/recordsdata
$ egrep -i ‘err|cri’ /var/log/nginx/error.log
Upgrading Ubuntu 16.04 server to 18.04 LTSUpgrading Ubuntu 16.04 server to 18.04 LTS efficiently

Take away tcp port 1022 added Ubuntu VM through ufw

Run following ufw command:
$ sudo ufw delete enable 1022/tcp


And there you have got it Ubuntu Linux 16.04 LTS upgraded to Ubuntu 18.04 Linux LTS working on cloud server. See this web page for more information.

Posted by: Vivek Gite

The writer is the creator of nixCraft and a seasoned sysadmin, DevOps engineer, and a coach for the Linux working system/Unix shell scripting. Get the newest tutorials on SysAdmin, Linux/Unix and open supply matters through RSS/XML feed or weekly e-mail e-newsletter.

Source link

Leave A Reply

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More