If reply of jdkay is enough to proceed, then ignore this one.....
Alternate way :
The 'unattended-upgrades' package can be used to automatically install updated packages, and can be configured to update all packages or just install security updates. First, install the package by entering the following in a terminal:
sudo apt-get install unattended-upgrades
Additionally, to configure unattended-upgrades, edit /etc/apt/apt.conf.d/50unattended-upgrades and adjust the "Allowed Origins" to fit your needs.