Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
How do I fix “malformed line” errors in sources.list?

I can't open Ubuntu software-center. And I can't update in Terminal. When I type sudo apt-get update, it just shows:

E: Malformed line 2 in source list /etc/apt/sources.list.d/gnomebaker.list (dist parse)
E: The list of sources could not be read
share|improve this question

marked as duplicate by jokerdino, Ringtail, Mitch, Jorge Castro, stephenmyall Oct 30 '12 at 10:28

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.

Please refer to this, and post the asked content , by editing your question. – atenz Jun 26 '12 at 16:02
Forgot to add , USE you Erroneous Line Number in Third Step. – atenz Jun 26 '12 at 16:14
  • Open a terminal and run sudo gedit /etc/apt/sources.list.d/gnomebaker.list
  • Remove all the existing lines in the file, and add these lines

    deb oneiric main
    deb-src oneiric main.

  • Exit gedit and then run sudo apt-get update. you will be file

share|improve this answer
I jus fixed it i needet to delete gnomebaker.list file and it forx 100% – Karoliuxas Jun 27 '12 at 12:35
deb oneiric main
deb-src o

The file's cut off. It should be like this;

deb oneiric main deb-src
deb-src oneiric main
share|improve this answer
I CAN'T EDIT WHAT FILE;( – Karoliuxas Jun 26 '12 at 16:17
gksu gedit /etc/apt/sources.list.d/gnomebaker.list – RobinJ Jun 26 '12 at 16:55

(Answer to your question what file to open, sorry can't comment)

Open 'software sources' and in the tab 'Other software', select the gnomebaker respository, then 'edit' and change according to RobinJ's answer. Then run 'sudo apt-get update' and try installing again...

Hope it works

share|improve this answer
How to open software sources im new on ubuntu:/ – Karoliuxas Jun 26 '12 at 17:00
What do you have? 10.04? 11.10? 12.04? – Tinellus Jun 26 '12 at 17:03
I have ubuntu 12.04 – Karoliuxas Jun 26 '12 at 17:19
Hm, I just realized it's probably not installed by default in 12.04... Could you check? In launcher-dash, type 'software sources', does the app start? – Tinellus Jun 26 '12 at 17:23
How to i need to check it im new in ubuntu and i don't understand;( – Karoliuxas Jun 26 '12 at 17:30

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