How to enable unattended-upgrades in Ubuntu and Debian Linux

How to enable unattended-upgrades in Ubuntu and Debian Linux