1.4. Finding Documentation and Help

Debian ships documentation with the system and publishes more on the web. The trick is to use the source that matches the installed release and package version. A manual page describes the installed program; a release note describes the release; a wiki page may describe either or neither.

1.4.1. Manual Pages, Info Manuals, and Package Documentation

Manual pages are organized into numbered sections. The numbers are not decorative: they disambiguate pages with the same name and tell you what kind of object is being documented. The installed man(1) page lists them.

Section Contents
1 Executable programs and shell commands
2 System calls provided by the kernel
3 Library calls
4 Special files, usually in /dev
5 File formats and conventions, such as /etc/passwd
6 Games
7 Miscellaneous conventions and macro packages
8 System administration commands, usually for root
9 Kernel routines, nonstandard

Locate a page before reading it:

$ man -w 8 apt
/usr/share/man/man8/apt.8.gz

-w prints the path of the page instead of displaying it. The 8 restricts the search to section 8, which is appropriate for an administration command. Without the section, man apt would still find this page, but naming the section avoids surprises when another section has the same name.

$ man --pager=cat 8 apt | sed -n "1,25p"
APT(8)                                APT                                APT(8)

NAME
       apt - command-line interface

SYNOPSIS

       apt [-h] [-o=config_string] [-c=config_file] [-t=target_release]
           [-a=architecture] {list | search | show | update |
           install pkg [{=pkg_version_number | /target_release}]...  |
           remove pkg...  | upgrade | full-upgrade | edit-sources |
           {-v | --version} | {-h | --help}}

DESCRIPTION
       apt provides a high-level commandline interface for the package
       management system. It is intended as an end user interface and enables
       some options better suited for interactive usage by default compared to
       more specialized APT tools like apt-get(8) and apt-cache(8).

       Much like apt itself, its manpage is intended as an end user interface
       and as such only mentions the most used commands and options partly to
       not duplicate information in multiple places and partly to avoid
       overwhelming readers with a cornucopia of options and details.

       update (apt-get(8))

The pipeline formats the page with cat as the pager and selects its first 25 lines with sed; the page continues from where the excerpt stops. The page begins with a header, name, synopsis, and description. apt is the high-level interface intended for interactive use; apt-get and apt-cache have more stable output for scripts, a distinction covered in Chapter 6. In a normal terminal, omit --pager=cat and the sed filter and read the page in the pager; press q to leave it.

man option Effect
-k regexp Search the short descriptions in the manual database.
-f page Show the short description, like whatis.
-w Print the path instead of displaying the page.
--pager=cat Use cat as the pager, producing plain output.
-a Show all matching pages, not only the first.
-l file Format a local manual-page file.
-K term Search the full text of the manual pages.

Search the manual database when the name is unknown:

$ man -k "network interface" | sed -n "1,10p"
ifdown (8)           - take a network interface down
ifup (8)             - bring a network interface up
interfaces (5)       - network interface configuration for ifup and ifdown

man -k is the same operation as apropos: it searches the short descriptions, not the full text. If it reports that nothing is appropriate, the database may be missing or stale; sudo mandb rebuilds it. The results also show that a manual page can describe a file format (interfaces(5)) or a tool that is installed but not currently used for network configuration.

When the name is known but the section is not:

$ whatis apt
apt (8)              - command-line interface

whatis is a one-line lookup by name. Use it to find the section, then open the page with man 8 apt.

GNU projects often ship Info manuals in addition to, or instead of, manual pages. Info supports hierarchical nodes and cross-references:

$ info --output=- coreutils | sed -n "1,15p"
File: coreutils.info,  Node: Top,  Next: Introduction,  Up: (dir)

GNU Coreutils
*************

This manual documents version 9.7 of the GNU core utilities, including
the standard programs for text and file manipulation.

   Copyright © 1994-2025 Free Software Foundation, Inc.

     Permission is granted to copy, distribute and/or modify this
     document under the terms of the GNU Free Documentation License,
     Version 1.3 or any later version published by the Free Software
     Foundation; with no Invariant Sections, with no Front-Cover Texts,
     and with no Back-Cover Texts.  A copy of the license is included in

--output=- writes the formatted manual to standard output; the pipeline selects its first 15 lines. Without the option, info coreutils opens the interactive browser; n and p move to the next and previous node, Tab moves to the next link, and q quits. If the Info file is not installed, the command will say so; the corresponding documentation package may need to be installed.

Packages install documentation under /usr/share/doc/<package>/. The package manager can list the files a package owns, which is the reliable way to find that directory and the commands the package provides:

$ dpkg -L man-db | sed -n "1,25p"
/.
/etc
/etc/apparmor.d
/etc/apparmor.d/usr.bin.man
/etc/cron.daily
/etc/cron.daily/man-db
/etc/cron.weekly
/etc/cron.weekly/man-db
/etc/manpath.config
/usr
/usr/bin
/usr/bin/catman
/usr/bin/lexgrog
/usr/bin/man
/usr/bin/man-recode
/usr/bin/mandb
/usr/bin/manpath
/usr/bin/whatis
/usr/lib
/usr/lib/man-db
/usr/lib/man-db/libman-2.13.1.so
/usr/lib/man-db/libmandb-2.13.1.so
/usr/lib/mime
/usr/lib/mime/packages
/usr/lib/mime/packages/man-db

The list is longer than the excerpt; it shows that man-db provides man, whatis, mandb, and the manual-page database tools. dpkg -L lists installed paths; it does not search the archive for packages that are not installed.

$ ls /usr/share/doc/man-db
ChangeLog-2013.gz
FAQ
NEWS.md.gz
README.md.gz
THANKS
TODO
changelog.Debian.gz
changelog.gz
copyright
examples
man-db-manual.ps.gz
man-db-manual.txt.gz

The directory contains Debian-specific and upstream documentation. changelog.Debian.gz records Debian packaging changes and bug closures; changelog.gz is the upstream changelog. copyright contains the licensing information, and examples may contain sample configuration. A README file explains the package's purpose and any Debian-specific behavior.

$ zcat /usr/share/doc/man-db/changelog.Debian.gz | sed -n "1,12p"
man-db (2.13.1-1) unstable; urgency=medium

  * Remove /usr/lib/man-db/{man,mandb} compatibility symlinks, obsolete
    since 2002.
  * New upstream release:
    - man(1): Fix minor formatting issues (closes: #1085485).
    - Tolerate additional spaces in preprocessor strings (closes: #1093431).
    - manpath(5): Fix minor formatting issues (closes: #1095890).
    - Increase MAX_NAME to 16384 (closes: #1102453).

 -- Colin Watson <cjwatson@debian.org>  Fri, 02 May 2025 14:24:27 +0100

The changelog names the Debian version, the uploader, and the bugs closed by the upload. It is useful for understanding why a package changed, but it is not a substitute for the manual page when you need current behavior. Use zless to read the compressed file interactively.

When a manual page is missing, the first question is whether the page is in a different section or whether the package that provides it is not installed. The following query is expected to fail and writes its message to standard error:

$ man --pager=cat 5 no-such-page
No manual entry for no-such-page in section 5

The command produces no standard output and exits with status 16. That status means no manual page with the requested name was found in the requested section. Check the section, search with man -k, and inspect the package contents with dpkg -L. If the page belongs to a development interface, the relevant manpages or manpages-dev package may not be installed.

A valid page in the same section confirms that the section itself is available:

$ man -w 5 interfaces
/usr/share/man/man5/interfaces.5.gz

interfaces(5) documents the file format used by ifup and ifdown. Its presence does not prove that the system uses that network configuration method; it proves only that the manual page is installed.

1.4.2. Release Notes, Errata, and Debian Support Channels

The release notes are the first document to read for a specific Debian release. They describe supported architectures, installation changes, upgrade instructions, known issues, and the packages that were removed. The Debian 13 release notes are at debian.org/releases/trixie/release-notes.

Errata supplement the release notes with late-breaking corrections. The Debian 13 errata page is at debian.org/releases/trixie/errata, and the installer has its own errata at debian.org/releases/trixie/debian-installer. Check the errata before installing or upgrading, especially for storage, firmware, and boot-loader problems.

Debian also ships a FAQ. Its release-status text can lag the current release, which is a good reason to read it for concepts and then confirm the current facts in the release notes:

$ zcat /usr/share/doc/debian/FAQ/debian-faq.en.txt.gz | grep -n -E "What does the stable directory contain|non-free-firmware" | sed -n "1,8p"
144:    6.4. What does the stable directory contain?
1680:    the Debian archive, called non-free-firmware. If you're upgrading
1685:    http://deb.debian.org/debian bookworm main non-free-firmware contrib non-free
1816:6.4. What does the stable directory contain?

The installed FAQ text identifies itself as version 12.1, in a debian-faq package of version 12.2, and still shows bookworm-era source examples. The question numbers and the component explanation remain useful, but the release names and the example source line do not describe Debian 13. This is why the FAQ is a starting point rather than the final authority for a release-specific decision.

Mailing lists are the traditional support channel. The documentation package describes them:

$ zcat /usr/share/doc/debian/mailing-lists.txt.gz | sed -n "1,30p"
                  Introduction to the Debian mailing lists
                  ========================================

  Debian is developed through distributed development all
  around the world. Therefore, email is the preferred way to discuss
  various items. Much of the conversation between Debian developers
  and users is managed through several mailing lists.

  There are many world-open mailing lists, meaning anyone can read
  everything that is posted, and participate in the discussions. Everyone is
  encouraged to help development of Debian and to spread the word of free
  software.  There are also a few lists which are only open to official Debian
  developers; please don't interpret this as closed development, it sometimes
  doesn't make much sense discussing internal topics with non-developers.

  All original Debian mailing lists run on a special server, using an
  automatic mail processing software called SmartList.  This server is called
  lists.debian.org.  All submission, subscription and unsubscription messages
  have to be sent to a particular address at this host.

  The language used on all lists is English, unless stated otherwise.
  There are some user lists for other languages available.

Subscription / Unsubscription
-----------------------------

  Anyone is able to subscribe/unsubscribe on their own to any mailing list,
  presuming the subscription policy for a particular list is `open'.

  The requests for subscription or unsubscription can be sent to a special

The document identifies lists.debian.org and explains that the lists are world-open: anyone can read what is posted. The debian-user list is the general user support list; debian-security-announce carries security advisories. Search the archives before posting, use plain text, and do not include passwords, private keys, or complete configuration files with secrets.

Channel Best for Notes
Manual pages and /usr/share/doc Exact behavior of an installed package Matches the installed version
Release notes and errata Installation, upgrade, and known issues Specific to the release; check both
Debian Wiki Community procedures and hardware notes Community-edited; verify against manuals
debian-user General questions and troubleshooting Search the archives first
#debian on OFTC Quick questions and discussion Volunteers; no guarantee of an answer
Bug Tracking System Known bugs and maintainer discussion Search before filing
Security Tracker Vulnerability status by package Use it to interpret security advisories
Debian Security Advisories Fixed vulnerabilities in stable Subscribe to the announcement list

The Security Tracker is the place to check whether a CVE affects a package in Debian and whether a fixed version is available. A Debian Security Advisory (DSA) announces a fix for stable; the tracker records the details and the affected versions. For an undisclosed vulnerability, follow the Security Team's private reporting instructions rather than filing a public bug.

1.4.3. Reporting a Reproducible Debian Bug

A bug report is useful when it describes a defect in a Debian package that someone else can reproduce. A support question, a local configuration mistake, and a request for a new feature are different conversations. Before filing, read the manual page, search the package documentation, check the release notes and errata, and search the Bug Tracking System for an existing report.

The documentation shipped with the system recommends one client for the task:

$ zcat /usr/share/doc/debian/bug-reporting.txt.gz | sed -n "1,35p"
                 How to report a bug in Debian using reportbug

   We strongly recommend that you report bugs in Debian using the
   reportbug program.

   reportbug is installed by default on most systems. If it is not
   available, it can be installed using the package management tool
   available on your system.

   reportbug can be started from the system section of the menu or by
   running reportbug via the command-line.

   It will guide you through the bug reporting process step by step.

   If you have questions that the interactive prompts of reportbug do not
   resolve, you can refer to the rest of the documentation below or ask
   the Debian user mailing list.
[...]

Selected output; the document continues with the email-based workflow and advanced usage of reportbug.

The report must name the package and version. dpkg -s prints the installed package's metadata:

$ dpkg -s man-db
Package: man-db
Status: install ok installed
Priority: important
Section: doc
Installed-Size: 3153
Maintainer: Colin Watson <cjwatson@debian.org>
Architecture: amd64
Multi-Arch: foreign
Version: 2.13.1-1
Replaces: man
Provides: man, man-browser
Depends: bsdextrautils | bsdmainutils (<< 12.1.1~), groff-base, debconf (>= 0.5) | debconf-2.0, libc6 (>= 2.38), libgdbm6t64 (>= 1.16), libpipeline1 (>= 1.5.0), libseccomp2 (>= 2.1.0), zlib1g (>= 1:1.1.4)
Suggests: apparmor, groff, less, www-browser
Conflicts: man
Description: tools for reading manual pages
 This package provides the man command, the primary way of examining the
 system help files (manual pages). Other utilities provided include the
 whatis and apropos commands for searching the manual page database, the
 manpath utility for determining the manual page search path, and the
 maintenance utilities mandb, catman and zsoelim. man-db uses the groff
 suite of programs to format and display the manual pages.
Homepage: https://man-db.gitlab.io/man-db/

Selected output; the conffile checksum block is omitted.

The important fields for a report are Package, Status, Version, and Architecture, followed by the dependency and description fields that may explain the behavior. The release, kernel, and architecture checks in Sections 1.2.1 and 1.3.1 supply the rest of the environment. If you do not know which package owns a file, dpkg -S /path/to/file searches installed package contents, and reportbug -f /path/to/file can perform the lookup while preparing a report.

dpkg -s only describes installed packages. A misspelled or absent name takes a different path and writes its message to standard error:

$ dpkg -s no-such-package
dpkg-query: package 'no-such-package' is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files.

The command produces no standard output and exits with status 1. A script can use that status to distinguish a missing installed package from a successful query. To read metadata for a package that is available but not installed, use apt show or apt-cache show; those commands search the configured archive indexes rather than the local package database.

A known package confirms the positive case:

$ dpkg -l man-db
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
ii  man-db         2.13.1-1     amd64        tools for reading manual pages

The ii state means the package is installed and configured, and the version matches the one reported by dpkg -s. Use the ii state as a quick check when a report depends on whether a package is actually present.

The recommended client is reportbug:

$ reportbug --version
reportbug 13.2.0

Its help output begins with the usage line and the general options:

$ reportbug --help | sed -n "1,12p"
Usage: reportbug [options] <package | filename>

Options:
  --version             show program's version number and exit
  -h, --help            show this help message and exit
  -c, --no-config-files
                        do not include conffiles in report
  -C CLASS, --class=CLASS
                        specify report class for GNATS BTSes
  -d, --debug           send report only to yourself
  --test                operate in test mode (maintainer use only)
  -e EDITOR, --editor=EDITOR

The interactive session is not reproduced here; the options below come from the installed reportbug help and manual page. The command reportbug man-db starts a wizard that queries the Bug Tracking System, asks for a subject and description, shows the report for review, and sends it through a configured mail transport. Review every generated section before sending, especially the automatically collected environment and configuration data, and remove anything private that the client included.

Option Effect
-p, --print Print the report to standard output instead of sending it.
-o FILE, --output=FILE Write the report, including headers, to a file.
-A FILE, --attach=FILE Attach a file to the report.
-T TAG, --tag=TAG Add a Bug Tracking System tag.
-x, --no-cc Do not send a copy to your own address.
-O, --offline Disable external queries.
-b, --no-query-bts Do not query the Bug Tracking System.
--source Report against the source package.
-f FILE, --filename=FILE Report against the package containing the file.

A reproducible report includes the exact package version, the architecture, the Debian release, the kernel, the steps that trigger the problem, the expected and actual results, and whether the problem occurs on a clean system. Include the smallest configuration that demonstrates the bug, relevant log lines, and any workaround. Remove passwords, private keys, tokens, and personal data. If the bug is intermittent, say so and describe how often it occurs; do not present a single observation as a deterministic reproduction.

Report part What to include
Summary One sentence naming the package and the failure.
Environment Debian version, kernel, architecture, hardware or virtualization, locale.
Steps Exact commands and the minimum configuration needed.
Expected and actual Keep the two results separate.
Logs Relevant lines with timestamps; avoid dumping an entire journal.
Reproducibility Always, intermittent, or only after a specific action.
Workaround What avoids the failure, if known.
Attachments Small configuration files, patches, or a script.

Debian's severity levels describe the impact, not the reporter's urgency. normal is the ordinary case; important covers a significant defect that does not make the package unusable for everyone; critical, grave, and serious are reserved for severe breakage, policy violations, or data loss, while minor and wishlist cover smaller problems and feature requests. Tags such as security, patch, upstream, and moreinfo help maintainers route the report, and a maintainer may adjust the severity after triage.

The Bug Tracking System is public. Report a security vulnerability privately to the Security Team first, following the instructions at debian.org/security, so that a fix can be prepared before the details are disclosed. For an ordinary bug, the report's URL and number are assigned when the message reaches the tracker; follow up in the same report rather than opening a duplicate. If the problem is resolved by a configuration change or a later package version, say so and close the report with the reason.

The next chapter, Chapter 2, begins the installation journey: choosing an image, verifying it, starting the installer, and making the storage and account decisions that this chapter has outlined. Read the release notes and errata for Debian 13 before writing to a disk, and keep the recovery path you intend to use within reach.