On Thu, Nov 03, 2011 at 06:23:27AM +0200, Teodor wrote: > Package: unattended-upgrades > Version: 0.73.1 > Severity: wishlist
Thanks for your bugreport. > The u-a execution from today had no packages to upgrade: > | 2011-11-03 06:06:06,374 INFO Initial blacklisted packages: > | 2011-11-03 06:06:06,375 INFO Starting unattended upgrades script > | 2011-11-03 06:06:06,375 INFO Allowed origins are: ['o=Debian,a=testing'] > | 2011-11-03 06:06:08,892 INFO Packages that are auto removed: '' > | 2011-11-03 06:06:08,893 INFO Packages that are upgraded: > | 2011-11-03 06:06:08,900 INFO Writing dpkg log to '/var/log/unattended- > | upgrades/unattended-upgrades-dpkg_2011-11-03_06:06:08.899917.log' > | 2011-11-03 06:06:19,078 INFO All upgrades installed > > The content of the specific 2011-11-03 log file is: > | [ Rootkit Hunter version 1.3.8 ] > | File updated: searched for 167 files, found 138 > > These lines are produced by this config I've put in apt.conf.d/98rkhunter: > | DPkg { > | // Auto update the 'rkhunter' properties database > | Post-Invoke { "which rkhunter >/dev/null && rkhunter --propupd"; }; > | }; > > This allows me automatically update the rkhunter properties on manual or > automatic packages upgrades. However, u-a somehow executes 'dpkg' even if > no package is upgraded. Why? Indeed, this is fixed now in trunk and will be part of the next upload. > In README.gz I read this: > | All operations will be logged in /var/log/unattended-upgrades/. This > | includes the dpkg output as well. > > This is fine when there is something to upgrade. But why execute 'dpkg' on > every execution? Isn't there some other way to determine if there are some > packages to upgrade? See above, it was simply a bug, should be fixed in trunk now. Cheers, Michael > Thanks > > > -- System Information: > Debian Release: wheezy/sid > APT prefers testing > APT policy: (500, 'testing'), (200, 'unstable') > Architecture: amd64 (x86_64) > > Kernel: Linux 3.0.0-2-amd64 (SMP w/2 CPU cores) > Locale: LANG=ro_RO.utf8, LC_CTYPE=ro_RO.utf8 (charmap=UTF-8) > Shell: /bin/sh linked to /bin/dash > > Versions of packages unattended-upgrades depends on: > ii apt 0.8.15.9 > ii apt-utils 0.8.15.9 > ii debconf [debconf-2.0] 1.5.41 > ii lsb-release 3.2-28 > ii python 2.7.2-9 > ii python-apt 0.8.0 > ii ucf 3.0025+nmu2 > > unattended-upgrades recommends no packages. > > Versions of packages unattended-upgrades suggests: > pn bsd-mailx <none> > > -- Configuration Files: > /etc/apt/apt.conf.d/50unattended-upgrades changed: > // Automatically upgrade packages from these (origin, archive) pairs > Unattended-Upgrade::Origins-Pattern { > "o=Debian,a=testing"; > // "origin=Debian,label=Debian-Security,archive=stable"; > // "o=Debian,a=stable"; > // "o=Debian,a=oldstable"; > // "o={distro_id},a=${distro_codename}-proposed-updates"; > }; > // List of packages to not update > Unattended-Upgrade::Package-Blacklist { > // "vim"; > // "libc6"; > // "libc6-dev"; > // "libc6-i686"; > }; > // This option allows you to control if on a unclean dpkg exit > // unattended-upgrades will automatically run > // dpkg --force-confold --configure -a > // The default is true, to ensure updates keep getting installed > //Unattended-Upgrade::AutoFixInterruptedDpkg "false"; > // Split the upgrade into the smallest possible chunks so that > // they can be interrupted with SIGUSR1. This makes the upgrade > // a bit slower but it has the benefit that shutdown while a upgrade > // is running is possible (with a small delay) > //Unattended-Upgrades::MinimalSteps "true"; > // Send email to this address for problems or packages upgrades > // If empty or unset then no email is sent, make sure that you > // have a working mail setup on your system. The package 'mailx' > // must be installed or anything that provides /usr/bin/mail. > Unattended-Upgrade::Mail "root"; > // Set this value to "true" to get emails only on errors. Default > // is to always send a mail if Unattended-Upgrade::Mail is set > Unattended-Upgrade::MailOnlyOnError "true"; > // Do automatic removal of new unused dependencies after the upgrade > // (equivalent to apt-get autoremove) > Unattended-Upgrade::Remove-Unused-Dependencies "true"; > // Automatically reboot *WITHOUT CONFIRMATION* if a > // the file /var/run/reboot-required is found after the upgrade > //Unattended-Upgrade::Automatic-Reboot "false"; > // Use apt bandwidth limit feature, this example limits the download > // speed to 70kb/sec > Acquire::http::Dl-Limit "6144"; > > > -- debconf information: > * unattended-upgrades/enable_auto_updates: true > > -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org