I recently upgraded from Jessie to Stretch and received a new version of the configuration file for unattended-upgrades
. Oddly, this new version references Debian instead of Raspbian.
pi@kegerator:/etc/apt/apt.conf.d $ diff 50unattended-upgrades 50unattended-upgrades.ucf-old
10,12c10,12
< // c,component (eg, "main", "contrib", "non-free")
< // l,label (eg, "Debian", "Debian-Security")
< // o,origin (eg, "Debian", "Unofficial Multimedia Packages")
---
> // c,component (eg, "main", "crontrib", "non-free")
> // l,label (eg, "Raspbian", "Raspbian-Security")
> // o,origin (eg, "Raspbian", "Unofficial Multimedia Packages")
14c14
< // site (eg, "http.debian.net")
---
> // site (eg, "http.Raspbian.net")
20c20
< // derived from /etc/debian_version:
---
> // derived from /etc/Raspbian_version:
27,30c27
< // "o=Debian,n=jessie";
< // "o=Debian,n=jessie-updates";
< // "o=Debian,n=jessie-proposed-updates";
< // "o=Debian,n=jessie,l=Debian-Security";
---
> // "o=Raspbian,n=jessie";
36,39c33,34
< // "o=Debian,a=stable";
< // "o=Debian,a=stable-updates";
< // "o=Debian,a=proposed-updates";
< "origin=Debian,codename=${distro_codename},label=Debian-Security";
---
> // "o=Raspbian,a=stable";
>
85,87d79
< // Automatically reboot even if there are users currently logged in.
< //Unattended-Upgrade::Automatic-Reboot-WithUsers "true";
<
96,102d87
<
< // Enable logging to syslog. Default is False
< // Unattended-Upgrade::SyslogEnable "false";
<
< // Specify syslog facility. Default is daemon
< // Unattended-Upgrade::SyslogFacility "daemon";
<
Between this Launchpad bug, this issue in the source repo, and several forum topics lamenting the absence of the Raspbian-security
label, I'm fairly confused about what the 'correct' configuration should be.
Could anyone share their working unattended-upgrades
configuration for Raspbian Stretch?
sudo unattended-upgrade -d
from wiki.debian.org/UnattendedUpgrades