sudo /usr/bin/unattended-upgrade -d fails

Bug #43773 reported by Reinhard Tartler
8
Affects Status Importance Assigned to Milestone
unattended-upgrades (Ubuntu)
Fix Released
Medium
Michael Vogt

Bug Description

siretart@hades:~
>> sudo /usr/bin/unattended-upgrade -d
Traceback (most recent call last):
  File "/usr/bin/unattended-upgrade", line 147, in ?
    logging.debug("Checking: %s (%s)" % (pkg.name,pkg.candidateOrigin.archive))
AttributeError: 'list' object has no attribute 'archive'
zsh: exit 1 sudo /usr/bin/unattended-upgrade -d

Revision history for this message
Gary Coady (garycoady) wrote :

Confirmed. pkg.candidateOrigin appears to contain a single item, a long string containing the component/archive changes. Not sure if this is what the python-apt API is supposed to return...

(Pdb) print pkg.candidateOrigin
[component: 'main' archive: 'dapper' origin: 'Ubuntu' label: 'Ubuntu' site 'ftp.ubuntu.com' isTrusted: 'True']

Changed in unattended-upgrades:
status: Unconfirmed → Confirmed
Revision history for this message
Gary Coady (garycoady) wrote : Print out the list of origins in debug mode

One possible way of printing out the debug line "Checking:".
With this code, it looks like
DEBUG Checking: libasound2-dev (['dapper'])

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

Thanks a lot for your patch. I added a (slightly modified) version of it to the bzr archive and it will be part of the next upload.

Changed in unattended-upgrades:
assignee: nobody → mvo
status: Confirmed → Fix Committed
Revision history for this message
Michael Vogt (mvo) wrote :

This should be fixed with the upload of version 0.1ubuntu2. Feedback is welcome :)

Thanks,
 Michael

Revision history for this message
Gary Coady (garycoady) wrote :

Looks fine - I guess when debugging, the more information in the log, the better :)

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

Thanks for giving it some additional testing :)

Changed in unattended-upgrades:
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.