The first thing we’re going to do is make sure we have the latest security updates for Ubuntu. Once everything installs, you will need to reboot to make sure all the upgrades applied adequately.
1sudo apt-get update -y2sudo apt-get upgrade -y
You may also consider having your server update itself automatically using a cronjob. A useful tool is cron-apt :
1sudo apt-get install cron-apt