AWS Lightsail improve Ubuntu 16.04 LTS to 18.04 LTS
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
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
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
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:
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:
Step four. Verification for AWS Lightsail occasion
Login utilizing the ssh command:
$ ssh -i ~/path/to/your-key ubuntu@aws-ip-address
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:
Take away customized TCP 1022 rule and click on on the save button/hyperlink:
Lastly, take away ufw rule if added:
$ sudo ufw delete enable 1022/tcp
Conclusion
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.