Skip to content

Instantly share code, notes, and snippets.

@trpapp
Last active September 17, 2021 20:57
Show Gist options
  • Save trpapp/d881a132020a4d8869455dc8e1782a6e to your computer and use it in GitHub Desktop.
Save trpapp/d881a132020a4d8869455dc8e1782a6e to your computer and use it in GitHub Desktop.
Debian sources.list
#Main Debian package repositories
deb https://deb.debian.org/debian/ stable main contrib non-free
deb-src https://deb.debian.org/debian/ stable main contrib non-free
#Main Debian package updates repositories
deb https://deb.debian.org/debian/ stable-updates main contrib non-free
deb-src https://deb.debian.org/debian/ stable-updates main contrib non-free
#Main Debian package backport repositories
deb https://deb.debian.org/debian/ stable-backports main contrib non-free
deb-src https://deb.debian.org/debian/ stable-backports main contrib non-free
#Main Debian package security updates repositories
deb https://deb.debian.org/debian-security/ stable-security main contrib non-free
deb-src https://deb.debian.org/debian-security/ stable-security main contrib non-free
#NOTE: Other repos can be found in the /etc/apt/sources.list.d directory
@trpapp
Copy link
Author

trpapp commented Apr 9, 2019

Instructions (as root and in a terminal)

  • Navigate to the 'apt' directory >_ cd /etc/apt/
  • Remove the 'sources.list' file >_ rm sources.list
  • Retrieve this gist/file >_ wget https://gist.githubusercontent.com/trpapp/d881a132020a4d8869455dc8e1782a6e/raw/1becead572c53c4720e8fc505ee58b203c7b00bc/sources.list
  • Update from the new list >_ apt update
  • Upgrade from the new list >_ apt upgrade

Note: You can change Debian release channels by replacing 'stable' to another channel like 'testing'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment