GrepBoard/Manuals
605 manuals ·

Debian 13.8 Update: Check Your Version and Apply It

·Tested on Debian 13.7 and 13.8 (Docker) · APT 3.0.4 · 2026-11·Test scope ↓·5 steps

Check your Debian version and trixie repositories, preview package updates and holds with APT, then verify the installed release and running kernel.

Debian announced 13.8 on November 21 as a point release that refreshes some packages in Debian 13 (trixie). Update an existing trixie installation from a current Debian mirror. A system that already receives security updates regularly may have few packages left to update. Debian 13.8 announcement

[1] Check the installed version and release codename.

console
$ cat /etc/debian_version
output
13.7
console
$ grep -E '^(ID|VERSION_ID|VERSION_CODENAME)=' /etc/os-release
output
VERSION_ID="13"VERSION_CODENAME=trixieID=debian

In this debian:13.7 example, the first file gives the point release number and the second identifies the distribution, major version, and codename. For Debian 12 (bookworm), follow the major-release upgrade procedure. os-release(5) · Debian 13 release notes

[2] Check the APT sources for the trixie suites.

sh
for file in /etc/apt/sources.list /etc/apt/sources.list.d/*.list /etc/apt/sources.list.d/*.sources; do  [ -f "$file" ] || continue  printf '\n--- %s ---\n' "$file"  cat "$file"done

Look for trixie and trixie-updates on a Debian mirror and trixie-security on a security mirror. In .sources files, read Suites: alongside URIs: in the Types: deb entries. Skip comments and entries with Enabled: no. For .list files, check uncommented deb lines. If you have sources for other Debian releases or third-party repositories, check where the candidates come from in [3]. Debian source examples · sources.list(5)

[3] Refresh the package lists and preview the changes. Run commands marked # as root. If the mirror refresh fails, resolve the error and refresh again.

console
# apt-get --error-on=any update# apt-cache policy

Check the repositories APT loaded and their priorities. Then compare the installed and candidate versions of base-files. apt-cache(8)

console
# apt-cache policy base-files
output
base-files:  Installed: 13.8+deb13u7  Candidate: 13.8+deb13u8…

With base-files at 13.8+deb13u7, /etc/debian_version read 13.7.

console
# apt-mark showhold

showhold lists administrator-set holds. Then compare the two simulations. apt-mark(8)

console
# apt-get -s upgrade
output
…The following packages have been kept back:  linux-image-amd64…

Check the kept back list for kernel packages. If linux-image-amd64 depends on a new linux-image-* package with a different name, plain upgrade keeps back the metapackage. If base-files upgrades, /etc/debian_version can still change to 13.8.

console
# apt-get -s --with-new-pkgs upgrade
output
…Inst linux-image-6.12.118+deb13-amd64 (6.12.118-1 Debian-Security:13/stable-security [amd64])…

The second plan includes the new kernel from the security repository. --with-new-pkgs allows new dependencies and preserves installed packages. Review the new package list and check the versions and sources on the Inst lines. apt-get(8)

[4] Apply the reviewed changes. On a production server, prepare backups and schedule maintenance first. Cancel and review again if the confirmation prompt shows different additions or upgrades. Debian upgrade preparation

console
# apt-get --with-new-pkgs upgrade

Check the release again. The 13.8 output below comes from the base image upgrade test.

console
$ cat /etc/debian_version
output
13.8
console
# apt-cache policy base-files# apt-mark showhold# apt-get -s --with-new-pkgs upgrade

Compare Installed and Candidate. Check showhold for remaining administrator-set holds, and check the simulation for pending upgrades and packages still kept back. The debian:trixie image already reported 13.8 and still had three pending security updates.

[5] Check whether a host with an updated kernel needs a reboot.

console
$ uname -r$ dpkg -l 'linux-image-*' | awk 'substr($1, 2, 1) == "i"'

uname -r shows the running kernel. In the package list, distinguish metapackages such as linux-image-amd64 from versioned linux-image-* packages. If you installed only a versioned package, install a differently named new kernel directly or through a metapackage. Debian kernel metapackage guidance

If the intended boot kernel is installed and an older kernel is still running, schedule a reboot during maintenance and check uname -r again. If needrestart is installed, run needrestart -b -k as root to check for an obsolete kernel. needrestart(1)

For an example of selecting an older kernel from the boot menu, see the Debian 12 walkthrough. Select an older kernel in GRUB

#debian#trixie#apt#point-release#linux-kernel