It’s okay when you have one computer and you make updates regularly. But when you have a bunch of servers and you need to update them all, there needs to be a way to easy this process. Thank Ubuntu that lets us automate security updates so we’ll just skip this process and never be at risk.
How to enable automatic security updates
Step 1: First we’ll need to run this command in a terminal on the server
sudo dpkg-reconfigure -plow unattended-upgrades
Skip the sudo, if you are logged in as root.
Step 2: Now you’ll be prompted by a pinky screen to confirm, by pressing OK, but if your terminal’s screen was bigger you’ll probably get a single prompt screen to confirm “Automatically download and install updates“, select Yes and press Enter key.
Now the system is going to check once a day if there are any security updates and install them if necessary.