I've retested this problem with u-a version 0.76.3 and I see that the problem is still not fixed but also that the logic is already implemented in another block: saving a log file or not.
See attached debug log. That message was printed only on console (stdout), even though the last lines are telling: DEBUG:root:Sending mail with '/var/log/unattended-upgrades/unattended-upgrades-dpkg_2012-04-24_13:23:45.634738.log' to 'root' But there is no such file. So, could this logic be used in the "Sending mail" block too? Thanks
root@goliath:~# unattended-upgrade --debug INFO:root:Initial blacklisted packages: locales libc6-i686 libc-bin libc6 linux-image-2.6.32-5-486 linux-image-2.6.32-5-686-bigmem firmware-linux-free linux-base libupsclient1 nut nut-cgi squid3-common squid3 Initial blacklisted packages: locales libc6-i686 libc-bin libc6 linux-image-2.6.32-5-486 linux-image-2.6.32-5-686-bigmem firmware-linux-free linux-base libupsclient1 nut nut-cgi squid3-common squid3 INFO:root:Starting unattended upgrades script Starting unattended upgrades script INFO:root:Allowed origins are: ['o=Debian,a=stable', 'o=Debian,a=stable-updates', 'o=Debian,a=proposed-updates', 'origin=Debian,archive=stable,label=Debian-Security'] Allowed origins are: ['o=Debian,a=stable', 'o=Debian,a=stable-updates', 'o=Debian,a=proposed-updates', 'origin=Debian,archive=stable,label=Debian-Security'] DEBUG:root:Checking: apache2 (["<Origin component:'main' archive:'stable' origin:'Debian' label:'Debian-Security' site:'security.debian.org' isTrusted:True>", "<Origin component:'main' archive:'proposed-updates' origin:'Debian' label:'Debian' site:'ftp.ro.debian.org' isTrusted:True>"]) Checking: apache2 (["<Origin component:'main' archive:'stable' origin:'Debian' label:'Debian-Security' site:'security.debian.org' isTrusted:True>", "<Origin component:'main' archive:'proposed-updates' origin:'Debian' label:'Debian' site:'ftp.ro.debian.org' isTrusted:True>"]) DEBUG:root:pkg 'apache2-mpm-prefork' now marked delete pkg 'apache2-mpm-prefork' now marked delete DEBUG:root:sanity check failed sanity check failed DEBUG:root:Checking: apache2-mpm-prefork (["<Origin component:'main' archive:'stable' origin:'Debian' label:'Debian-Security' site:'security.debian.org' isTrusted:True>", "<Origin component:'main' archive:'proposed-updates' origin:'Debian' label:'Debian' site:'ftp.ro.debian.org' isTrusted:True>"]) Checking: apache2-mpm-prefork (["<Origin component:'main' archive:'stable' origin:'Debian' label:'Debian-Security' site:'security.debian.org' isTrusted:True>", "<Origin component:'main' archive:'proposed-updates' origin:'Debian' label:'Debian' site:'ftp.ro.debian.org' isTrusted:True>"]) DEBUG:root:Checking: apache2.2-bin (["<Origin component:'main' archive:'stable' origin:'Debian' label:'Debian-Security' site:'security.debian.org' isTrusted:True>", "<Origin component:'main' archive:'proposed-updates' origin:'Debian' label:'Debian' site:'ftp.ro.debian.org' isTrusted:True>"]) Checking: apache2.2-bin (["<Origin component:'main' archive:'stable' origin:'Debian' label:'Debian-Security' site:'security.debian.org' isTrusted:True>", "<Origin component:'main' archive:'proposed-updates' origin:'Debian' label:'Debian' site:'ftp.ro.debian.org' isTrusted:True>"]) DEBUG:root:Checking: apache2.2-common (["<Origin component:'main' archive:'stable' origin:'Debian' label:'Debian-Security' site:'security.debian.org' isTrusted:True>", "<Origin component:'main' archive:'proposed-updates' origin:'Debian' label:'Debian' site:'ftp.ro.debian.org' isTrusted:True>"]) Checking: apache2.2-common (["<Origin component:'main' archive:'stable' origin:'Debian' label:'Debian-Security' site:'security.debian.org' isTrusted:True>", "<Origin component:'main' archive:'proposed-updates' origin:'Debian' label:'Debian' site:'ftp.ro.debian.org' isTrusted:True>"]) DEBUG:root:Checking: linux-image-3.2.0-0.bpo.2-686-pae (["<Origin component:'main' archive:'squeeze-backports' origin:'Debian Backports' label:'Debian Backports' site:'ftp.de.debian.org' isTrusted:True>"]) Checking: linux-image-3.2.0-0.bpo.2-686-pae (["<Origin component:'main' archive:'squeeze-backports' origin:'Debian Backports' label:'Debian Backports' site:'ftp.de.debian.org' isTrusted:True>"]) DEBUG:root:pkgs that look like they should be upgraded: apache2 apache2-mpm-prefork apache2.2-bin apache2.2-common pkgs that look like they should be upgraded: apache2 apache2-mpm-prefork apache2.2-bin apache2.2-common Fetched 0 B in 0s (0 B/s) DEBUG:root:<apt_pkg.AcquireItem object:Status: 2 Complete: 1 Local: 1 IsTrusted: 1 FileSize: 1384 DestFile:'/var/cache/apt/archives/apache2_2.2.16-6+squeeze7_i386.deb' DescURI: 'http://security.debian.org/pool/updates/main/a/apache2/apache2_2.2.16-6+squeeze7_i386.deb' ID:0 ErrorText: ''> <apt_pkg.AcquireItem object:Status: 2 Complete: 1 Local: 1 IsTrusted: 1 FileSize: 1384 DestFile:'/var/cache/apt/archives/apache2_2.2.16-6+squeeze7_i386.deb' DescURI: 'http://security.debian.org/pool/updates/main/a/apache2/apache2_2.2.16-6+squeeze7_i386.deb' ID:0 ErrorText: ''> DEBUG:root:check_conffile_prompt('/var/cache/apt/archives/apache2_2.2.16-6+squeeze7_i386.deb') check_conffile_prompt('/var/cache/apt/archives/apache2_2.2.16-6+squeeze7_i386.deb') DEBUG:root:found pkg: apache2 found pkg: apache2 DEBUG:root:<apt_pkg.AcquireItem object:Status: 2 Complete: 1 Local: 1 IsTrusted: 1 FileSize: 2282 DestFile:'/var/cache/apt/archives/apache2-mpm-prefork_2.2.16-6+squeeze7_i386.deb' DescURI: 'http://security.debian.org/pool/updates/main/a/apache2/apache2-mpm-prefork_2.2.16-6+squeeze7_i386.deb' ID:0 ErrorText: ''> <apt_pkg.AcquireItem object:Status: 2 Complete: 1 Local: 1 IsTrusted: 1 FileSize: 2282 DestFile:'/var/cache/apt/archives/apache2-mpm-prefork_2.2.16-6+squeeze7_i386.deb' DescURI: 'http://security.debian.org/pool/updates/main/a/apache2/apache2-mpm-prefork_2.2.16-6+squeeze7_i386.deb' ID:0 ErrorText: ''> DEBUG:root:check_conffile_prompt('/var/cache/apt/archives/apache2-mpm-prefork_2.2.16-6+squeeze7_i386.deb') check_conffile_prompt('/var/cache/apt/archives/apache2-mpm-prefork_2.2.16-6+squeeze7_i386.deb') DEBUG:root:found pkg: apache2-mpm-prefork found pkg: apache2-mpm-prefork DEBUG:root:<apt_pkg.AcquireItem object:Status: 2 Complete: 1 Local: 1 IsTrusted: 1 FileSize: 308446 DestFile:'/var/cache/apt/archives/apache2.2-common_2.2.16-6+squeeze7_i386.deb' DescURI: 'http://security.debian.org/pool/updates/main/a/apache2/apache2.2-common_2.2.16-6+squeeze7_i386.deb' ID:0 ErrorText: ''> <apt_pkg.AcquireItem object:Status: 2 Complete: 1 Local: 1 IsTrusted: 1 FileSize: 308446 DestFile:'/var/cache/apt/archives/apache2.2-common_2.2.16-6+squeeze7_i386.deb' DescURI: 'http://security.debian.org/pool/updates/main/a/apache2/apache2.2-common_2.2.16-6+squeeze7_i386.deb' ID:0 ErrorText: ''> DEBUG:root:check_conffile_prompt('/var/cache/apt/archives/apache2.2-common_2.2.16-6+squeeze7_i386.deb') check_conffile_prompt('/var/cache/apt/archives/apache2.2-common_2.2.16-6+squeeze7_i386.deb') DEBUG:root:found pkg: apache2.2-common found pkg: apache2.2-common DEBUG:root:conffile line: /etc/logrotate.d/apache2 fd336a474719c088fc124da505cbe502 conffile line: /etc/logrotate.d/apache2 fd336a474719c088fc124da505cbe502 DEBUG:root:current md5: fd336a474719c088fc124da505cbe502 current md5: fd336a474719c088fc124da505cbe502 DEBUG:root:conffile line: /etc/apache2/conf.d/security 568b2ad19312dd70f67184febc9042c7 conffile line: /etc/apache2/conf.d/security 568b2ad19312dd70f67184febc9042c7 DEBUG:root:current md5: 568b2ad19312dd70f67184febc9042c7 current md5: 568b2ad19312dd70f67184febc9042c7 DEBUG:root:conffile line: /etc/apache2/conf.d/localized-error-pages 844ba27ddb794fc6967bfb56b950e6a8 conffile line: /etc/apache2/conf.d/localized-error-pages 844ba27ddb794fc6967bfb56b950e6a8 DEBUG:root:current md5: 844ba27ddb794fc6967bfb56b950e6a8 current md5: 844ba27ddb794fc6967bfb56b950e6a8 DEBUG:root:conffile line: /etc/apache2/conf.d/other-vhosts-access-log 2cad303fc4221d6b0068a8b37597b9fb conffile line: /etc/apache2/conf.d/other-vhosts-access-log 2cad303fc4221d6b0068a8b37597b9fb DEBUG:root:current md5: 2cad303fc4221d6b0068a8b37597b9fb current md5: 2cad303fc4221d6b0068a8b37597b9fb DEBUG:root:conffile line: /etc/apache2/conf.d/charset e6fbb8adf631932851d6cc522c1e48d7 conffile line: /etc/apache2/conf.d/charset e6fbb8adf631932851d6cc522c1e48d7 DEBUG:root:current md5: e6fbb8adf631932851d6cc522c1e48d7 current md5: e6fbb8adf631932851d6cc522c1e48d7 DEBUG:root:conffile line: /etc/apache2/envvars 7d6bac0027e73dc896a4bb3a04c2a3e5 conffile line: /etc/apache2/envvars 7d6bac0027e73dc896a4bb3a04c2a3e5 DEBUG:root:current md5: 7d6bac0027e73dc896a4bb3a04c2a3e5 current md5: 7d6bac0027e73dc896a4bb3a04c2a3e5 DEBUG:root:conffile line: /etc/apache2/magic a6d370833a02f53db6a0a30800704994 conffile line: /etc/apache2/magic a6d370833a02f53db6a0a30800704994 DEBUG:root:current md5: a6d370833a02f53db6a0a30800704994 current md5: a6d370833a02f53db6a0a30800704994 DEBUG:root:conffile line: /etc/apache2/sites-available/default-ssl bf4746bf3b38bdbbd82ba21b3933ba10 conffile line: /etc/apache2/sites-available/default-ssl bf4746bf3b38bdbbd82ba21b3933ba10 DEBUG:root:current md5: f44a4277639538bd17e2fb26ea114e9f current md5: f44a4277639538bd17e2fb26ea114e9f DEBUG:root:pkg_md5sum: 196d150beeaeaf845ece50d7e84e12de pkg_md5sum: 196d150beeaeaf845ece50d7e84e12de WARNING:root:Package 'apache2.2-common' has conffile prompt and needs to be upgraded manually Package 'apache2.2-common' has conffile prompt and needs to be upgraded manually DEBUG:root:<apt_pkg.AcquireItem object:Status: 2 Complete: 1 Local: 1 IsTrusted: 1 FileSize: 1352744 DestFile:'/var/cache/apt/archives/apache2.2-bin_2.2.16-6+squeeze7_i386.deb' DescURI: 'http://security.debian.org/pool/updates/main/a/apache2/apache2.2-bin_2.2.16-6+squeeze7_i386.deb' ID:0 ErrorText: ''> <apt_pkg.AcquireItem object:Status: 2 Complete: 1 Local: 1 IsTrusted: 1 FileSize: 1352744 DestFile:'/var/cache/apt/archives/apache2.2-bin_2.2.16-6+squeeze7_i386.deb' DescURI: 'http://security.debian.org/pool/updates/main/a/apache2/apache2.2-bin_2.2.16-6+squeeze7_i386.deb' ID:0 ErrorText: ''> DEBUG:root:check_conffile_prompt('/var/cache/apt/archives/apache2.2-bin_2.2.16-6+squeeze7_i386.deb') check_conffile_prompt('/var/cache/apt/archives/apache2.2-bin_2.2.16-6+squeeze7_i386.deb') DEBUG:root:found pkg: apache2.2-bin found pkg: apache2.2-bin DEBUG:root:blacklist: ['locales', 'libc6-i686', 'libc-bin', 'libc6', 'linux-image-2.6.32-5-486', 'linux-image-2.6.32-5-686-bigmem', 'firmware-linux-free', 'linux-base', 'libupsclient1', 'nut', 'nut-cgi', 'squid3-common', 'squid3', 'apache2.2-common'] blacklist: ['locales', 'libc6-i686', 'libc-bin', 'libc6', 'linux-image-2.6.32-5-486', 'linux-image-2.6.32-5-686-bigmem', 'firmware-linux-free', 'linux-base', 'libupsclient1', 'nut', 'nut-cgi', 'squid3-common', 'squid3', 'apache2.2-common'] DEBUG:root:Checking (blacklist): apache2 Checking (blacklist): apache2 DEBUG:root:pkg 'apache2-mpm-prefork' now marked delete pkg 'apache2-mpm-prefork' now marked delete INFO:root:package 'apache2' not upgraded package 'apache2' not upgraded DEBUG:root:Checking (blacklist): apache2-mpm-prefork Checking (blacklist): apache2-mpm-prefork DEBUG:root:skipping blacklisted package 'apache2.2-common' skipping blacklisted package 'apache2.2-common' INFO:root:package 'apache2-mpm-prefork' not upgraded package 'apache2-mpm-prefork' not upgraded DEBUG:root:Checking (blacklist): apache2.2-bin Checking (blacklist): apache2.2-bin DEBUG:root:skipping blacklisted package 'apache2.2-common' skipping blacklisted package 'apache2.2-common' INFO:root:package 'apache2.2-bin' not upgraded package 'apache2.2-bin' not upgraded DEBUG:root:Checking (blacklist): apache2.2-common Checking (blacklist): apache2.2-common DEBUG:root:skipping blacklisted package 'apache2.2-common' skipping blacklisted package 'apache2.2-common' INFO:root:package 'apache2.2-common' not upgraded package 'apache2.2-common' not upgraded DEBUG:root:InstCount=0 DelCount=0 BrokenCout=0 InstCount=0 DelCount=0 BrokenCout=0 INFO:root:Packages that are upgraded: Packages that are upgraded: DEBUG:root:Sending mail with '/var/log/unattended-upgrades/unattended-upgrades-dpkg_2012-04-24_13:23:45.634738.log' to 'root' Sending mail with '/var/log/unattended-upgrades/unattended-upgrades-dpkg_2012-04-24_13:23:45.634738.log' to 'root' DEBUG:root:mail returned: 0 mail returned: 0