Do yourself a favor and login as root to save yourself some time and headaches:
$ sudo su -
Install unattended-upgrades:
I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\