Zum Inhalt springen

Diskussion:Signal (Messenger): Unterschied zwischen den Versionen

Aus Foxwiki
Die 5 zuletzt angesehenen Seiten:  Diskussion:Signal (Messenger)
K Dirkwagner verschob die Seite Diskussion:Signal nach Diskussion:Signal (Messenger)
K Textersetzung - „http://“ durch „https://“
 
Zeile 40: Zeile 40:


The entries in this file normally follow this format:  
The entries in this file normally follow this format:  
  deb <nowiki>http://site.example.com/debian</nowiki> distribution component1 component2 component3
  deb <nowiki>https://site.example.com/debian</nowiki> distribution component1 component2 component3
  deb-src <nowiki>http://site.example.com/debian</nowiki> distribution component1 component2 component3
  deb-src <nowiki>https://site.example.com/debian</nowiki> distribution component1 component2 component3


==== Archive type ====
==== Archive type ====
Zeile 69: Zeile 69:
=== Example sources.list ===
=== Example sources.list ===
Below is an example of a <code>sources.list</code> for Debian 12/Bookworm (stable) released 10th June 2023.  
Below is an example of a <code>sources.list</code> for Debian 12/Bookworm (stable) released 10th June 2023.  
  deb <nowiki>http://deb.debian.org/debian</nowiki> bookworm main non-free-firmware
  deb <nowiki>https://deb.debian.org/debian</nowiki> bookworm main non-free-firmware
  deb-src <nowiki>http://deb.debian.org/debian</nowiki> bookworm main non-free-firmware
  deb-src <nowiki>https://deb.debian.org/debian</nowiki> bookworm main non-free-firmware
   
   
  deb <nowiki>http://deb.debian.org/debian-security/</nowiki> bookworm-security main non-free-firmware
  deb <nowiki>https://deb.debian.org/debian-security/</nowiki> bookworm-security main non-free-firmware
  deb-src <nowiki>http://deb.debian.org/debian-security/</nowiki> bookworm-security main non-free-firmware
  deb-src <nowiki>https://deb.debian.org/debian-security/</nowiki> bookworm-security main non-free-firmware
   
   
  deb <nowiki>http://deb.debian.org/debian</nowiki> bookworm-updates main non-free-firmware
  deb <nowiki>https://deb.debian.org/debian</nowiki> bookworm-updates main non-free-firmware
  deb-src <nowiki>http://deb.debian.org/debian</nowiki> bookworm-updates main non-free-firmware
  deb-src <nowiki>https://deb.debian.org/debian</nowiki> bookworm-updates main non-free-firmware
The equivalent entry in deb822 style under <code>/etc/apt/sources.list.d/debian.sources</code> looks like this:  
The equivalent entry in deb822 style under <code>/etc/apt/sources.list.d/debian.sources</code> looks like this:  
  Types: deb deb-src
  Types: deb deb-src
  URIs: <nowiki>http://deb.debian.org/debian</nowiki>
  URIs: <nowiki>https://deb.debian.org/debian</nowiki>
  Suites: bookworm bookworm-updates
  Suites: bookworm bookworm-updates
  Components: main
  Components: main
Zeile 85: Zeile 85:
   
   
  Types: deb deb-src
  Types: deb deb-src
  URIs: <nowiki>http://deb.debian.org/debian-security</nowiki>
  URIs: <nowiki>https://deb.debian.org/debian-security</nowiki>
  Suites: bookworm-security
  Suites: bookworm-security
  Components: main
  Components: main
  Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
  Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
If you need the contrib, non-free and non-free-firmware components, add <code>contrib non-free non-free-firmware</code> after <code>main</code>. For example, for Debian 12/Bookworm:  
If you need the contrib, non-free and non-free-firmware components, add <code>contrib non-free non-free-firmware</code> after <code>main</code>. For example, for Debian 12/Bookworm:  
  deb <nowiki>http://deb.debian.org/debian</nowiki> bookworm main contrib non-free non-free-firmware
  deb <nowiki>https://deb.debian.org/debian</nowiki> bookworm main contrib non-free non-free-firmware
  deb-src <nowiki>http://deb.debian.org/debian</nowiki> bookworm main contrib non-free non-free-firmware
  deb-src <nowiki>https://deb.debian.org/debian</nowiki> bookworm main contrib non-free non-free-firmware
   
   
  deb <nowiki>http://deb.debian.org/debian-security/</nowiki> bookworm-security main contrib non-free non-free-firmware
  deb <nowiki>https://deb.debian.org/debian-security/</nowiki> bookworm-security main contrib non-free non-free-firmware
  deb-src <nowiki>http://deb.debian.org/debian-security/</nowiki> bookworm-security main contrib non-free non-free-firmware
  deb-src <nowiki>https://deb.debian.org/debian-security/</nowiki> bookworm-security main contrib non-free non-free-firmware
   
   
  deb <nowiki>http://deb.debian.org/debian</nowiki> bookworm-updates main contrib non-free non-free-firmware
  deb <nowiki>https://deb.debian.org/debian</nowiki> bookworm-updates main contrib non-free non-free-firmware
  deb-src <nowiki>http://deb.debian.org/debian</nowiki> bookworm-updates main contrib non-free non-free-firmware
  deb-src <nowiki>https://deb.debian.org/debian</nowiki> bookworm-updates main contrib non-free non-free-firmware
The equivalent entry in deb822 style including the <code>non-free</code> and <code>non-free-firmware</code> components:  
The equivalent entry in deb822 style including the <code>non-free</code> and <code>non-free-firmware</code> components:  
  Types: deb deb-src
  Types: deb deb-src
  URIs: <nowiki>http://deb.debian.org/debian</nowiki>
  URIs: <nowiki>https://deb.debian.org/debian</nowiki>
  Suites: bookworm bookworm-updates
  Suites: bookworm bookworm-updates
  Components: main contrib non-free non-free-firmware
  Components: main contrib non-free non-free-firmware
Zeile 106: Zeile 106:
   
   
  Types: deb deb-src
  Types: deb deb-src
  URIs: <nowiki>http://deb.debian.org/debian-security</nowiki>
  URIs: <nowiki>https://deb.debian.org/debian-security</nowiki>
  Suites: bookworm-security
  Suites: bookworm-security
  Components: main contrib non-free non-free-firmware
  Components: main contrib non-free non-free-firmware
  Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
  Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
If you need the Backports, contrib, and non-free components, add '''bookworm-backports''' lines. For example, for Debian 12/Bookworm:  
If you need the Backports, contrib, and non-free components, add '''bookworm-backports''' lines. For example, for Debian 12/Bookworm:  
  deb <nowiki>http://deb.debian.org/debian</nowiki> bookworm-backports main contrib non-free non-free-firmware
  deb <nowiki>https://deb.debian.org/debian</nowiki> bookworm-backports main contrib non-free non-free-firmware
  deb-src <nowiki>http://deb.debian.org/debian</nowiki> bookworm-backports main contrib non-free non-free-firmware
  deb-src <nowiki>https://deb.debian.org/debian</nowiki> bookworm-backports main contrib non-free non-free-firmware
The equivalent entry in deb822 style including the <code>non-free non-free-firmware</code> and <code>bookworm-backports</code> component:  
The equivalent entry in deb822 style including the <code>non-free non-free-firmware</code> and <code>bookworm-backports</code> component:  
  Types: deb deb-src
  Types: deb deb-src
  URIs: <nowiki>http://deb.debian.org/debian</nowiki>
  URIs: <nowiki>https://deb.debian.org/debian</nowiki>
  Suites: bookworm bookworm-updates bookworm-backports
  Suites: bookworm bookworm-updates bookworm-backports
  Components: main contrib non-free non-free-firmware
  Components: main contrib non-free non-free-firmware
Zeile 121: Zeile 121:
   
   
  Types: deb deb-src
  Types: deb deb-src
  URIs: <nowiki>http://deb.debian.org/debian-security</nowiki>
  URIs: <nowiki>https://deb.debian.org/debian-security</nowiki>
  Suites: bookworm-security
  Suites: bookworm-security
  Components: main contrib non-free non-free-firmware
  Components: main contrib non-free non-free-firmware
  Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
  Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
Below is an example of a <code>sources.list</code> for Debian 11/Bullseye (oldstable).  
Below is an example of a <code>sources.list</code> for Debian 11/Bullseye (oldstable).  
  deb <nowiki>http://deb.debian.org/debian</nowiki> bullseye main
  deb <nowiki>https://deb.debian.org/debian</nowiki> bullseye main
  deb-src <nowiki>http://deb.debian.org/debian</nowiki> bullseye main
  deb-src <nowiki>https://deb.debian.org/debian</nowiki> bullseye main
   
   
  deb <nowiki>http://deb.debian.org/debian-security/</nowiki> bullseye-security main
  deb <nowiki>https://deb.debian.org/debian-security/</nowiki> bullseye-security main
  deb-src <nowiki>http://deb.debian.org/debian-security/</nowiki> bullseye-security main
  deb-src <nowiki>https://deb.debian.org/debian-security/</nowiki> bullseye-security main
   
   
  deb <nowiki>http://deb.debian.org/debian</nowiki> bullseye-updates main
  deb <nowiki>https://deb.debian.org/debian</nowiki> bullseye-updates main
  deb-src <nowiki>http://deb.debian.org/debian</nowiki> bullseye-updates main
  deb-src <nowiki>https://deb.debian.org/debian</nowiki> bullseye-updates main
If you need the contrib and non-free components, add '''contrib non-free''' after '''main'''. For example, for Debian 11/Bullseye:  
If you need the contrib and non-free components, add '''contrib non-free''' after '''main'''. For example, for Debian 11/Bullseye:  
  deb <nowiki>http://deb.debian.org/debian</nowiki> bullseye main contrib non-free
  deb <nowiki>https://deb.debian.org/debian</nowiki> bullseye main contrib non-free
  deb-src <nowiki>http://deb.debian.org/debian</nowiki> bullseye main contrib non-free
  deb-src <nowiki>https://deb.debian.org/debian</nowiki> bullseye main contrib non-free
   
   
  deb <nowiki>http://deb.debian.org/debian-security/</nowiki> bullseye-security main contrib non-free
  deb <nowiki>https://deb.debian.org/debian-security/</nowiki> bullseye-security main contrib non-free
  deb-src <nowiki>http://deb.debian.org/debian-security/</nowiki> bullseye-security main contrib non-free
  deb-src <nowiki>https://deb.debian.org/debian-security/</nowiki> bullseye-security main contrib non-free
   
   
  deb <nowiki>http://deb.debian.org/debian</nowiki> bullseye-updates main contrib non-free
  deb <nowiki>https://deb.debian.org/debian</nowiki> bullseye-updates main contrib non-free
  deb-src <nowiki>http://deb.debian.org/debian</nowiki> bullseye-updates main contrib non-free
  deb-src <nowiki>https://deb.debian.org/debian</nowiki> bullseye-updates main contrib non-free
If you need the Backports, contrib, and non-free components, add '''bullseye-backports''' lines. For example, for Debian 11/Bullseye:  
If you need the Backports, contrib, and non-free components, add '''bullseye-backports''' lines. For example, for Debian 11/Bullseye:  
  deb <nowiki>http://deb.debian.org/debian</nowiki> bullseye-backports main contrib non-free
  deb <nowiki>https://deb.debian.org/debian</nowiki> bullseye-backports main contrib non-free
  deb-src <nowiki>http://deb.debian.org/debian</nowiki> bullseye-backports main contrib non-free
  deb-src <nowiki>https://deb.debian.org/debian</nowiki> bullseye-backports main contrib non-free
Questions about the support cycle? Click here  
Questions about the support cycle? Click here  


If you need the Debian Unstable, then change the distribution to '''unstable'''. Note that Updates and Security is not used since Unstable is a rolling development version consisting of the latest packages. That is, '''unstable main''' will be the only entry in <code>sources.list</code>.  
If you need the Debian Unstable, then change the distribution to '''unstable'''. Note that Updates and Security is not used since Unstable is a rolling development version consisting of the latest packages. That is, '''unstable main''' will be the only entry in <code>sources.list</code>.  
  deb <nowiki>http://deb.debian.org/debian/</nowiki> unstable main
  deb <nowiki>https://deb.debian.org/debian/</nowiki> unstable main
  deb-src <nowiki>http://deb.debian.org/debian/</nowiki> unstable main
  deb-src <nowiki>https://deb.debian.org/debian/</nowiki> unstable main
You can instead use <code>https://...</code> in all of the above lines to use the repositories over encrypted HTTPS connections if the according mirror supports HTTPS. (Users of Debian 9/Stretch or older releases will need to install the apt-transport-https package first.)  
You can instead use <code>https://...</code> in all of the above lines to use the repositories over encrypted HTTPS connections if the according mirror supports HTTPS. (Users of Debian 9/Stretch or older releases will need to install the apt-transport-https package first.)  


Zeile 159: Zeile 159:


Here is an example <code>sources.list</code> using the onion services for Debian 11/Bullseye:  
Here is an example <code>sources.list</code> using the onion services for Debian 11/Bullseye:  
  deb tor+<nowiki>http://2s4yqjx5ul6okpp3f2gaunr2syex5jgbfpfvhxxbbjwnrsvbk5v3qbid.onion/debian</nowiki> bullseye main
  deb tor+<nowiki>https://2s4yqjx5ul6okpp3f2gaunr2syex5jgbfpfvhxxbbjwnrsvbk5v3qbid.onion/debian</nowiki> bullseye main
  deb-src tor+<nowiki>http://2s4yqjx5ul6okpp3f2gaunr2syex5jgbfpfvhxxbbjwnrsvbk5v3qbid.onion/debian</nowiki> bullseye main
  deb-src tor+<nowiki>https://2s4yqjx5ul6okpp3f2gaunr2syex5jgbfpfvhxxbbjwnrsvbk5v3qbid.onion/debian</nowiki> bullseye main
   
   
  deb tor+<nowiki>http://5ajw6aqf3ep7sijnscdzw77t7xq4xjpsy335yb2wiwgouo7yfxtjlmid.onion/</nowiki>
  deb tor+<nowiki>https://5ajw6aqf3ep7sijnscdzw77t7xq4xjpsy335yb2wiwgouo7yfxtjlmid.onion/</nowiki>
  debian-security bullseye-security main
  debian-security bullseye-security main
  deb-src tor+<nowiki>http://5ajw6aqf3ep7sijnscdzw77t7xq4xjpsy335yb2wiwgouo7yfxtjlmid.onion/</nowiki>
  deb-src tor+<nowiki>https://5ajw6aqf3ep7sijnscdzw77t7xq4xjpsy335yb2wiwgouo7yfxtjlmid.onion/</nowiki>
  debian-security bullseye-security main
  debian-security bullseye-security main
   
   
  deb tor+<nowiki>http://2s4yqjx5ul6okpp3f2gaunr2syex5jgbfpfvhxxbbjwnrsvbk5v3qbid.onion/debian</nowiki> bullseye-updates main
  deb tor+<nowiki>https://2s4yqjx5ul6okpp3f2gaunr2syex5jgbfpfvhxxbbjwnrsvbk5v3qbid.onion/debian</nowiki> bullseye-updates main
  deb-src tor+<nowiki>http://2s4yqjx5ul6okpp3f2gaunr2syex5jgbfpfvhxxbbjwnrsvbk5v3qbid.onion/debian</nowiki> bullseye-updates main
  deb-src tor+<nowiki>https://2s4yqjx5ul6okpp3f2gaunr2syex5jgbfpfvhxxbbjwnrsvbk5v3qbid.onion/debian</nowiki> bullseye-updates main


== CD-ROM ==
== CD-ROM ==
Zeile 188: Zeile 188:
  Unsupported socketcall: 20
  Unsupported socketcall: 20
  Unsupported socketcall: 20
  Unsupported socketcall: 20
  Err:1 <nowiki>http://deb.debian.org/debian</nowiki> testing InRelease
  Err:1 <nowiki>https://deb.debian.org/debian</nowiki> testing InRelease
   Temporary failure resolving 'deb.debian.org'
   Temporary failure resolving 'deb.debian.org'
  Reading package lists... Done
  Reading package lists... Done
  W: Failed to fetch <nowiki>http://deb.debian.org/debian/dists/testing/InRelease</nowiki>  Temporary failure resolving 'deb.debian.org'
  W: Failed to fetch <nowiki>https://deb.debian.org/debian/dists/testing/InRelease</nowiki>  Temporary failure resolving 'deb.debian.org'
  W: Some index files failed to download. They have been ignored, or old ones used instead.
  W: Some index files failed to download. They have been ignored, or old ones used instead.
You can temporarily work around it by obtaining the IP address from another machine, and then using the IP address rather than the URI:  
You can temporarily work around it by obtaining the IP address from another machine, and then using the IP address rather than the URI:  
  echo "deb <nowiki>http://128.30.2.26/debian</nowiki> testing main" > /etc/apt/sources.list
  echo "deb <nowiki>https://128.30.2.26/debian</nowiki> testing main" > /etc/apt/sources.list
   
   
  apt update
  apt update
  Get:1 <nowiki>http://128.30.2.26/debian</nowiki> testing InRelease [232 kB]
  Get:1 <nowiki>https://128.30.2.26/debian</nowiki> testing InRelease [232 kB]
  Get:2 <nowiki>http://128.30.2.26/debian</nowiki> testing/main s390x Packages [7583 kB]
  Get:2 <nowiki>https://128.30.2.26/debian</nowiki> testing/main s390x Packages [7583 kB]
  Get:3 <nowiki>http://128.30.2.26/debian</nowiki> testing/main Translation-en [5134 kB]     
  Get:3 <nowiki>https://128.30.2.26/debian</nowiki> testing/main Translation-en [5134 kB]     
  Fetched 13.0 MB in 32s (403 kB/s)                                               
  Fetched 13.0 MB in 32s (403 kB/s)                                               
  Reading package lists... Done
  Reading package lists... Done
Zeile 207: Zeile 207:


Here is an example entry for your <code>sources.list</code> for Debian 12/Bookworm dbgsym packages:  
Here is an example entry for your <code>sources.list</code> for Debian 12/Bookworm dbgsym packages:  
  deb <nowiki>http://deb.debian.org/debian-debug/</nowiki> bookworm-debug main
  deb <nowiki>https://deb.debian.org/debian-debug/</nowiki> bookworm-debug main
And an example for Debian 11/Bullseye:  
And an example for Debian 11/Bullseye:  
  deb <nowiki>http://deb.debian.org/debian-debug/</nowiki> bullseye-debug main
  deb <nowiki>https://deb.debian.org/debian-debug/</nowiki> bullseye-debug main
The same if you running testing:  
The same if you running testing:  
  deb <nowiki>http://deb.debian.org/debian-debug/</nowiki> testing-debug main
  deb <nowiki>https://deb.debian.org/debian-debug/</nowiki> testing-debug main
And one more example if you are using the unstable distribution:  
And one more example if you are using the unstable distribution:  
  deb <nowiki>http://deb.debian.org/debian-debug/</nowiki> unstable-debug main
  deb <nowiki>https://deb.debian.org/debian-debug/</nowiki> unstable-debug main


== More information ==
== More information ==

Aktuelle Version vom 7. April 2025, 14:47 Uhr

Configuring Apt Sources

Apt downloads packages from one or more software repositories (sources) and installs them onto your computer.

A repository is generally a network server, such as the official DebianStable repository. Local directories or CD/DVD are also accepted.

The specific repositories (package sources) configured on your machine affect:

  • What software packages are available for download
  • What versions of packages are available
  • Who packages the software

Commonly used package sources

  • DebianStable: official Debian repository for the current release
  • StableProposedUpdates: official Debian repository for upcoming point releases (security and important bug fixes every ~2 months)
  • StableUpdates: official Debian repository for changes that cannot wait for the next point release, packages are also added to StableProposedUpdates for inclusion in the next point release
  • DebianSecurity: official Debian repository for frequent security updates
  • DebianBackports: more recent versions of some packages, compatible with DebianStable.
  • DebianTesting: current development state of the next stable Debian distribution
  • DebianUnstable: rolling development version containing the latest packages
  • DebianExperimental: development version containing the experimental/alpha/beta/untested packages

Editing software sources

Precautions

Being able to change the repositories used by your package management system is a powerful feature but this power comes with some responsibility. Users are cautioned that it is possible to break your system (in a way that could be difficult or impossible to cleanly fix) by adding third-party repositories, or repositories for a Debian version that does not match your current version - these repository create a risk of conflicting package versions, creating what's sometimes called a "Franken-Debian" system. The whole concept behind a Debian stable release is that the Debian developers have picked a set of software and their versions that function nicely together. While this software is patched to fix security issues, the software is frequently not the latest version. It takes some experience to know how the repos may be changed without risk of breaking your system. Users of all levels are advised to change repos cautiously.

Using a graphical program

Some programs allow configuring Apt sources through a graphical interface. For example:

  • Applications menu > Settings > Software and updates (software-properties-gtk package)

Using a text editor

The main Apt sources configuration file is at /etc/apt/sources.list. You can edit this file (as root) using your favorite text editor. See the sources.list manual page for more info.

To add custom sources, creating separate files under /etc/apt/sources.list.d/ in DEB822 source format is preferred. See the deb822 manual page for more info.

sources.list format

Debian Reference Manual - 2.1.4. Debian archive basics

The entries in this file normally follow this format:

deb https://site.example.com/debian distribution component1 component2 component3
deb-src https://site.example.com/debian distribution component1 component2 component3

Archive type

The first word on each line, deb or deb-src, indicates the type of archive. Deb indicates that the archive contains binary packages (deb), the pre-compiled packages that we normally use. Deb-src indicates source packages, which are the original program sources plus the Debian control file (.dsc) and the diff.gz containing the changes needed for packaging the program.

Repository URL

The next entry on the line is a URL to the repository that you want to download the packages from. The main list of Debian repository mirrors is located here.

Distribution

The 'distribution' can be either the release code name / alias ( stretch, buster, bullseye, bookworm, sid) or the release class (oldoldstable, oldstable, stable, testing, unstable) respectively. If you mean to be tracking a release class then use the class name, if you want to track a Debian point release, use the code name. Avoid using stable in your sources.list as that results in nasty surprises and broken systems when the next release is made; upgrading to a new release should be a deliberate, careful action and editing a file once every two years is not a burden.

For example, if you always want to help test the testing release, use 'testing'. If you are tracking trixie and want to stay with it from testing to end of life, use 'trixie'.

Component

main consists of DFSG-compliant packages, which do not rely on software outside this area to operate. These are the only packages considered part of the Debian distribution.

contrib packages contain DFSG-compliant software, but have dependencies not in main (possibly packaged for Debian in non-free).

non-free contains software that does not comply with the DFSG.

The Debian project has taken the decision in 2022-10 to create a new repository component non-free-firmware, and include its content on installation media for the Debian bookworm to make things easier for our users.

And if you choose to get more information, feel free to follow the firmware GR result - what happens next?.

The Debian wiki has a page about firmware for older releases, bookworm and later.

Example sources.list

Below is an example of a sources.list for Debian 12/Bookworm (stable) released 10th June 2023.

deb https://deb.debian.org/debian bookworm main non-free-firmware
deb-src https://deb.debian.org/debian bookworm main non-free-firmware

deb https://deb.debian.org/debian-security/ bookworm-security main non-free-firmware
deb-src https://deb.debian.org/debian-security/ bookworm-security main non-free-firmware

deb https://deb.debian.org/debian bookworm-updates main non-free-firmware
deb-src https://deb.debian.org/debian bookworm-updates main non-free-firmware

The equivalent entry in deb822 style under /etc/apt/sources.list.d/debian.sources looks like this:

Types: deb deb-src
URIs: https://deb.debian.org/debian
Suites: bookworm bookworm-updates
Components: main
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg

Types: deb deb-src
URIs: https://deb.debian.org/debian-security
Suites: bookworm-security
Components: main
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg

If you need the contrib, non-free and non-free-firmware components, add contrib non-free non-free-firmware after main. For example, for Debian 12/Bookworm:

deb https://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
deb-src https://deb.debian.org/debian bookworm main contrib non-free non-free-firmware

deb https://deb.debian.org/debian-security/ bookworm-security main contrib non-free non-free-firmware
deb-src https://deb.debian.org/debian-security/ bookworm-security main contrib non-free non-free-firmware

deb https://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
deb-src https://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware

The equivalent entry in deb822 style including the non-free and non-free-firmware components:

Types: deb deb-src
URIs: https://deb.debian.org/debian
Suites: bookworm bookworm-updates
Components: main contrib non-free non-free-firmware
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg

Types: deb deb-src
URIs: https://deb.debian.org/debian-security
Suites: bookworm-security
Components: main contrib non-free non-free-firmware
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg

If you need the Backports, contrib, and non-free components, add bookworm-backports lines. For example, for Debian 12/Bookworm:

deb https://deb.debian.org/debian bookworm-backports main contrib non-free non-free-firmware
deb-src https://deb.debian.org/debian bookworm-backports main contrib non-free non-free-firmware

The equivalent entry in deb822 style including the non-free non-free-firmware and bookworm-backports component:

Types: deb deb-src
URIs: https://deb.debian.org/debian
Suites: bookworm bookworm-updates bookworm-backports
Components: main contrib non-free non-free-firmware
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg

Types: deb deb-src
URIs: https://deb.debian.org/debian-security
Suites: bookworm-security
Components: main contrib non-free non-free-firmware
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg

Below is an example of a sources.list for Debian 11/Bullseye (oldstable).

deb https://deb.debian.org/debian bullseye main
deb-src https://deb.debian.org/debian bullseye main

deb https://deb.debian.org/debian-security/ bullseye-security main
deb-src https://deb.debian.org/debian-security/ bullseye-security main

deb https://deb.debian.org/debian bullseye-updates main
deb-src https://deb.debian.org/debian bullseye-updates main

If you need the contrib and non-free components, add contrib non-free after main. For example, for Debian 11/Bullseye:

deb https://deb.debian.org/debian bullseye main contrib non-free
deb-src https://deb.debian.org/debian bullseye main contrib non-free

deb https://deb.debian.org/debian-security/ bullseye-security main contrib non-free
deb-src https://deb.debian.org/debian-security/ bullseye-security main contrib non-free

deb https://deb.debian.org/debian bullseye-updates main contrib non-free
deb-src https://deb.debian.org/debian bullseye-updates main contrib non-free

If you need the Backports, contrib, and non-free components, add bullseye-backports lines. For example, for Debian 11/Bullseye:

deb https://deb.debian.org/debian bullseye-backports main contrib non-free
deb-src https://deb.debian.org/debian bullseye-backports main contrib non-free

Questions about the support cycle? Click here

If you need the Debian Unstable, then change the distribution to unstable. Note that Updates and Security is not used since Unstable is a rolling development version consisting of the latest packages. That is, unstable main will be the only entry in sources.list.

deb https://deb.debian.org/debian/ unstable main
deb-src https://deb.debian.org/debian/ unstable main

You can instead use https://... in all of the above lines to use the repositories over encrypted HTTPS connections if the according mirror supports HTTPS. (Users of Debian 9/Stretch or older releases will need to install the apt-transport-https package first.)

You can use a GNOME tool to edit your sources.list file. Access it through Menu → System → Administration → Software Sources.

Using Tor with Apt

Apt can retrieve and download updates through Tor. For this to work you need to install the tor and apt-transport-tor packages. You can then use the official onion services provided by Debian.

Here is an example sources.list using the onion services for Debian 11/Bullseye:

deb tor+https://2s4yqjx5ul6okpp3f2gaunr2syex5jgbfpfvhxxbbjwnrsvbk5v3qbid.onion/debian bullseye main
deb-src tor+https://2s4yqjx5ul6okpp3f2gaunr2syex5jgbfpfvhxxbbjwnrsvbk5v3qbid.onion/debian bullseye main

deb tor+https://5ajw6aqf3ep7sijnscdzw77t7xq4xjpsy335yb2wiwgouo7yfxtjlmid.onion/
debian-security bullseye-security main
deb-src tor+https://5ajw6aqf3ep7sijnscdzw77t7xq4xjpsy335yb2wiwgouo7yfxtjlmid.onion/
debian-security bullseye-security main

deb tor+https://2s4yqjx5ul6okpp3f2gaunr2syex5jgbfpfvhxxbbjwnrsvbk5v3qbid.onion/debian bullseye-updates main
deb-src tor+https://2s4yqjx5ul6okpp3f2gaunr2syex5jgbfpfvhxxbbjwnrsvbk5v3qbid.onion/debian bullseye-updates main

CD-ROM

If you'd rather use your CD-ROM for installing packages or updating your system automatically with APT, you can put it in your /etc/apt/sources.list. To do so, you can use the apt-cdrom program like this:

# apt-cdrom add

with the Debian CD-ROM in the drive.

You can use -d for the directory of the CD-ROM mount point or add a non-CD mount point (i.e. a USB keydrive).

Name Resolution

On occasion name resolution can break.

# apt update
0% [Working]Unsupported socketcall: 20
Unsupported socketcall: 20
Unsupported socketcall: 20
Unsupported socketcall: 20
Unsupported socketcall: 20
Unsupported socketcall: 20
Unsupported socketcall: 20
Unsupported socketcall: 20
Err:1 https://deb.debian.org/debian testing InRelease
  Temporary failure resolving 'deb.debian.org'
Reading package lists... Done
W: Failed to fetch https://deb.debian.org/debian/dists/testing/InRelease  Temporary failure resolving 'deb.debian.org'
W: Some index files failed to download. They have been ignored, or old ones used instead.

You can temporarily work around it by obtaining the IP address from another machine, and then using the IP address rather than the URI:

echo "deb https://128.30.2.26/debian testing main" > /etc/apt/sources.list

apt update
Get:1 https://128.30.2.26/debian testing InRelease [232 kB]
Get:2 https://128.30.2.26/debian testing/main s390x Packages [7583 kB]
Get:3 https://128.30.2.26/debian testing/main Translation-en [5134 kB]    
Fetched 13.0 MB in 32s (403 kB/s)                                              
Reading package lists... Done

Debug Symbol Packages

To debug a crash you often need the related debug symbol files. For most Debian packages these are in dbgsym packages. These are available from a separate archive.

Here is an example entry for your sources.list for Debian 12/Bookworm dbgsym packages:

deb https://deb.debian.org/debian-debug/ bookworm-debug main

And an example for Debian 11/Bullseye:

deb https://deb.debian.org/debian-debug/ bullseye-debug main

The same if you running testing:

deb https://deb.debian.org/debian-debug/ testing-debug main

And one more example if you are using the unstable distribution:

deb https://deb.debian.org/debian-debug/ unstable-debug main

More information

  • A list of UnofficialRepositories to get extra software ( Skype, Opera, Google )
  • About deb.debian.org, a service that aims to solve the problem of choosing a Debian mirror.
  • Adding source lists, including cds, using apt-setup
  • APT HOWTO
  • AptCLI
  • AptPreferences
  • Backports
  • Debian on CDs
  • DebianRepository/UseThirdParty - Instructions to use to a third-party repository
  • sources.list(5) manual page

CategoryPackageManagement