spawning cron error messages

Bug #38958 reported by Freemor
10
Affects Status Importance Assigned to Milestone
unattended-upgrades (Ubuntu)
Fix Released
Medium
Michael Vogt

Bug Description

unattended-upgrades is reporting the following error on both computers that Dapper is installed on here.

/etc/cron.daily/apt:
Traceback (most recent call last):
  File "/usr/bin/unattended-upgrade", line 149, in ?
    if pkg.isUpgradable and \
  File "/usr/bin/unattended-upgrade", line 33, in is_allowed_origin
    if origin.origin == allowed[0] and origin.archive == allowed[1]:
AttributeError: 'list' object has no attribute 'origin'

Revision history for this message
Reinhard Tartler (siretart) wrote :

this happens on the shell with 'sudo /usr/bin/unattended-upgrade' as well

Revision history for this message
Andy Hauser (andy-ubuntu-bugzilla) wrote :

Same here.

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

Thanks for your bugreport.

Unfortunately I can't reproduce the problem here. Could you please apply the following patch and tell me what it outputs with it when run on the terminal?

=== modified file 'unattended-upgrade'

--- unattended-upgrade

+++ unattended-upgrade

@@ -28,6 +28,7 @@

 def is_allowed_origin(pkg, allowed_origins):

     for origin in pkg.candidateOrigin:

+ print origin

         for allowed in allowed_origins:

             if origin.origin == allowed[0] and origin.archive == allowed[1]:

                 return True

Changed in unattended-upgrades:
assignee: nobody → mvo
status: Unconfirmed → Needs Info
Revision history for this message
Michael Vogt (mvo) wrote :

Please ignore the last patch.

Changed in unattended-upgrades:
status: Needs Info → Confirmed
Revision history for this message
Michael Vogt (mvo) wrote :

I can now reproduce it and it should be fixed with the upload of: unattended-upgrades_0.1ubuntu1

Please reopen if this issue still exists after the update.

Thanks,
 Michael

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