SparkyLinux Forums

Software & hardware support => Newbie questions => Topic started by: Christoffer on October 14, 2015, 10:51:02 PM

Title: I messed up my sources.list. How do I fix it? [SOLVED]
Post by: Christoffer 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
Title: Re: I messed up my sources.list. How do I fix it?
Post by: mardam 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.
Title: Re: I messed up my sources.list. How do I fix it?
Post by: Christoffer on October 14, 2015, 11:06:24 PM
Quote from: mardam 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.

@mardam
Nice! Thank you!