SystemError: E:Malformed line 47 in source list /etc/apt/sources.list (dist parse)

Bug #981357 reported by qamer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Tweak
Incomplete
Undecided
Unassigned

Bug Description

ok
If you'd like to help us fix the problem,
Please choose Report to file a new bug report. Make sure to include the error message below:

Distribution: Ubuntu 10.10 maverick
Application: Ubuntu Tweak 0.6.0
Desktop: gnome

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/ubuntutweak/mainwindow.py", line 502, in setup_notebook
    page = module()
  File "/usr/lib/python2.6/dist-packages/ubuntutweak/modules/updatemanager.py", line 44, in __init__
    self.update_list()
  File "/usr/lib/python2.6/dist-packages/ubuntutweak/modules/updatemanager.py", line 59, in update_list
    PACKAGE_WORKER.update_apt_cache(init=True)
  File "/usr/lib/python2.6/dist-packages/ubuntutweak/common/package.py", line 226, in update_apt_cache
    self.cache = apt.Cache()
  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 47 in source list /etc/apt/sources.list (dist parse)

Revision history for this message
Carl Ansell (afccarl1994) wrote :

Thank you for your bug report. It seems that it is reporting an error with your sources.list file.

Could you type ' gksudo gedit /etc/apt/sources.list', and uncomment line 47 by adding a # to the start of the line?

Changed in ubuntu-tweak:
status: New → Incomplete
summary: - Distribution: Ubuntu 10.10 maverick Application: Ubuntu Tweak 0.6.0
- Desktop: gnome Traceback (most recent call last): File
- "/usr/lib/python2.6/dist-packages/ubuntutweak/mainwindow.py", line 502,
- in setup_notebook page = module() File "/usr/lib/python2.6/dist-
- packages/ubuntutweak/modules/updatemanager.py", line 44, in __init__
- self.update_list() File "/usr/lib/python2.6/dist-
- packages/ubuntutweak/modules/updatemanager.py", line 59, in update_list
- PACKAGE_WORKER.update_apt_cache(init=True) File
- "/usr/lib/python2.6/dist-packages/ubuntutweak/common/package.py", line
- 226, in update_apt_cache self.cache = apt.Cache() 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 47 in source
- list /etc/apt/sources.list (dist parse)
+ SystemError: E:Malformed line 47 in source list /etc/apt/sources.list
+ (dist parse)
Revision history for this message
Blake Clark (bobmcnugget2013) wrote :

 after modifying that on ubuntu lts 14.04 and accessing gedit with ; sudo gedit /etc/apt/sources list and using hash (#) symbol the application named as do-release-upgrade crashes and shows a notification that it has stopped unexpectedly. doesnt solve the whole problem. need this fixed- contact me @ <email address hidden>

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.