Make log/status mail contain info about "kept back" packages

Bug #245422 reported by Thomas Ribbrock
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
unattended-upgrades (Ubuntu)
Fix Released
Undecided
Michael Vogt

Bug Description

Binary package hint: unattended-upgrades

In some cases, unattended-upgrades will not execute all available upgrades (e.g. if apt holds back a package due to some other package needing to be installed additionally). Unfortunately, neither the *.log files nor the status mail of unattended-upgrades contains any information about this - you have to log in on the workstation in question and run "apt-get upgrade" manually to get this information. It would be great if unattended-upgrades could supply this information itself (especially in the mail) - that way keeping an eye on what's going on is a lot easier for an admin with several of these workstations.

Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for your bugreport.

I added a summary into the mail that shows the packages kept back with the configured "origin" (security by default). However it does not show other upgradable packages that are not installed. E.g. if you have -security and -updates enabled but only -security in the unattended-upgrades whitelist it will only sent a mail about the kept backs in -security and not mention -updates. This is (for now) intentional.

Do you think it should also include other possible ugprades in the mail?

Changed in unattended-upgrades:
assignee: nobody → mvo
status: New → Incomplete
Revision history for this message
Dominik Holler (dominik-holler) wrote :

I have a similar problem with a LAMP server on hardy:

/var/log/unattended-upgrades/unattended-upgrades.log says:

2009-03-17 06:34:27,045 INFO Initial blacklisted packages:
2009-03-17 06:34:27,045 INFO Starting unattended upgrades script
2009-03-17 06:34:27,045 INFO Allowed origins are: ["['Ubuntu', 'hardy-security']", "['Ubuntu', 'hardy-updates']"]
2009-03-17 06:34:29,166 WARNING pkg 'apache2.2-common' has conffile prompt and needs to be upgraded manually
2009-03-17 06:34:29,573 INFO package 'apache2-mpm-prefork' not upgraded
2009-03-17 06:34:30,036 INFO package 'apache2.2-common' not upgraded
2009-03-17 06:34:30,450 INFO package 'apache2' not upgraded
2009-03-17 06:34:30,721 INFO No packages found that can be upgraded unattended

but I got no email about this warning.

Revision history for this message
Dominik Holler (dominik-holler) wrote :
Revision history for this message
Dominik Holler (dominik-holler) wrote :
Revision history for this message
Dominik Holler (dominik-holler) wrote :

smtpLogging require mailserver on 127.0.0.1:25

Michael Vogt (mvo)
Changed in unattended-upgrades (Ubuntu):
status: Incomplete → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package unattended-upgrades - 0.50ubuntu1

---------------
unattended-upgrades (0.50ubuntu1) karmic; urgency=low

  * fix crash in ouput, thanks to Joerg Schuetter, closes: #535347
  * when running in --debug mode, also print debug output to stderr
  * add --dry-run option to simulate a run, but not actually install
    something
  * when running with --debug, install packages instead of just
    simulating the install, --dry-run is avaialble for simulation
  * check for packages on hold and do not upgrade them (closes: #511677)
  * deal better with failures in pkgname_from_deb() (LP: #305046)
  * improved the README some more (LP: #311052)
  * fix locking problem (LP: #359010)
  * Contain unattended-upgrades log in the status mail as well
    (LP: #245422)
  * ensure that unattended-upgrade is finished on shutdown
    (LP: #191514)

 -- Michael Vogt <email address hidden> Mon, 06 Jul 2009 09:26:48 +0200

Changed in unattended-upgrades (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.