Your message dated Tue, 08 Nov 2011 16:47:53 +0000
with message-id <e1rnoq1-0001l8...@franck.debian.org>
and subject line Bug#647476: fixed in unattended-upgrades 0.74
has caused the Debian Bug report #647476,
regarding unattended-upgrades: should not call dpkg unless doing some pkgs 
upgrades
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
647476: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=647476
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: unattended-upgrades
Version: 0.73.1
Severity: wishlist

Hi,

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?

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?

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



--- End Message ---
--- Begin Message ---
Source: unattended-upgrades
Source-Version: 0.74

We believe that the bug you reported is fixed in the latest version of
unattended-upgrades, which is due to be installed in the Debian FTP archive:

unattended-upgrades_0.74.dsc
  to main/u/unattended-upgrades/unattended-upgrades_0.74.dsc
unattended-upgrades_0.74.tar.gz
  to main/u/unattended-upgrades/unattended-upgrades_0.74.tar.gz
unattended-upgrades_0.74_all.deb
  to main/u/unattended-upgrades/unattended-upgrades_0.74_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 647...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Michael Vogt <m...@debian.org> (supplier of updated unattended-upgrades package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Tue, 08 Nov 2011 17:37:31 +0100
Source: unattended-upgrades
Binary: unattended-upgrades
Architecture: source all
Version: 0.74
Distribution: unstable
Urgency: low
Maintainer: Michael Vogt <michael.v...@ubuntu.com>
Changed-By: Michael Vogt <m...@debian.org>
Description: 
 unattended-upgrades - automatic installation of security upgrades
Closes: 609854 645919 645971 647172 647476
Changes: 
 unattended-upgrades (0.74) unstable; urgency=low
 .
   * test improvements
   * fix crash when no packages are upgraded
   * only run dpkg if there are packages to upgrade (closes: #647476)
   * include "stable-updates" in the configuration example
   * debian/po/de.po:
     - updated, thanks to Helge Kreutzmann (closes: #647172)
   * debian/rules:
     - install initscripts but do not run them on install/upgrade
       (closes: #645919), thanks to Teodor MICU
   * data/50unattended-upgrades.Debian:
     - update default Debian config for squeeze, thanks to
       John Feuerstein for the example (closes: #609854)
   * debian/prerm:
     - ignore failures from versions where the initscript is run
       with "stop" even when not in shutdown mode (closes: #645919)
   * unattended-upgrade:
     - ensure to release shutdown-lock before shutting down
       (closes: #645919)
   * debian/postinst, data/20auto-upgrades-disabled:
     - allow disabling via debconf (closes: #645971)
Checksums-Sha1: 
 251552a8915887ce9e05e54101b0535653f8deff 986 unattended-upgrades_0.74.dsc
 fdb200aac9288e90035f6a0e8e08f2a491f2dbf4 62470 unattended-upgrades_0.74.tar.gz
 c4f25fd58d7c436c918640c552dcaa246d9171bb 37094 unattended-upgrades_0.74_all.deb
Checksums-Sha256: 
 426fdfceeff5f3830fd09bdd7f117deda227eda9e88b779695e2ceec3a6656d4 986 
unattended-upgrades_0.74.dsc
 302dd2555c07319ac2d40171329d5995901ef6d031eca82e74f11682a34bfa60 62470 
unattended-upgrades_0.74.tar.gz
 26c6be87466578fba67b98b6358fead71c0f79bd683fc44900e08f30a2986811 37094 
unattended-upgrades_0.74_all.deb
Files: 
 07aa6166860829772bdd3ba9e3c42c11 986 admin optional 
unattended-upgrades_0.74.dsc
 dabfcc5604a3dfb1066828997c190b6c 62470 admin optional 
unattended-upgrades_0.74.tar.gz
 85e6337a991fb3539d3877ef118f0e56 37094 admin optional 
unattended-upgrades_0.74_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAk65WwgACgkQliSD4VZixzS6dACgm3g6ntqKYy/D7mJ21F5VeW9s
K8EAnAuduWiqRW/iS/dyOYyX7sqbdODx
=oMuC
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to