Author Topic: I messed up my sources.list. How do I fix it? [SOLVED]  (Read 804 times)

Offline Christoffer

  • Newbie
  • *
  • Posts: 25
I messed up my sources.list. How do I fix it? [SOLVED]
« on: October 14, 2015, 10:51:02 pm »
Hello,

Today I managed to mess up my sources.list.
Every time I try to run sudo apt-get update, I get:

E: Type 'deb' is not known on line 1 in source list /etc/apt/sources.list
E: The list of sources could not be read.


I can't seem to figure out what's wrong with the file though. This is its contents:

deb http://ftp.debian.org/debian/ testing main contrib non-free
deb-src http://ftp.debian.org/debian/ testing main contrib non-free
deb http://security.debian.org/ testing/updates main contrib non-free
deb-src http://security.debian.org/ testing/updates main contrib non-free


Is there a way I can quickly fix it or reset it to its defaults or something?

Thanks in advance!
Chris
« Last Edit: October 14, 2015, 11:06:43 pm by Christoffer »

Offline mardam

  • Newbie
  • *
  • Posts: 7
Re: I messed up my sources.list. How do I fix it?
« Reply #1 on: October 14, 2015, 10:58:14 pm »
my apt/sources.list


deb http://ftp.debian.org/debian/ testing main contrib non-free
deb-src http://ftp.debian.org/debian/ testing main contrib non-free
deb http://security.debian.org/ testing/updates main contrib non-free
deb-src http://security.debian.org/ testing/updates main contrib non-free
deb http://www.deb-multimedia.org testing main non-free

and its do the job.

Offline Christoffer

  • Newbie
  • *
  • Posts: 25
Re: I messed up my sources.list. How do I fix it?
« Reply #2 on: October 14, 2015, 11:06:24 pm »
my apt/sources.list


deb http://ftp.debian.org/debian/ testing main contrib non-free
deb-src http://ftp.debian.org/debian/ testing main contrib non-free
deb http://security.debian.org/ testing/updates main contrib non-free
deb-src http://security.debian.org/ testing/updates main contrib non-free
deb http://www.deb-multimedia.org testing main non-free

and its do the job.

@mardam
Nice! Thank you!