aptd crashed with AttributeError in _emit_acquire_item()

Bug #588476 reported by Nicolas DERIVE
282
This bug affects 58 people
Affects Status Importance Assigned to Milestone
aptdaemon (Ubuntu)
Fix Released
Undecided
Unassigned
Nominated for Maverick by Boden Matthews

Bug Description

Binary package hint: aptdaemon

when checking and installing updates.

ProblemType: Crash
DistroRelease: Ubuntu 10.10
Package: aptdaemon 0.31+bzr412-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.34-5.12-generic 2.6.34
Uname: Linux 2.6.34-5-generic i686
Architecture: i386
Date: Tue Jun 1 22:25:06 2010
ExecutablePath: /usr/sbin/aptd
InterpreterPath: /usr/bin/python2.6
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/sbin/aptd
ProcEnviron:

PythonArgs: ['/usr/sbin/aptd']
SourcePackage: aptdaemon
Title: aptd crashed with AttributeError in _emit_acquire_item()
UserGroups:

Revision history for this message
Nicolas DERIVE (kalon33) wrote :
visibility: private → public
tags: removed: need-duplicate-check
Revision history for this message
Nicolò Chieffo (yelo3) wrote :

Actually the class apt_pkg.AcquireItem does not have an attribute named STAT_FAILED, but it has STAT_ERROR
This is definitely an error

Revision history for this message
Nicolò Chieffo (yelo3) wrote :

which can easily be fixed by changing the line 119
elif item.owner.status == apt_pkg.AcquireItem.STAT_FAILED:
to
elif item.owner.status == apt_pkg.AcquireItem.STAT_ERROR:

Revision history for this message
Nicolas DERIVE (kalon33) wrote :

@mvo: some update on the upstream resolution of this bug with this trivial fix?

Revision history for this message
Sebastian Heinlein (glatzor) wrote :

Fixed in rev 403 some time ago.

Changed in aptdaemon (Ubuntu):
status: New → Fix Committed
Revision history for this message
Nicolas DERIVE (kalon33) wrote :

@glatzor: Is it released in maverick ? If it is, it should not correctly fix it because I got this today again.

Revision history for this message
Jon "The Nice Guy" Spriggs (jontheniceguy) wrote :

I also received this today - I had network connection, but my upstream router was pointing everything to an error page (including DNS resolves) - I'm guessing this was a symptom of the fault, but given the fix described before, it was not the fault itself.

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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