Update Linux
This is how to setup ubuntu to update automatically
sudo apt update && sudo apt upgrade -y
This will update your system.
The next step is enabling automatic updates, you will need sudo permissions to do this.
sudo apt install unattended-upgrades
sudo dpkg-reconfigure --priority=low unattended-upgrades
This will allow your system to automatically update your system