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.

Hi i try to open my Ubuntu software center.. but it always crashed.

Then i try to update my Ubuntu and this is what come out from the terminal:

E: Malformed line 57 in source list /etc/apt/sources.list (dist parse)
E: The list of sources could not be read.

Please help.

share|improve this question
2  
Please add the content of your Sources.list file . –  Uri Herrera Jul 29 '12 at 5:34
add comment

closed as too localized by Jorge Castro, jokerdino, izx, Mitch, andrewsomething Aug 18 '12 at 1:36

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer

Once we look at your sources.list file, and determine what need to happen, you can either edit the line or delete it. To do that, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command below.

gksudo gedit /etc/apt/sources.list

Go down to line 57, and modify it, or just delete it. Then do

sudo apt-get update

If the file is corrupt, then you can use Ubuntu Sources List Generator to create a new file.

share|improve this answer
    
This line might be quite important (just corrupted or with a syntax error inadvertantly introduced). Just deleting lines in /etc/apt/sources.list without knowing what they say is not good advice; you could end up preventing software from getting important updates. It really is necessary to see the file (or at least that line) to provide a solution. –  Eliah Kagan Aug 2 '12 at 1:43
    
@EliahKagan I understand, but since the OP hasn't supplied that info, and by looking at multiple sources.list contents, I felt that deleting that line would help. Any way I have modified the answer:) –  Mitch Aug 2 '12 at 2:04
add comment

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