DeskTux

Linux on Desktops

User Tools

Site Tools


misc:sources.list

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
misc:sources.list [2019-02-10 14:14] – Buster jensmisc:sources.list [2023-06-13 08:33] (current) jens
Line 1: Line 1:
-====== Sources.list ======+====== sources.list ====== 
 +For people using Debian---especially new users---it can be confusing to have the proper and correct entries in the ''/etc/apt/sources.list''.
  
-This is my ''/etc/apt/sources.list'' which grew and changed a lot during the past few yearsMaybe it'll be helpful for you.+You should---of course---use a [[http://www.debian.org/mirror/list|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/country codeFurthermore, replace CODENAME by the version you are running, you can find all available codenames on the [[https://wiki.debian.org/DebianReleases|Debian website]].
  
-You should---of course---use a [[http://www.debian.org/mirror/list|Debian mirror]] that is not too far away from youThe examples below contain the generic mirrors where you have to replace "XX" by your language/country code.+I also used to have the entries for [[http://deb-multimedia.org/|Marillat]] packages by default but decided to remove themThey become less and less relevant (for me) and change too much in the base system which makes it difficult to impossible to remove them again. If you still wish to use those, feel free to use them of course. For instructions see the [[http://deb-multimedia.org/|Deb Multimedia]] website.
  
-If you use a notebookmake sure to also read [[misc:Power_Management|these instructions]] and enable TLP in your sources.list.+Because users usually do not do development, I left out the ''deb-src'' entries. If you need the sourcesjust duplicate all entries and replace the starting ''deb'' with ''deb-src'' in the duplicates.
  
-===== Buster ===== +===== Bookworm and newer =====
-Since Buster is entering the freeze phase it is time for a usable sources.list. +
- +
-==== sources.list ====+
 <file bash sources.list> <file bash sources.list>
 +### /etc/apt/sources.list
 +# Make sure to replace XX with your local mirror language/country code
 +# Make sure to replace CODENAME with the release codename you are running
 +
 ### Main Sources ### Main Sources
-deb http://ftp.XX.debian.org/debian/ buster main contrib non-free+deb http://ftp.XX.debian.org/debian/ CODENAME main contrib non-free non-free-firmware
  
 ### Security Updates ### Security Updates
-deb http://security.debian.org/ buster/updates main contrib non-free+deb http://security.debian.org/debian-security CODENAME-security main contrib non-free non-free-firmware
  
 ### Software Updates ### Software Updates
-deb http://ftp.XX.debian.org/debian/ buster-updates main contrib non-free +deb http://ftp.XX.debian.org/debian/ CODENAME-updates main contrib non-free non-free-firmware 
-#deb http://ftp.XX.debian.org/debian/ buster-backports main contrib non-free +deb http://ftp.XX.debian.org/debian/ CODENAME-backports main contrib non-free non-free-firmware 
-#deb http://ftp.XX.debian.org/debian/ buster-proposed-updates main contrib non-free +deb http://ftp.XX.debian.org/debian/ CODENAME-proposed-updates main contrib non-free non-free-firmware
- +
-### Unofficial Packages +
-#deb http://www.deb-multimedia.org buster main non-free # Marillat +
- +
-### Importing GPG keys for APT +
-# Marillat apt install deb-multimedia-keyring+
 </file> </file>
  
-==== For servers ==== +===== Bullseye and older =====
-Buster is still testing and has no proper security support. I strongly recommend against using Buster on a server already. +
- +
-===== Stretch ===== +
-===sources.list ====+
 <file bash sources.list> <file bash sources.list>
 +### /etc/apt/sources.list
 +# Make sure to replace XX with your local mirror language/country code
 +# Make sure to replace CODENAME with the release codename you are running
 +
 ### Main Sources ### Main Sources
-deb http://ftp.XX.debian.org/debian/ stretch main contrib non-free+deb http://ftp.XX.debian.org/debian/ CODENAME main contrib non-free
  
 ### Security Updates ### Security Updates
-deb http://security.debian.org/ stretch/updates main contrib non-free+deb http://security.debian.org/debian-security CODENAME-security main contrib non-free
  
 ### Software Updates ### Software Updates
-deb http://ftp.XX.debian.org/debian/ stretch-updates main contrib non-free +deb http://ftp.XX.debian.org/debian/ CODENAME-updates main contrib non-free 
-deb http://ftp.XX.debian.org/debian/ stretch-backports main contrib non-free +deb http://ftp.XX.debian.org/debian/ CODENAME-backports main contrib non-free 
-deb http://ftp.XX.debian.org/debian/ stretch-proposed-updates main contrib non-free+deb http://ftp.XX.debian.org/debian/ CODENAME-proposed-updates main contrib non-free 
 +</file>
  
-### Unofficial Packages +===== Servers ===== 
-#deb http://www.deb-multimedia.org stretch main non-free # Marillat+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.
  
-### Importing GPG keys for APT +==== Bookworm and newer ==== 
-# Marillat apt-get install deb-multimedia-keyring +<file bash sources.list> 
-</file>+### /etc/apt/sources.list 
 +# Make sure to replace XX with your local mirror language/country code 
 +# Make sure to replace CODENAME with the release codename you are running
  
-==== For servers ==== +### Main Sources 
-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.+deb http://ftp.XX.debian.org/debian/ CODENAME main non-free-firmware
  
-If you are using fast-moving packages like ClamAV you should also enable the 'stretch-updates' repository. And for firmware files (sometimes necessary on servers) you should add the "non-free" section as well.+### Security Updates 
 +deb http://security.debian.org/debian-security CODENAME-security main non-free-firmware
  
-<code bash> +### Software Updates 
-Main Sources +deb http://ftp.XX.debian.org/debian/ CODENAME-updates main non-free-firmware 
-deb http://ftp.XX.debian.org/debian/ stretch main+</file>
  
-# (Security) Updates +==== Bullseye and older ==== 
-deb http://security.debian.org/ stretch/updates main +Because many servers need the firmware for hardware to function properly, I added the ''non-free'' by default hereIf you are running Debian virtualized, the ''non-free'' can be remowed.
-#deb http://ftp.XX.debian.org/debian/ stretch-updates main +
-</code>+
  
-===== Jessie ===== +<file bash sources.list> 
-The security support for Jessie ended in june 2018, I no longer recommend to make a fresh Jessie install.+### /etc/apt/sources.list 
 +# Make sure to replace XX with your local mirror language/country code 
 +# Make sure to replace CODENAME with the release codename you are running
  
-==== sources.list ==== +### Main Sources 
-Because of the by now very old software available in Jessie I do no longer recommend to use it on a desktop at all.+deb http://ftp.XX.debian.org/debian/ CODENAME main non-free
  
-==== For servers ==== +### Security Updates 
-<WRAP round tip> +deb http://security.debian.org/debian-security CODENAME-security main non-free
-Although the official support for Jessie ended in june 2018, you can still get security support for it by adding the ''jessie-lts'' repositoryHowever, this works only for the i386 and amd64 architectures and will be maintained until june 2020. +
-</WRAP>+
  
-If you are using fast-moving packages like ClamAV you should also enable the 'jessie-updates' repository. And for firmware files (sometimes necessary on servers) you should add the "non-free" section as well.+### Software Updates 
 +deb http://ftp.XX.debian.org/debian/ CODENAME-updates main non-free 
 +</file>
  
-<code bash> +===== LTS ===== 
-# Main Sources +Sometimes, especially on servers, it can happen that you need to run an older version of Debian to ensure stable productionIn those cases you can use the LTS repositoriesLTS is available only for the i386, amd64 and several arm architectures.
-deb http://ftp.XX.debian.org/debian/ jessie main+
  
-# (Security) Updates +For current available LTS versions, please check the [[https://wiki.debian.org/DebianReleases#Production_Releases|Debian Releases]], a fitting ''sources.list'' should look like this:
-deb http://security.debian.org/ jessie/updates main +
-#deb http://ftp.XX.debian.org/debian/ jessie-updates main +
-deb http://ftp.XX.debian.org/debian/ jessie-lts main +
-</code>+
  
-===== Wheezy ===== +<file bash sources.list
-Currently you shouldn't use Wheezy or older anymore for there are no more security updates. The following sources.list can be used if needed, it contains all (security) updates that were available for Wheezy.+### /etc/apt/sources.list 
 +# For LTS Releases 
 +# Make sure to replace CODENAME with the release codename you are running
  
-<code bash> +### Main Sources 
-# Main Sources +deb  http://deb.debian.org/debian/ CODENAME main non-free
-deb http://ftp.XX.debian.org/debian-archive/debian wheezy main contrib non-free +
-</code>+
  
-===== Older ===== +### Security Updates 
-The sources.list for older distributions looks similar to the Wheezy list, just replace 'wheezy' with the [[https://www.debian.org/releases/|codename]] of the respective release.+deb http://security.debian.org/ CODENAME/updates main non-free 
 +</file>
misc/sources.list.1549804456.txt.gz · Last modified: 2019-02-10 14:14 by jens