desktop-packages team mailing list archive
-
desktop-packages team
-
Mailing list archive
-
Message #27859
[Bug 633626] Re: Crashes silently if /etc/apt/sources.list.d/ contains a malformed file
more than a year marked 'In progress' resetting status.
** Changed in: software-center (Ubuntu)
Status: In Progress => Triaged
** Changed in: software-center (Ubuntu)
Assignee: Mohamed Amine Ilidrissi (ilidrissi.amine) => (unassigned)
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to software-center in Ubuntu.
https://bugs.launchpad.net/bugs/633626
Title:
Crashes silently if /etc/apt/sources.list.d/ contains a malformed file
Status in “software-center” package in Ubuntu:
Triaged
Bug description:
Binary package hint: software-center
Ubuntu Software Center 2.1.16.1, Ubuntu Maverick
1. sudo echo "deb http://ppa.launchpad.net/tualatrix/ppa/ubuntu main #Ubuntu Tweak Stable Source" > /etc/apt/sources.list.d/ubuntu-tweak-stable.list
2. software-center
What happens:
------------
Traceback (most recent call last):
File "/usr/share/software-center/softwarecenter/apt/aptcache.py", line 104, in open
self._cache = apt.Cache(GtkMainIterationProgress())
File "/usr/lib/python2.6/dist-packages/apt/cache.py", line 88, in __init__
self.open(progress)
File "/usr/lib/python2.6/dist-packages/apt/cache.py", line 130, in open
self._list.read_main_list()
SystemError: E:Malformed line 1 in source list /etc/apt/sources.list.d/ubuntu-tweak-stable.list (dist parse)
Traceback (most recent call last):
File "/usr/bin/software-center", line 86, in <module>
app = SoftwareCenterApp(datadir, xapian_base_path, options, args)
File "/usr/share/software-center/softwarecenter/app.py", line 308, in __init__
self.view_switcher = ViewSwitcher(self.view_manager, datadir, self.db, self.cache, self.icons)
File "/usr/share/software-center/softwarecenter/view/viewswitcher.py", line 59, in __init__
store = ViewSwitcherList(view_manager, datadir, db, cache, icons)
File "/usr/share/software-center/softwarecenter/view/viewswitcher.py", line 313, in __init__
self._update_channel_list()
File "/usr/share/software-center/softwarecenter/view/viewswitcher.py", line 387, in _update_channel_list
self._update_channel_list_installed_view()
File "/usr/share/software-center/softwarecenter/view/viewswitcher.py", line 440, in _update_channel_list_installed_view
if (pkgname in self.cache and
File "/usr/share/software-center/softwarecenter/apt/aptcache.py", line 116, in __contains__
return self._cache.__contains__(k)
AttributeError: 'NoneType' object has no attribute '__contains__'
------------
What should happen: The malformed source is ignored, and Ubuntu
Software Center opens ready for use.
Possibly this needs fixing in apt rather than in USC itself.
To recover:
3. sudo rm /etc/apt/sources.list.d/ubuntu-tweak-stable.list
The equivalent bug in Update Manager is bug 633316, and in Synaptic is
bug 633630.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-center/+bug/633626/+subscriptions