Advertising

Welcome to SparkyLinux forums
Zapraszamy również na polsko-języczne Forum https://forum.linuxiarze.pl

I messed up my sources.list. How do I fix it? [SOLVED]

Started by Christoffer, October 14, 2015, 10:51:02 PM

Previous topic - Next topic

Christoffer

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

mardam

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.

Christoffer

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!

View the most recent posts on the forum