Handle SystemError in apt.cache.Cache.required_download properly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
aptdaemon (Ubuntu) |
Fix Released
|
Low
|
Sebastian Heinlein |
Bug Description
Binary package hint: aptdaemon
I was trying to update and I got an error. Then I wanted to report the bug, and I got this other error.
Ubuntu 11.04
0.41+bzr646-
ProblemType: Crash
DistroRelease: Ubuntu 11.04
Package: aptdaemon 0.41+bzr646-
ProcVersionSign
Uname: Linux 2.6.38-8-generic i686
Annotation: Applying software changes failed
Architecture: i386
Date: Mon May 9 22:08:52 2011
DesktopFile: /usr/share/
ExecutablePath: /usr/sbin/aptd
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
PackageArchitec
SourcePackage: aptdaemon
Title: <type 'exceptions.
TransactionDepends: [[], [], [], [], [], [], []]
TransactionErro
TransactionKwargs: {}
TransactionLocale: fr_BE.UTF8
TransactionOutput:
TransactionPack
TransactionRole: role-commit-
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in aptdaemon (Ubuntu): | |
status: | New → Confirmed |
Changed in aptdaemon (Ubuntu): | |
assignee: | nobody → Sebastian Heinlein (glatzor) |
importance: | Undecided → Low |
summary: |
- <type 'exceptions.SystemError'>: E:The package index files are - corrupted. No Filename: field for package tzdata. + Handle SystemError in apt.cache.Cache.required_download properly |
Changed in aptdaemon (Ubuntu): | |
status: | Confirmed → Fix Released |
This is due to corrupted index files (likely an incomplete download) and can be solved by removing the content of /var/lib/apt/lists
sudo rm -r /var/lib/ apt/lists/ *
(or just the corrupted file if you can identify it)
Anyway it would be nice if this could be handled in a better way. It is unavoidable that it happens every now and then and most users do not have a clue about what to do.