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!
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 iceweasel-release #deb http://www.deb-multimedia.org jessie main non-free # Marillat ### Importing GPG keys for APT # Iceweasel 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 'wheezy-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
Because Jessie has been released I no longer recommend installing Wheezy as your Desktop OS.
sources.list
### Main Sources deb http://ftp.XX.debian.org/debian/ wheezy main contrib non-free deb-src http://ftp.XX.debian.org/debian/ wheezy main contrib non-free ### Security Updates deb http://security.debian.org/ wheezy/updates main contrib non-free deb-src http://security.debian.org/ wheezy/updates main contrib non-free ### Software Updates deb http://ftp.XX.debian.org/debian/ wheezy-updates main contrib non-free deb-src http://ftp.XX.debian.org/debian/ wheezy-updates main contrib non-free deb http://ftp.XX.debian.org/debian/ wheezy-proposed-updates main contrib non-free deb-src http://ftp.XX.debian.org/debian/ wheezy-proposed-updates main contrib non-free deb http://ftp.XX.debian.org/debian/ wheezy-backports main contrib non-free ### Unofficial Packages deb http://mozilla.debian.net/ wheezy-backports iceweasel-release # Firefox deb http://www.deb-multimedia.org wheezy main non-free # Marillat ### Importing GPG keys for APT # Iceweasel apt-get install pkg-mozilla-archive-keyring # Marillat apt-get install deb-multimedia-keyring
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
Although the official support for Squeeze has ended, you can still get security support for Squeeze by adding the squeeze-lts
repository. However, this works only for the i386 and amd64 architectures and will be maintained until february 2016.
Because of the by now very old software available in Squeeze I do no longer recommend to use Squeeze on a desktop.
For servers
If you still have servers running Squeeze you can use this sources.list.
# Main Sources deb http://ftp.XX.debian.org/debian/ squeeze main # (Security) Updates deb http://security.debian.org/ squeeze/updates main #deb http://ftp.XX.debian.org/debian/ squeeze-updates main deb http://ftp.XX.debian.org/debian/ squeeze-lts main
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