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:
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
    
Please refer to this askubuntu.com/a/152300/63025, and post the asked content , by editing your question. –  tijybba Jun 26 '12 at 16:02
    
Forgot to add , USE you Erroneous Line Number in Third Step. –  tijybba Jun 26 '12 at 16:14
add comment

marked as duplicate by jokerdino, Ringtail, Mitch, Jorge Castro, Stephen Myall 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.

3 Answers

  • 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 ppa.launchpad.net/gnomebaker/stable/ubuntu oneiric main
    deb-src ppa.launchpad.net/gnomebaker/stable/ubuntu 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
add comment
deb ppa.launchpad.net/gnomebaker/stable/ubuntu oneiric main
deb-src ppa.launchpad.net/gnomebaker/stable/ubuntu o

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

deb ppa.launchpad.net/gnomebaker/stable/ubuntu oneiric main deb-src
deb-src ppa.launchpad.net/gnomebaker/stable/ubuntu 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
add comment

(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
show 8 more comments

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