1.2. Understanding Debian

Debian is both a project and a distribution. The project decides what software is acceptable and how releases are made; the distribution is the archive, installer, and documentation that a system actually uses. The distinction matters when you evaluate a package, choose a release, or ask for support.

1.2.1. The Debian Project and Its Distribution

The Debian Project is a volunteer organization governed by its constitution. Debian Developers elect a Project Leader, the Technical Committee resolves technical disputes, and release and security teams coordinate the work required for a release. Legal and financial support is provided by trustee organizations, principally Software in the Public Interest. Debian is not a company with a single support desk; commercial support is available from independent companies, but the project itself provides documentation, mailing lists, and a public bug tracker.

The archive contains tens of thousands of binary packages built from source packages. It includes the Linux kernel, GNU tools, the APT package manager, the Debian installer, and architecture-specific ports. Debian 13 provides installers for amd64, arm64, armhf, ppc64el, riscv64, and s390x; i386 is available only as a co-architecture for running 32-bit software on amd64, and armel is upgrade-only and is the last release for that architecture.

lsb_release summarizes the system identity in a shorter form than /etc/os-release:

$ lsb_release -a
Distributor ID: Debian
Description:    Debian GNU/Linux 13 (trixie)
Release:    13
Codename:   trixie

The Release field shows the major version, not the point release, so a system at 13.7 still reports 13 here. lsb_release comes from the lsb-release package, which is not guaranteed to be installed on a minimal system; /etc/os-release is the reliable fallback, and when both /etc/os-release and the vendor copy in /usr/lib/os-release are present, /etc takes precedence. A much older file carries only the version number:

$ cat /etc/debian_version
13.7

Two further checks report the package architecture and the running kernel:

$ dpkg --print-architecture
amd64
$ uname -r
6.12.86+deb13-amd64

dpkg --print-architecture reports the architecture for which packages are installed. On a multiarch system it can differ from the kernel architecture, and additional foreign architectures can be registered without changing the native one. The kernel release combines the upstream version, the Debian ABI suffix, and the architecture; +deb13 identifies the Debian 13 kernel series, and a kernel package update can change this string without changing the Debian release.

The Social Contract and the Debian Free Software Guidelines (DFSG) define what Debian means by free software. The contract is shipped with the documentation packages:

$ zcat /usr/share/doc/debian/social-contract.txt.gz | sed -n "1,35p"
   Version 1.2 ratified on October 1st, 2022.

   Supersedes Version 1.1 ratified on April 26th, 2004, and Version 1.0
   ratified on July 5, 1997.

   Debian, the producers of the Debian system, have created the Debian
   Social Contract. The Debian Free Software Guidelines (DFSG) part of the
   contract, initially designed as a set of commitments that we agree to
   abide by, has been adopted by the free software community as the basis
   of the Open Source Definition.
     __________________________________________________________________

"Social Contract" with the Free Software Community

    1. Debian will remain 100% free
       We provide the guidelines that we use to determine if a work is
       "free" in the document entitled "The Debian Free Software
       Guidelines". We promise that the Debian system and all its
       components will be free according to these guidelines. We will
       support people who create or use both free and non-free works on
       Debian. We will never make the system require the use of a non-free
       component.
    2. We will give back to the free software community
       When we write new components of the Debian system, we will license
       them in a manner consistent with the Debian Free Software
       Guidelines. We will make the best system we can, so that free works
       will be widely distributed and used. We will communicate things
       such as bug fixes, improvements and user requests to the "upstream"
       authors of works included in our system.
    3. We will not hide problems
       We will keep our entire bug report database open for public view at
       all times. Reports that people file online will promptly become
       visible to others.
    4. Our priorities are our users and free software
       We will be guided by the needs of our users and the free software

The pipeline reads the compressed file with zcat and selects its first 35 lines with sed; the document continues with the remaining points and the DFSG itself. The contract's first point is a commitment about the distribution, not a claim that every file a user might install is free. The DFSG defines the criteria, including free redistribution, source code, permission to modify and redistribute derived works, and no discrimination against persons or fields of use. A package that meets those criteria can be part of main; a package that does not can still be distributed by Debian in a separate archive area, which Section 1.2.3 explains.

Body or role Responsibility
Debian Developers Elect the Project Leader and vote on General Resolutions.
Project Leader Provides day-to-day project leadership.
Technical Committee Resolves technical disputes that the normal process cannot settle.
Release Team Coordinates freezes, release images, and the release schedule.
Security Team Tracks vulnerabilities and issues Debian Security Advisories for stable.
FTP Masters Manage the archive and package acceptance.
Software in the Public Interest Holds assets and provides legal and financial support.

1.2.2. Stable, Testing, Unstable, and Release Support

Debian's development model has three main suites at all times: stable, testing, and unstable. stable is the released distribution recommended for production. testing is the next stable distribution in preparation. unstable, always codenamed sid, is where active development happens. A release also has a codename: Debian 13 is trixie, and Debian 14 will be forky.

The APT configuration on a system determines which suites it uses and how APT ranks them:

$ apt-cache policy
Package files:
 100 /var/lib/dpkg/status
     release a=now
 100 https://deb.debian.org/debian trixie-backports/main amd64 Packages
     release o=Debian Backports,a=stable-backports,n=trixie-backports,l=Debian Backports,c=main,b=amd64
     origin deb.debian.org
 500 https://deb.debian.org/debian trixie-updates/main amd64 Packages
     release v=13-updates,o=Debian,a=stable-updates,n=trixie-updates,l=Debian,c=main,b=amd64
     origin deb.debian.org
 500 https://security.debian.org/debian-security trixie-security/main amd64 Packages
     release v=13,o=Debian,a=stable-security,n=trixie-security,l=Debian-Security,c=main,b=amd64
     origin security.debian.org
 500 https://deb.debian.org/debian trixie/main amd64 Packages
     release v=13.7,o=Debian,a=stable,n=trixie,l=Debian,c=main,b=amd64
     origin deb.debian.org
Pinned packages:

The output has one stanza per package file, including the local dpkg status file and each configured source. a=stable is the archive's status name, n=trixie is its codename, v=13.7 is the version represented by the current package index, and c=main is the component. The priority number is used when the same package is available from several sources; 500 is the normal priority for an unmodified archive, and 100 is lower. Backports use 100 so that a package from stable is preferred unless the administrator explicitly selects the backport.

The policy for a single package shows how those sources combine:

$ apt-cache policy apt
apt:
  Installed: 3.0.4
  Candidate: 3.0.4
  Version table:
 *** 3.0.4 500
        500 https://security.debian.org/debian-security trixie-security/main amd64 Packages
        100 /var/lib/dpkg/status
     3.0.3 500
        500 https://deb.debian.org/debian trixie/main amd64 Packages

The installed apt is version 3.0.4, which is also the candidate. The security archive carries the newer version, while the base stable archive still carries 3.0.3. APT selected the security version because both sources have priority 500 and 3.0.4 is newer. The *** marks the installed version. This is how a stable system receives security fixes without changing its release.

The configured sources explain the stanza list:

$ cat /etc/apt/sources.list
deb https://deb.debian.org/debian trixie main
deb-src https://deb.debian.org/debian trixie main
deb https://security.debian.org/debian-security trixie-security main
deb-src https://security.debian.org/debian-security trixie-security main
deb https://deb.debian.org/debian trixie-updates main
deb-src https://deb.debian.org/debian trixie-updates main
deb https://deb.debian.org/debian trixie-backports main
deb-src https://deb.debian.org/debian trixie-backports main

This is the one-line style of sources.list. Each line names a type (deb for binary packages, deb-src for source packages), a URI, a suite, and a component. The codenames trixie, trixie-security, trixie-updates, and trixie-backports will not change when Debian 14 is released, whereas a source that used the status name stable would silently move to the new release. This file enables only main; Section 1.2.3 discusses the other components.

Release or suite Codenames in 2026 Purpose Support
Stable trixie, 13.7 Production release Full support to 2028-08-09
Oldstable bookworm, 12.15 Previous release LTS to 2028-06-30
Testing forky Next stable in preparation No Security Team guarantee
Unstable sid Active development No release; maintainer fixes
Stable security trixie-security Security fixes for stable Security Team
Stable updates trixie-updates Non-security updates for point releases Stable Release Team
Backports trixie-backports Selected newer packages for stable Best effort; lower priority
Experimental - Staging for packages not ready for unstable Not a complete distribution

Debian suites and update streams

Figure 1.2. The promotion path and the stable update streams. The diagram is conceptual; the actual package flow depends on maintainers, transitions, and release policy.

Debian 13.0 was released on 2025-08-09. Point releases such as 13.7, released on 2026-09-12, refresh the installer images and the packages in the stable archive; they are not new distributions and do not require a release upgrade. Full support for Debian 13 ends on 2028-08-09, after which Long Term Support continues until 2030-06-30. The set of supported architectures can shrink during LTS, so a system that is fully supported today may need attention later in its life.

Testing and unstable are development suites. Security fixes are prepared for stable and then migrate: testing receives them through its normal migration process, and unstable receives them from maintainers. This means a testing or unstable system can be without a fix for a period that stable does not experience. Backports are built from newer source packages for use on stable; they are opt-in, are not a complete copy of testing, and do not carry the same support promise as stable. Upgrades between releases are covered in Chapter 29; skipping a release is not supported.

1.2.3. Free Software, Archive Components, and Firmware

Debian's archive is divided into components so that a user can tell whether a package meets the DFSG and what it depends on. main contains DFSG-free packages whose dependencies are also in main. contrib contains DFSG-free packages that depend on software outside main. non-free contains packages that are distributable but do not meet the DFSG. Since Debian 12, firmware that does not meet the DFSG is separated into non-free-firmware, so a user can enable firmware without enabling all of non-free.

Component Licensing Dependencies Typical contents
main DFSG-free Only main Kernel, GNU tools, most server and desktop software
contrib DFSG-free Requires non-free or non-free-firmware Free clients or tools for non-free components
non-free Not DFSG-free Any Proprietary drivers, applications, and data
non-free-firmware Not DFSG-free Any Firmware needed by some hardware

Not every package in every component has the same support. Security support is centered on main; contrib and non-free do not receive the same guarantee, and firmware is updated according to the needs of the hardware it supports. The source layout recommended for Debian 13 installations that need firmware includes main and non-free-firmware, because many systems need firmware to use their network or storage hardware. The example guest has only main enabled, as its sources.list shows, so its firmware policy is not representative of an installation that enables non-free-firmware.

The difference is visible in package policy. The DFSG-free firmware metapackage is visible because it is in main:

$ apt-cache policy firmware-linux-free
firmware-linux-free:
  Installed: (none)
  Candidate: 20241210-2
  Version table:
     20241210-2 500
        500 https://deb.debian.org/debian trixie/main amd64 Packages

APT can see a candidate even though nothing is installed. A package from a component that is not enabled looks different:

$ apt-cache policy firmware-iwlwifi
firmware-iwlwifi:
  Installed: (none)
  Candidate: (none)
  Version table:

firmware-iwlwifi has no candidate because no enabled source provides it: the package lives in non-free-firmware, which this guest does not have in its sources. An empty candidate list is therefore not proof that the package does not exist in Debian; it means that the configured sources cannot supply it.

The Debian 13 release notes recommend a deb822-style file instead of the one-line format shown earlier. A new installation configured that way uses a layout like the one below. The contents are not the file used by the example guest, and this chapter does not change the guest's sources or install firmware.

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

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

The file belongs at /etc/apt/sources.list.d/debian.sources. The Types field replaces deb and deb-src; the Suites field can name several suites in one stanza; and Signed-By names the archive keyring. After changing sources, APT must refresh its indexes before the new packages become visible. The exact procedure for changing components and installing firmware is covered in Chapter 6.

Firmware is loaded by the kernel when a driver needs it, usually from /lib/firmware. If the required file is missing, the device may not initialize; the kernel log will name the missing firmware. Installing the matching firmware-* package and reloading the driver, or rebooting, is the usual fix. Some firmware is needed before the root filesystem is mounted, so it must be included in the initramfs; this is one reason storage and network firmware problems can appear during boot rather than after login. Firmware and kernel details are covered in Chapter 7.