This is an old revision of the document!
Table of Contents
Sources.list
This is my /etc/apt/sources.list
which grew during the past few years. Maybe it'll be helpful for you.
You should—of course—use a Debian mirror that is not too far away from you. The examples below contain the generic mirrors where you have to replace “XX” by your language code.
If you use a notebook, make sure to also read these instructions and enable TLP in your sources.list!
Stretch
Because Stretch is frozen, it is time for a preliminary sources.list for Stretch.
sources.list
- sources.list
### Main Sources deb http://ftp.nl.debian.org/debian/ stretch main contrib non-free ### Security Updates deb http://security.debian.org/ stretch/updates main contrib non-free ### Software Updates deb http://ftp.nl.debian.org/debian/ stretch-updates main contrib non-free deb http://ftp.nl.debian.org/debian/ stretch-proposed-updates main contrib non-free #deb http://ftp.nl.debian.org/debian/ stretch-backports main contrib non-free ### Unofficial Packages #deb http://mozilla.debian.net/ stretch-backports firefox-release #deb http://www.deb-multimedia.org stretch main non-free # Marillat ### Importing GPG keys for APT # Iceweasel apt-get install pkg-mozilla-archive-keyring # Marillat apt-get install deb-multimedia-keyring
Jessie
sources.list
- sources.list
### Main Sources deb http://ftp.XX.debian.org/debian/ jessie main contrib non-free deb-src http://ftp.XX.debian.org/debian/ jessie main contrib non-free ### Security Updates deb http://security.debian.org/ jessie/updates main contrib non-free deb-src http://security.debian.org/ jessie/updates main contrib non-free ### Software Updates deb http://ftp.XX.debian.org/debian/ jessie-updates main contrib non-free deb-src http://ftp.XX.debian.org/debian/ jessie-updates main contrib non-free deb http://ftp.XX.debian.org/debian/ jessie-proposed-updates main contrib non-free deb-src http://ftp.XX.debian.org/debian/ jessie-proposed-updates main contrib non-free deb http://ftp.XX.debian.org/debian/ jessie-backports main contrib non-free ### Unofficial Packages deb http://mozilla.debian.net/ jessie-backports firefox-release #deb http://www.deb-multimedia.org jessie main non-free # Marillat ### Importing GPG keys for APT # Firefox apt-get install pkg-mozilla-archive-keyring # Marillat apt-get install deb-multimedia-keyring
For servers
Although my page is aimed at desktop usage, please don't use the above sources.list on a server! There it should look something like this.
If you are using fast-moving packages like ClamAV you should also enable the 'jessie-updates' repository. And for firmware files (sometimes necessary in servers) you should add the “non-free” section as well.
# Main Sources deb http://ftp.XX.debian.org/debian/ jessie main # (Security) Updates deb http://security.debian.org/ jessie/updates main #deb http://ftp.XX.debian.org/debian/ jessie-updates main
Wheezy
Although the official support for Wheezy will end in april 2016, you can still get security support for Wheezy by adding the wheezy-lts
repository. However, this works only for the i386 and amd64 architectures and will be maintained until may 2018.
Because of the by now very old software available in Wheezy I do no longer recommend to use Wheezy on a desktop.
For servers
# Main Sources deb http://ftp.XX.debian.org/debian/ wheezy main # (Security) Updates deb http://security.debian.org/ wheezy/updates main #deb http://ftp.XX.debian.org/debian/ wheezy-updates main #deb http://ftp.XX.debian.org/debian/ wheezy-lts main
Squeeze
Currently you shouldn't use Squeeze anymore for there are no more security updates. The following sources.list can be used anyway, it contains all security updates that were available for Squeeze.
# Main Sources deb http://ftp.XX.debian.org/debian-archive/debian squeeze main contrib non-free
Lenny
Currently you shouldn't use Lenny anymore for there are no more security updates. The following sources.list can be used anyway, it contains all security updates that were available for Lenny.
# Main Sources deb http://ftp.XX.debian.org/debian-archive/debian lenny main contrib non-free
Etch
Currently you shouldn't use Etch anymore for there are no more security updates. The following sources.list can be used anyway, it contains all security updates that were available for Etch.
# Main Sources deb http://ftp.XX.debian.org/debian-archive/debian etch main contrib non-free
Discussion