I have a bunch of servers running Ubuntu 14.04.

They all have the unattended-upgrades package installed.

I've created a file called: /etc/apt/apt.conf.d/local-50-unattended

And I've added the file to each server.

The contents of the file are as follows:

APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Download-Upgradeable-Packages "1";
APT::Periodic::AutocleanInterval "7";
APT::Periodic::Unattended-Upgrade "1";

// List of packages to not update (regexp are supported)
Unattended-Upgrade::Package-Blacklist {

I like the idea of the configuration being in a new standalone file, and I'd hope this would work.

But it doesn't. None of the security updates seem to be getting installed.

What did I do wrong?



I figured it out.

Ubuntu/Debian won't install older security updates that existed before you setup your system for automated updates.

Everything above works perfectly, assuming that at the time you set it up your system is already up to date.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.