Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

This question already has an answer here:

Hi guys I've just got this error message when i opened update manager:

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

any ideas how to solve this problem?

share|improve this question
    
I think that you will find the solution here. Just to mention, you should show all the content of that file to solve that. Anyway, this post will probably closed as a duplicated soon. If that post doesn't address with your issue, you should tell us. –  Lucio Apr 24 '13 at 16:47
add comment

marked as duplicate by TheX, Mitch, Kevin Bowen, Basharat Sial, bcbc Apr 24 '13 at 22:31

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer

up vote 1 down vote accepted

Please try to edit your sources.list file by dropping sudo gedit /etc/apt/sources.list in a terminal (your password may be asked), after which you will have the options to enable "Line Numbers" in the Menu Edit/Preferences of gEdit and clicking the "Display line numbers" checkbox, then manually go to the Line 57 or by using "Search/Go to line" (Ctrl+I does the trick).

enter image description here

At the beginning of the Line 57 drop two # symbols (##) to comment on that line and this way remove it from the update process (you can also delete that line at your own risk, I suggest you a backup).

When you finish, save the file and close it down. Then open a terminal and run sudo apt-get update and see if the error still appears. If not, then try opening your update manager.

Somehow it seems that the text in the Line 57 of your sources.list file is corrupted or there is some kind of an error, which means that some software is unable to be installed/updated/upgraded.

By commenting/removing the erroneous line the software won't be installed (if not already) or won't be updated/upgraded if that's what you try. Of which I suggest you to check where is that line coming from (which software requires it) and do the proper modifications as required in order to everything run fine.

This answer may be modified or deleted depending on your feedback. For further support please provide the details of your sources.list file.

Thank you and Good luck!

share|improve this answer
    
Thank you so much that worked a charm :D –  DriftedMass Apr 24 '13 at 17:09
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.