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

Asked by amit ate

update manager does not work

Distribution: Ubuntu 11.04 natty
Application: Ubuntu Tweak 0.5.14
Desktop: Traceback (most recent call last):
   File "/usr/lib/python2.7/dist-packages/ubuntutweak/mainwindow.py", line 502, in setup_notebook
     page = module()
   File "/usr/lib/python2.7/dist-packages/ubuntutweak/modules/updatemanager.py", line 44, in __init__
     self.update_list()
   File "/usr/lib/python2.7/dist-packages/ubuntutweak/modules/updatemanager.py", line 59, in update_list
     PACKAGE_WORKER.update_apt_cache(init=True)
   File "/usr/lib/python2.7/dist-packages/ubuntutweak/common/package.py", line 226, in update_apt_cache
     self.cache = apt.Cache()
   File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 89, in __init__
     self.open(progress)
   File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 131, in open
     self._list.read_main_list()
 SystemError: E:Malformed line 61 in source list /etc/apt/sources.list (dist parse)

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu Tweak Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
J. Austin Rodriguez (jeanaustinr) said :
#1

The problem could not be reproduced. The reporter, amit ate, was requested to provide the information of his sources.list in order to correct the problem. We believe this is not a bug but an issue that needs only technical support therefore we are converting this to a question.

Distribution: Ubuntu 11.04 natty
Application: Ubuntu Tweak 0.5.14
Desktop: Traceback (most recent call last):
   File "/usr/lib/python2.7/dist-packages/ubuntutweak/mainwindow.py", line 502, in setup_notebook
     page = module()
   File "/usr/lib/python2.7/dist-packages/ubuntutweak/modules/updatemanager.py", line 44, in __init__
     self.update_list()
   File "/usr/lib/python2.7/dist-packages/ubuntutweak/modules/updatemanager.py", line 59, in update_list
     PACKAGE_WORKER.update_apt_cache(init=True)
   File "/usr/lib/python2.7/dist-packages/ubuntutweak/common/package.py", line 226, in update_apt_cache
     self.cache = apt.Cache()
   File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 89, in __init__
     self.open(progress)
   File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 131, in open
     self._list.read_main_list()
 SystemError: E:Malformed line 61 in source list /etc/apt/sources.list (dist parse)

Revision history for this message
J. Austin Rodriguez (jeanaustinr) said :
#2

Hi amit ate, the 61st line in your /etc/apt/sources.list probably contains an invalid link or incorrectly typed URL. Please check the file and post the result here in order for us to resolve.

Thank you!

Revision history for this message
J. Austin Rodriguez (jeanaustinr) said :
#3

This issue seems to be old already and I assume that it has already been corrected. If it is, kindly mark this as SOLVED or CLOSED.

Thank you again!

Revision history for this message
Launchpad Janitor (janitor) said :
#4

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.