I accidently messed up sources.list

New to Debian (Or Linux in general)? Ask your questions here!

I accidently messed up sources.list

Postby PhoxFyre » 2017-03-06 23:47

I accidentally messed up and deleted my sources list for Debian stable 8.7.1 amd64, any place where I can download a new one and how to fix it?
PhoxFyre
 
Posts: 11
Joined: 2017-02-21 01:17

Re: I accidently messed up sources.list

Postby stevepusser » 2017-03-07 00:54

The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: AzPainter 2.1.0, Pale Moon 27.4.2, Liquorix kernel 4.12-6, mpv 0.26.0, Kodi 17.3, 0ad 0.0.22, Mesa 13.0.6
User avatar
stevepusser
 
Posts: 8690
Joined: 2009-10-06 05:53

Re: I accidently messed up sources.list

Postby No_windows » 2017-03-07 05:36

Easy fix. It's just a text file you'll need to recreate while root.
No_windows
 
Posts: 371
Joined: 2015-08-05 03:03

Re: I accidently messed up sources.list

Postby Head_on_a_Stick » 2017-03-07 07:20

In future, use this command to edit your sources:
Code: Select all
# apt edit-sources

This will check the file and will not save it if there are any errors.
No code is faster than no code.

Please read before posting How to report a problem
User avatar
Head_on_a_Stick
 
Posts: 6533
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: I accidently messed up sources.list

Postby Ardouos » 2017-03-07 09:47

If you do edit your sources with a text editor, it is best practice to backup the sources first before making any changes. Heck, it's even good to do this with most config files.

Code: Select all
# cp /etc/apt/sources.list /etc/apt/sources.list.bk
User avatar
Ardouos
 
Posts: 908
Joined: 2013-11-03 00:30
Location: Elicoor II


Return to Beginners Questions

Who is online

Users browsing this forum: duffy and 4 guests

fashionable