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.

Possible Duplicate:
“Malformed line 6” error in my /etc/apt/sources.list
E: Malformed line 59 in source list /etc/apt/sources.list (dist parse) E: The list of sources could not be read

Every time I try to install a new application or any other library to my Ubuntu 12.04, it does everything and at the end it shows me a message saying:

E: Malformed line 60 in source list / etc / apt / sources.list (distribution analysis)
E: The list of sources could not be read.
share|improve this question

marked as duplicate by Jacob Johan Edwards, Mitch, Stephen Myall, Eliah Kagan, Anwar Shah Sep 1 '12 at 16:49

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.

Can you please post the contents of you /etc/apt/sources.list file. –  green7 Aug 31 '12 at 15:57
@green7 I'm new on Linux platforms and I didn't get your question.. –  Erikson Aug 31 '12 at 17:14
@Erikson Press Alt+F2 and type: gedit /etc/apt/sources.list. You will see text editor. Copy the stuff you see to paste.ubuntu.com and give the link of the page you end up at when you submit the form. Hopefully this helps. –  hexafraction Aug 31 '12 at 17:26
@ObsessiveFOSS Just did as you said, here's the link paste.ubuntu.com/1179152 Thanks for helping me, I realy liked to get used to ubuntu... –  Erikson Sep 1 '12 at 6:05
@Erikson Did you use gksudo with gedit, so you are prompted for a password? –  user76204 Sep 1 '12 at 17:19
show 9 more comments

1 Answer 1

up vote 2 down vote accepted

Looking at the error message you posted and your Pastebin, the problem lies in lines 60-63 of your sources.list:

Your incorrect sources look like this:

deb http://archive.canonical.com/ partner
deb-src http://archive.canonical.com/ partner
deb http://archieve.canonical.com/ partner
deb-src http://archieve.canonical.com/ partner

While they should look like this instead:

deb http://archive.canonical.com/ubuntu precise partner
deb-src http://archive.canonical.com/ubuntu precise partner

I have removed the other two lines of the partner repository because it was a duplication.

Please press Alt+F2 and type

gksudo gedit /etc/apt/sources.list

Then edit your sources so they look the same as I have noted above and then save and exit gedit.

Now running

sudo apt-get update

should be successful.

share|improve this answer
The last two lines are duplicated, they should be removed. –  Eric Carvalho Sep 1 '12 at 14:39
Yes, I've edited it now. –  user76204 Sep 1 '12 at 14:42
@Mik worked, Thank you very much, I'm using ubuntu for 2 or 3 days and everything is new for, thank's ones again. –  Erikson Sep 1 '12 at 17:54
That's okay, hope you enjoy Ubuntu! –  user76204 Sep 1 '12 at 17:55
add comment

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