Update the package index
Refresh the list of available packages from Ubuntu or Debian’s repositories.Install available upgrades
Remove packages you no longer need
Check if a reboot is required
Some updates (especially kernel updates) do not take effect until you reboot.Enable automatic security updates
1
Install unattended-upgrades
2
Enable it
3
Verify it is running
