AWS Lightsail improve Ubuntu 16.04 LTS to 18.04 LTS


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

By default, Lightsail will set up Ubuntu 16.04 LTS. How do I improve to Ubuntu Linux 18.04 LTS when utilizing AWS Lightsail cloud server? How do I improve to a more recent model of Ubuntu equivalent to Ubuntu Linux 18.04 LTS?

Ubuntu staff suggest upgrading a Server Version set up by utilizing the do-release-upgrade command. A part of the update-manager-core bundle, it doesn’t have any graphical dependencies and is put in by default. This web page exhibits learn how to use the really helpful improve technique for AWS Lightsail field powered by Ubuntu Linux 16.04 LTS.

AWS Lightsail improve Ubuntu 16.04 LTS to 18.04 LTS

The process to improve Ubuntu 16.04 LTS to 18.04 LTS is as follows for AWS Lightsail server:

Step 1. Login to AWS Lightsail field

Use the ssh command:
$ ssh -i ~/path/to/your-key ubuntu@aws-ip-address
Connect using your own SSH client

Step 2. Replace present system

Sort the apt-get command or apt command:
$ sudo apt replace
$ sudo apt improve
Reboot the Linux field if kernel was up to date
$ sudo reboot
After reboot makes positive both UFW firewall is briefly disabled or TCP port 1022 is open. One might use the TCP port 1022 throughout improve process if one thing went fallacious. The next command can confirm if any software program firewall is working in your system or not:
$ sudo iptables -L -n -v
ufw iptables verify firewall
I’ve no firewall working on my field. Nonetheless, you probably have a firewall working, open ssh port 1022 utilizing the next ufw syntax:
$ sudo ufw enable 1022/tcp remark ‘Temp open port ssh tcp port 1022 for improve’

Step three. Tips on how to 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
How to upgrade Ubuntu operating system to latest release
Earlier than persevering with with the process, you should open port TCP port # 1022 for security causes if port ssh failed throughout updates. Login to aws lightsail console, click on on the networking tab and open port 1022 as follows:
AWS Lightsail open port 1022 for Ubuntu upgrade
Now comply with on-screen directions. Throughout improve process, it’s possible you’ll be promoted to exchange present grub or ssh config file. Be sure you select to maintain present model to keep away from issues. After a while you will notice “System improve is full” message. Press y to restart your system to load updates kernel and working system in your cloud server:
Ubuntu system upgrade is complete. Restart required for aws lightsail

Step four. Verification for AWS Lightsail occasion

Login utilizing the ssh command:
$ ssh -i ~/path/to/your-key ubuntu@aws-ip-address
AWS Lightsail upgrade Ubuntu 16.04 LTS to 18.04 LTS upgrade completed
Confirm Ubuntu Linux kernel model with uname:
$ uname -r
Be certain 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 information for errors:
$ dmesg
$ tail -f /path/to/log/information
$ egrep -i ‘err|cri’ /var/log/nginx/error.log

Step 5. Take away tcp port 1022 added to AWS Lightsail occasion/networking

Login to AWS Lightsail, select networking and edit guidelines hyperlink:
Remove SSH port 1022 part 1
Take away customized TCP 1022 rule and click on on the save button/hyperlink:
Remove SSH port 1022 part 2
Lastly, take away ufw rule if added:
$ sudo ufw delete enable 1022/tcp


And there you’ve got it Ubuntu Linux 16.04 LTS up to date to Ubuntu 18.04 LTS working on AWS Lightsail cloud. See this web page for more information.

Posted by: Vivek Gite

The creator 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 subjects 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