Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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

This question already has an answer here:

E:Malformed line 2 in source list /etc/apt/sources.list.d/getdeb.list (URI)

^^ This is what I get back, earlier I was trying to get Pokemon Online to install properly, and it wasn't working, so I tried to get getdeb, now it won't check or show updates without giving me the message above, what am I doing wrong?

EDIT: Now it keeps sending me the information that it's experiencing an error continually.

EDIT 2: These are the contents of the file /etc/apt/sources.list.d/getdeb.list:

deb http:// precise-getdeb apps  
http:// saucy-getdeb apps  
deb http:// saucy-getdeb apps  
deb http:// precise-getdeb games  
share|improve this question

marked as duplicate by karel, Avinash Raj, Radu Rădeanu, souravc, precise Mar 9 '14 at 13:42

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.

The error is telling you you have a bad line in /etc/apt/sources.list.d/getdeb.list. Please post the contents of that file. Also, "this is what I get back" is not exactly clear. You get that when you do what? – terdon Mar 9 '14 at 2:04 Here, exactly what it says to me when i try to click, "show updates" – WaffleyOne Mar 9 '14 at 2:16
Thanks, you had not said you were clicking on "show updates". You still haven't shown the contents of the file I asked for though, that is the reason for your error. Specifically, the second line of the file has a format error but I can't tell you what it is without seeing the file. – terdon Mar 9 '14 at 2:17
Okay, where do I go to find that, if you couldn't tell, I'm pretty new to Ubuntu and don't have much any idea what I'm doing, especially since the OS updated to something a bunch of numbers ahead of what was detailed in the manual that the disk came with. – WaffleyOne Mar 9 '14 at 2:22
The file is at /etc/apt/sources.list.d/getdeb.list, just open a terminal (Ctrl+Alt+T), paste this: cat /etc/apt/sources.list.d/getdeb.list, then hit enter and add the results to your question. Ping me (@terdon) if you want to let me know you have done so. – terdon Mar 9 '14 at 2:23
up vote 2 down vote accepted

If I read the question correctly, your /etc/apt/sources.list.d/getdeb.list looks like this:

deb http:// precise-getdeb apps
http:// saucy-getdeb apps
deb http:// saucy-getdeb apps
deb http:// precise-getdeb games

If so, the problem is indeed on the second line. deb lines have this format:

deb repo_section(s)

So, open that file in an editor using sudo

sudo gedit /etc/apt/sources.list.d/getdeb.list

Then, edit the file so that it looks like this:

deb precise-getdeb apps
deb saucy-getdeb apps
deb saucy-getdeb apps
deb precise-getdeb games

Make sure each lines starts with deb and that there are no spaces between http:// and archive.

share|improve this answer
Thank you, this was very helpful!! – WaffleyOne Mar 9 '14 at 2:52

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