Comment 0 for bug 1633098

Revision history for this message
andrew bezella (abezella) wrote :

unattended-upgrades overrides the setting of APT_LISTCHANGES_FRONTEND. per the comments, this was done at a time when apt-listchanges would "always send a mail if there is a mail address set in the config regardless of the frontend used." this is no longer the case and this (now unnecessary) local override of APT_LISTCHANGES_FRONTEND can cause confusion when apt-listchanges appears to ignore its configured settings.

What I expected to happen:

i expected apt-listchanges to conform to its configuration. setting the "none" frontend in /etc/apt/listchanges.conf should ensure it "Does nothing" as per the manpage.

What happened instead:

unattended-upgrades does not respect the frontend setting, essentially now replicating the bad behavior this snippet was originally meant to workaround. with the attached patch the frontend specified in listchanges.conf is no longer unnecessarily overridden.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: unattended-upgrades 0.90
ProcVersionSignature: Ubuntu 4.4.0-31.50-generic 4.4.13
Uname: Linux 4.4.0-31-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
Date: Thu Oct 13 07:07:44 2016
JournalErrors:
 -- Logs begin at Tue 2016-10-11 08:02:03 PDT, end at Thu 2016-10-13 07:06:49 PDT. --
 Oct 11 08:13:30 hostname systemd-tmpfiles[10524]: [/usr/lib/tmpfiles.d/var.conf:14] Duplicate line for path "/var/log", ignoring.
 Oct 12 08:13:50 hostname systemd-tmpfiles[25099]: [/usr/lib/tmpfiles.d/var.conf:14] Duplicate line for path "/var/log", ignoring.
PackageArchitecture: all
ProcEnviron:
 TERM=rxvt-unicode-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/zsh
SourcePackage: unattended-upgrades
UpgradeStatus: No upgrade log present (probably fresh install)