Skip to content
Advertisement

Security updates pending even with unattended-upgrades on Debian

I installed a few days ago the unattended-upgrades package to install automatically the security updates on my debian 8 system. I notice when I run :

JavaScript

That I have a few security updates pending. What’s wrong with my configuration?

Advertisement

Answer

You need either /etc/apt/apt.conf.d/20auto-upgrades or /etc/apt/apt.conf.d/02periodic and they must contain lines APT::Periodic::Update-Package-Lists "1"; and APT::Periodic::Unattended-Upgrade "1";.

Run (as root) dpkg-reconfigure -plow unattended-upgrades to create /etc/apt/apt.conf.d/20auto-upgrades if it’s missing.

If it still isn’t working check /etc/cron.daily/apt

NOTE: Why are you testing with dist-upgrade?! apt-get -s upgrade will tell you if their are dist-upgrades available e.g (something like:) x packages available but not upgraded (they are very unusual for security patches).

Ref: /usr/share/doc/unattended-upgrades/README.md.gz

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement