APT /etc/apt/sources.list for every Debian release
Debian uses APT as package installation and update manager. This also applies to a distribution (release) upgrade. Usually not much changes in the APT configuration, except the code name. But sometimes, the /etc/apt/sources.list file needs some adjustments for a different release. This is where this list comes to help.
If you want to add the "backports" repositories, read our related article How to enable Debian backports repositories.
Debian 7 (Wheezy)
Archived:
deb http://archive.debian.org/debian/ wheezy main contrib non-free
deb http://archive.debian.org/debian-security wheezy/updates main contrib non-free
deb http://security.debian.org/ wheezy/updates main contrib non-free
Debian 8 (Jessie)
Original:
deb http://deb.debian.org/debian/ jessie main contrib non-free
deb http://ftp.debian.org/debian/ jessie-updates main contrib
deb http://security.debian.org/ jessie/updates main contrib non-free
Archived:
deb http://archive.debian.org/debian/ jessie main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free
Debian 9 (Stretch)
Original:
deb http://deb.debian.org/debian/ stretch main contrib non-free
deb http://deb.debian.org/debian/ stretch-updates main contrib non-free
deb http://security.debian.org/ stretch/updates main contrib non-free
Debian 10 (Buster)
Original:
deb http://deb.debian.org/debian/ buster main non-free contrib
deb http://deb.debian.org/debian/ buster-updates main non-free contrib
deb http://security.debian.org/ buster/updates main non-free contrib
Debian 11 (Bullseye)
Careful: Syntax change (debian-security)!
Original:
deb http://deb.debian.org/debian bullseye main contrib non-free
deb http://deb.debian.org/debian bullseye-updates main contrib non-free
deb http://security.debian.org/debian-security bullseye-security main contrib non-free
Oh you precious human being! I have been going in circles ALL DAY trying to figure out what I originally did wrong to make my machine go stupid. Then I made it worse! Can I just go into my sources.list, delete all the lines and then come back and paste the .list above (Debian Bullseye) back in there? Or do I need to do a bunch of other things as well (PLEASE tell me it's as simple as erase, paste, save, exit!). Thanks!
Yes, you can. Followed by a
apt-get update
of course.Thanks! It worked for my installation of Debian 11.