Skip to content
Back to skills

Debian Knowledge Patch

ASecurity

Debian

  • 25 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 5, 2026
developmentpythonrustgoshellsqlnodedockergitapidatabase

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add Nevaberry/nevaberry-plugins --skill debian-knowledge-patch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Debian Knowledge Patch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Debian Knowledge Patch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nevaberry-debian-knowledge-patch-nevaberry-plugins/badge)](https://www.skillsdirectory.com/skills/nevaberry-debian-knowledge-patch-nevaberry-plugins)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: debian-knowledge-patch
description: Debian
version: "13.8"
license: MIT
metadata:
  author: Nevaberry
---


# Debian knowledge patch

Load this skill when planning Debian upgrades, maintaining package builds,
or diagnosing changed installer, service, network, or desktop behavior.
Use the topic references for package-specific conditions and update attribution.

## Reference index

| Reference | Topics |
| --- | --- |
| [Upgrade foundations](references/upgrade-foundations.md) | Remote upgrades, encrypted volumes, temporary files, boot, firmware, login accounting, timezones |
| [Release and platform](references/release-platform.md) | Support, architecture eligibility, ABI changes, installer and netboot, cloud images, Debian Edu |
| [Security and networking](references/security-networking.md) | SSH, LDAP, sudo, VPNs, TLS, cryptography, DHCP, routing, HTTP, transfers, GeoIP |
| [Services and data migrations](references/services-data.md) | Databases, mail, messaging, file sharing, virtualization, OpenStack, audit and service management |
| [Packages, toolchains, and desktops](references/packages-toolchains-desktops.md) | Removals, package relationships, builds, mirrors, runtimes, desktop applications, locales |

## Before upgrading or rebooting

Before upgrading Bookworm over SSH, update its OpenSSH packages to
`1:9.2p1-2+deb12u7` or later via `bookworm-updates`. Earlier versions can leave
the host unreachable over SSH if the upgrade session is interrupted.

Check that a separate `/boot` is at least 768 MB in size and has about 300 MB
free for the larger kernel and firmware packages.

Automatic discovery and mounting of encrypted filesystems moved to
`systemd-cryptsetup`. Verify it is installed before rebooting, especially on
hosts configured to skip APT recommendations.

Interfaces using `i40e` or firmware exposing ACPI `_SUN` can receive new names.
Pin names that must stay fixed with `systemd.link` files before the upgrade.
After `apt full-upgrade`, run the following and inspect `ID_NET_NAME` before
rebooting:

```sh
udevadm test-builtin net_setup_link /sys/class/net/enp1s0
```

Trixie’s in-place upgrade path excludes standalone Bookworm `i386` systems.
Trixie supports `armel` only for upgrades of existing installations. Its
packaged armel kernels support only the Raspberry Pi 1, Zero and Zero W;
other armel upgrades require a third-party kernel.

Trixie uses a 64-bit `time_t` ABI on every architecture except `i386`. On
`armel` and `armhf`, many libraries kept their SONAME across the ABI change,
so rebuild third-party binaries and packages and test them for silent data loss.

## Storage, temporary files, and system settings

Plain-mode dm-crypt now defaults to `aes-xts-plain64` and `sha256`. Record an
older volume’s original `cipher`, `size`, and `hash` in `/etc/crypttab`. For
volumes created with Bookworm’s defaults, use this options field:

```text
cipher=aes-cbc-essiv:sha256,size=256,hash=ripemd160
```

The default `/tmp` tmpfs mounts on the first reboot after upgrading and can
use up to 50% of memory. To recover hidden files, run `mount --bind / /mnt`,
recover them from `/mnt/tmp`, then run `umount /mnt`.

Use `/etc/fstab` to select a different filesystem or mask `tmp.mount` and
reboot to keep `/tmp` on the root filesystem. To set a different maximum,
run `systemctl edit tmp.mount` and add a mount override:

```ini
[Mount]
Options=mode=1777,nosuid,nodev,size=2G
```

The systemd upgrade workaround for `/tmp` now defers to a local `tmp.mount`
unit or an `/etc/fstab` entry for `/tmp`.

New installations reap files in `/tmp` after 10 days of disuse and in
`/var/tmp` after 30 days. Upgrades create `/etc/tmpfiles.d/tmp.conf` to preserve
the previous cleanup policy. Review it before removing it to opt in or editing
it to set a custom policy.

Move local settings from `/etc/sysctl.conf` to `/etc/sysctl.d/*.conf` for
`systemd-sysctl`. Check that `linux-sysctl-defaults` is installed or set
`net.ipv4.ping_group_range` locally for the groups that need ping;
`iputils-ping` now uses that setting for access to ICMP datagram sockets.

`System is tainted: unmerged-bin` reports that `/usr/bin` and `/usr/sbin` are
separate. Keep the directories separate for future Debian upgrades.

## Service and data migrations

The documented RabbitMQ upgrade path from Bookworm clears
`/var/lib/rabbitmq/mnesia` before restarting the upgraded service. Plan for
the loss of stored messages and definitions. Switch OpenStack deployments
that rely on HA queues to quorum queues before upgrading.

Port and test Dovecot configuration in staging before upgrading production.
Dovecot 2.4 removes the replicator; deployments using it need a replacement
before the upgrade.

For Bacula’s schema upgrade, allow about twice the database’s current disk
usage on the database server, plus backup dump space under
`/var/cache/dbconfig-common/backups`. Running out of space during the schema
upgrade can corrupt the database.

Libvirt ships drivers and storage backends in separate packages. Check that
required components are still installed after upgrading; for obsolete
conffiles, see `/usr/share/doc/libvirt-common/NEWS.Debian.gz`.

When building extension packages, `postgresql-common` now sets minimum
PostgreSQL server versions in their dependencies. Deploying a rebuilt
extension package can therefore require a server update.

## Removed packages and deprecations

- Replace `libnss-gw-name` with `libnss-myhostname` and `pcregrep` with
  `pcre2grep` from `pcre2-utils` or `grep -P`.
- Keep Bookworm’s `request-tracker4` installed while following the data
  migration instructions in `request-tracker5`.
- After the removal of `deborphan`, use `apt-mark minimize-manual` followed
  by `apt autoremove` to clean up unused dependencies.
- Replace `tldr` with `tealdeer` or `tldr-py`, and `tpp` with `lookatme` or `patat`.
- Update provisioning that expects `git-daemon-run`, `git-daemon-sysvinit`,
  or `nvidia-graphics-drivers-tesla-470`, all removed from Trixie.
- Migrate `sudo-ldap` setups to `libsss-sudo` while still on Trixie to retain
  LDAP-based privileges when `sudo-ldap` is removed in Forky.
- Replace configurations depending on `libnss-docker` before moving to Forky.
  It requires API 1.21, available in Trixie’s Docker Engine 26 and being
  removed from the Docker Engine in Forky.
- `sbuild-debian-developer-setup` is deprecated. Run the build directly:

```sh
sbuild --chroot-mode=unshare --dist=unstable hello
```

## Authentication and networking changes

`openssh-server` skips `~/.pam_environment` by default for new sessions. Move
dependent settings into the appropriate shell startup file or another session
setup mechanism.

If SSH uses `GSSAPI*` configuration options, install `openssh-client-gssapi`
or `openssh-server-gssapi` as appropriate on Trixie. They depend on the main
OpenSSH packages in Trixie and become separate builds in Forky, where the main
packages drop GSS-API support.

OpenSSH fully applies `PubkeyAcceptedAlgorithms` and
`HostbasedAcceptedAlgorithms` to ECDSA keys. Check those allowlists if ECDSA
authentication stops working after the update. Proxy-mode sessions require
confirmation if the SSH master requires it.

The TLS settings for `libldap2` and `slapd` use OpenSSL semantics. With no CA
certificates configured, OpenLDAP loads the system trust store. Configure
trusted CAs explicitly if the deployment needs its own trust set and review
`/usr/share/doc/libldap2/NEWS.Debian.gz` for option changes.

Use `dhcpcd-base` as a replacement for `isc-dhcp-client` on ifupdown systems.
NetworkManager and systemd-networkd already provide their own DHCP clients.

`libwww-perl` strips `Authorization` on cross-origin redirects and refuses
HTTPS-to-HTTP redirects by default. Python 3.13’s `http.client` rejects
carriage returns and line feeds in HTTP proxy tunnel hosts and headers.

## Commands and build tools

Use `run0 apt update` to run a command with elevated privileges. With Debian’s
default policy, members of the `sudo` group authenticate with their own password.

Trixie’s curl and libcurl support HTTP/3. Use `curl --http3 URL` to allow a
fallback or `curl --http3-only URL` to require HTTP/3.

Use SSHFS symlink containment to prevent symlinks in a mount from resolving
outside it:

```sh
sshfs -o contain_symlinks user@example.org:/srv/share ~/mnt
```

Install `debian-repro-status` to check reproducibility for installed packages.
Use `rebuilderd` to run an independent rebuilder and verify published results.

`mmdebstrap` and `sbuild` accept numeric user IDs in the owner field of both
`/etc/subuid` and `/etc/subgid`. For UID 1001 and an available range starting
at 100000, each file can use:

```text
1001:100000:65536
```

`sbuild` accepts an explicitly empty `BUILD_PATH`:

```sh
sbuild --build-path= hello
```

`sbuild` preserves `TMPDIR` when invoking autopkgtest and piuparts and honors
it when creating the temporary directory for the autopkgtest `.dsc` file.

## Installer and firmware operations

Supported UEFI and U-Boot firmware can boot Debian Installer and Debian Live
images over HTTP. On TianoCore, open **Device Manager → Network Device List**,
select the interface, open **HTTP Boot Configuration**, and enter the full
URL to the Debian ISO.

The installer defaults to GB when entering partition sizes; the previous
default was MB. Rescue mode has limited support for Debian installations on
Btrfs subvolumes. The installer supports Secure Boot with `systemd-boot`.

`shim-signed` supports the 2023 Microsoft UEFI CA and checks for likely boot
problems before installation. `shim` sets the SBAT revocation level to
`2025021800`. Apply the system manufacturer’s Secure Boot CA, KEK, and DBX
updates to prepare for the certificate transition.

Files in this skill

  • SKILL.md8.8 KB
  • coverage.json747 B
  • references/packages-toolchains-desktops.md3.2 KB
  • references/release-platform.md3.6 KB
  • references/security-networking.md4.6 KB
  • references/services-data.md2.6 KB
  • references/upgrade-foundations.md4.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.