Poor handling of broken sources.list files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Aptdaemon |
Confirmed
|
Undecided
|
Unassigned | ||
aptdaemon (Ubuntu) |
Confirmed
|
Undecided
|
Matthew Paul Thomas | ||
software-center (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
update-manager (Ubuntu) |
Confirmed
|
Low
|
Unassigned |
Bug Description
Ubuntu Software Center 2.1.16.1, Ubuntu Maverick
Ubuntu Software Center 5.1.11, Ubuntu 12.04 beta 1
1. echo "deb http://
2. software-center
3. update-manager
What happens:
2. ----------
Traceback (most recent call last):
File "/usr/share/
self._cache = apt.Cache(
File "/usr/lib/
self.
File "/usr/lib/
self._cache = apt_pkg.
SystemError: E:Malformed line 1 in source list /etc/apt/
2012-03-12 10:52:15,573 - softwarecenter.
Traceback (most recent call last):
File "/usr/share/
tmp_matches = enquire.get_mset(0, len(self.db), None, xfilter)
File "/usr/share/
if (not pkgname in self.cache and
File "/usr/share/
return self._cache.
AttributeError: 'NoneType' object has no attribute '__contains__'
Traceback (most recent call last):
File "/usr/bin/
app.run(args)
File "/usr/share/
self.
File "/usr/share/
self.
File "/usr/share/
view_
File "/usr/share/
self.
File "/usr/share/
self.
File "/usr/share/
self.
File "/usr/share/
self.
File "/usr/share/
whats_new_cat = self._update_
File "/usr/share/
docs = whats_new_
File "/usr/share/
nonblocking
File "/usr/share/
self.
File "/usr/share/
matches = enquire.get_mset(0, self.limit, None, xfilter)
File "/usr/share/
if (not pkgname in self.cache and
File "/usr/share/
return self._cache.
AttributeError: 'NoneType' object has no attribute '__contains__'
------------
3. A dialog is displayed with something along these lines:
------------
Could not initialize the package information
An unresolvable problem occurred while initializing the package information.
Please report this bug against the 'update-manager' package and include the following error message:
'E:Type 't/screenlets/
------------
And an obese menu appears in the corner of the screen. <http://
Besides the duplicates marked here, there are dozens of bug reports with particular examples of malformed sources.list, such as bug 128775, bug 163933, bug 164135, bug 176253, bug 183861, bug 241154, bug 311399, bug 350373, bug 358587, bug 416872, bug 432318, bug 470589, bug 617232, bug 617998, bug 677698, bug 728258, bug 753253, bug 799600, bug 830588, bug 835258, bug 879221, bug 880661, bug 886641, bug 890138, bug 927987, bug 947296, bug 981357, bug 1008359, bug 1009618, and bug 1063099.
Often these bug reports are marked as Incomplete or Invalid, or converted into questions, on the grounds that the user must have edited sources.list themselves. But Ubuntu should be robust enough to repair problems like this itself.
Changed in update-manager (Ubuntu): | |
status: | Confirmed → Triaged |
importance: | Undecided → Low |
Changed in aptdaemon (Ubuntu): | |
assignee: | nobody → Matthew Paul Thomas (mpt) |
description: | updated |
summary: |
- improve handling of broken sources.list files + Poor handling of broken sources.list files |
Changed in aptdaemon (Ubuntu): | |
status: | Confirmed → Incomplete |
Changed in software-center (Ubuntu): | |
status: | Confirmed → Opinion |
Changed in update-manager (Ubuntu): | |
status: | Triaged → Fix Released |
Changed in software-center (Ubuntu): | |
status: | Opinion → Fix Released |
Changed in aptdaemon (Ubuntu): | |
status: | Incomplete → Fix Released |
Changed in software-center (Ubuntu): | |
status: | Fix Released → Confirmed |
Changed in aptdaemon (Ubuntu): | |
status: | Fix Released → Confirmed |
Changed in update-manager (Ubuntu): | |
status: | Fix Released → Confirmed |
Changed in aptdaemon: | |
status: | New → Confirmed |
Status changed to 'Confirmed' because the bug affects multiple users.