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.0.4, Pale Moon 27.3.0, Liquorix kernel 4.10-2, mpv 0.25.0, Kodi 17.1, Ksnip 1.3.1, Mesa 13.0.6
User avatar
stevepusser
 
Posts: 8192
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: 369
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.
“Controlling complexity is the essence of computer programming."Brian Kernighan

Please read before posting How to report a problem
User avatar
Head_on_a_Stick
 
Posts: 6488
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: 888
Joined: 2013-11-03 00:30
Location: Elicoor II


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 8 guests

fashionable