Package: unattended-upgrades Version: 0.79.5+wheezy2 Severity: important Tags: patch
Dear Maintainer, *** Please consider answering these questions, where appropriate *** * What led up to the situation? * What exactly did you do (or not do) that was effective (or ineffective)? I set up unattended upgrades on Debian Wheezy. It worked, it automatically upgraded packages every night, but it stopped upgrading the packages when Debian Stretch was released. * What was the outcome of this action? Unattended upgrades no longer work on Wheezy. * What outcome did you expect instead? Unattended upgrades should work on Wheezy. The reason for this bug is this - security upgrades for Wheezy were distributed in the "oldstable" archive and upgrades for Jessie were distributes in the "stable" archive. However, when Stretch was released, the archives were renamed - Stretch is "stable", "Jessie is "oldstable" and Wheezy is "oldoldstable". The unattended-upgrades configuration file in Wheezy upgrades the packages only from "stable" and "oldstable" archive, it doesn't consider the possibility that the archive may be named "oldoldstable". Thus, when Stretch was released and the achives were renamed, unattended upgrades on Wheezy stopped working. This is a patch for this bug: --- 50unattended-upgrades 2017-07-07 23:57:21.000000000 +0200 +++ /etc/apt/apt.conf.d/50unattended-upgrades 2017-07-07 23:57:23.000000000 +0200 @@ -9,6 +9,7 @@ // "o=Debian,a=proposed-updates"; "origin=Debian,archive=stable,label=Debian-Security"; "origin=Debian,archive=oldstable,label=Debian-Security"; + "origin=Debian,archive=oldoldstable,label=Debian-Security"; }; // List of packages to not update -- System Information: Debian Release: 7.11 APT prefers oldoldstable-updates APT policy: (500, 'oldoldstable-updates'), (500, 'oldoldstable') Architecture: i386 (i686) Kernel: Linux 3.10.101 (PREEMPT) Locale: LANG=cs_CZ.utf8, LC_CTYPE=cs_CZ.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages unattended-upgrades depends on: ii apt 0.9.7.9+deb7u7 ii apt-utils 0.9.7.9+deb7u7 ii debconf [debconf-2.0] 1.5.49 ii lsb-base 4.1+Debian8+deb7u1 ii lsb-release 4.1+Debian8+deb7u1 ii python 2.7.3-4+deb7u1 ii python-apt 0.8.8.2 ii ucf 3.0025+nmu3 ii xz-utils 5.1.1alpha+20120614-2 unattended-upgrades recommends no packages. Versions of packages unattended-upgrades suggests: pn bsd-mailx <none> ii exim4-daemon-light [mail-transport-agent] 4.80-7+deb7u5 -- Configuration Files: /etc/apt/apt.conf.d/50unattended-upgrades changed [not included] -- debconf information: * unattended-upgrades/enable_auto_updates: true
--- 50unattended-upgrades 2017-07-07 23:57:21.000000000 +0200 +++ /etc/apt/apt.conf.d/50unattended-upgrades 2017-07-07 23:57:23.000000000 +0200 @@ -9,6 +9,7 @@ // "o=Debian,a=proposed-updates"; "origin=Debian,archive=stable,label=Debian-Security"; "origin=Debian,archive=oldstable,label=Debian-Security"; + "origin=Debian,archive=oldoldstable,label=Debian-Security"; }; // List of packages to not update
--- 50unattended-upgrades 2017-07-07 23:57:21.000000000 +0200 +++ /etc/apt/apt.conf.d/50unattended-upgrades 2017-07-07 23:57:23.000000000 +0200 @@ -9,6 +9,7 @@ // "o=Debian,a=proposed-updates"; "origin=Debian,archive=stable,label=Debian-Security"; "origin=Debian,archive=oldstable,label=Debian-Security"; + "origin=Debian,archive=oldoldstable,label=Debian-Security"; }; // List of packages to not update
--- 50unattended-upgrades 2017-07-07 23:57:21.000000000 +0200 +++ /etc/apt/apt.conf.d/50unattended-upgrades 2017-07-07 23:57:23.000000000 +0200 @@ -9,6 +9,7 @@ // "o=Debian,a=proposed-updates"; "origin=Debian,archive=stable,label=Debian-Security"; "origin=Debian,archive=oldstable,label=Debian-Security"; + "origin=Debian,archive=oldoldstable,label=Debian-Security"; }; // List of packages to not update