You can configure Ubuntu to automatically download and install security updates. To enable this feature:
- Click on the Settings menu > System Settings.
- Go to System > Software & Updates.
Go to the "Updates
Next to "When there are security updates
" select "Download and install automatically
- Click on the Close button.