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?
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.5.0, Liquorix kernel 4.12-10, mpv 0.27.0, Kodi 17.3, 0ad 0.0.22, Mesa 13.0.6
User avatar
Posts: 8792
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.
Posts: 375
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.
"Are you quite sure that all those bells and whistles, all those wonderful facilities of your so called powerful programming languages, belong to the solution set rather than the problem set?" — Edsger W. Dijkstra
User avatar
Posts: 6577
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
Posts: 911
Joined: 2013-11-03 00:30
Location: Elicoor II

Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 9 guests