1

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

3 Answers3

1
  • 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

Anwar
  • 76,649
0
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
RobinJ
  • 8,910
0

(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

Tinellus
  • 533
  • 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
  • The launcher is the panel on the left with the big icons, the dash is the top icon, where you type in the name of the application you want to start. What happens when you type in 'software sources'? Is the app there and can you start it by entering? If not, I'm afraid I can't help you, you would have to install it, and since you can't run software center, that would be a problem... Then you would have to try to run in terminal what RobinJ suggests, save the file and try running software-center again. You know what a terminal is? – Tinellus Jun 26 '12 at 17:37
  • Yes i know what is Terminal – Karoliuxas Jun 26 '12 at 17:38
  • OH Dash i know what is dash :D – Karoliuxas Jun 26 '12 at 17:40
  • I don't have software sources :( – Karoliuxas Jun 26 '12 at 17:42
  • Open terminal and type "gksu gedit /etc/apt/sources.list". Now the file 'sources.list' is opened in gedit. In this file, look for the line with 'deb ppa launchpad.net/gnomebaker... and the line with deb-src ppa.launchpad.net etc... and change both according to RobinJ's suggestion. Save the file and try software center again. – Tinellus Jun 26 '12 at 17:43
  • I'm sorry, if that doesn't work, try exactly what RobinJ proposes, I just figured out the ppa is indeed a seperate file in /etc/apt/sources.list.d/. It should work (I'm sorry, I always do this using Software Sources, so it's also hard for me... :-( – Tinellus Jun 26 '12 at 17:47
  • There is no line with what code;( – Karoliuxas Jun 26 '12 at 17:51
  • ... that code(?) Try exactly what RobinJ suggests (sorry for the confusion), then save and try software centre again – Tinellus Jun 26 '12 at 17:53