Skip to content
Back to skills

Debian Knowledge Patch

ASecurity

Debian

  • 25 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 27, 2026
developmentrustgoshellnodedockerapidatabasebackendsecurity

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 4 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/badge)](https://www.skillsdirectory.com/skills/nevaberry-debian-knowledge-patch)

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 compatibility guidance

Load this skill for Debian upgrades, installer and netboot deployment,
package compatibility, service migrations, and changes to security or runtime
behavior. Use the topic references for complete guidance and batch attributions.

## Reference index

| Reference | Topics |
| --- | --- |
| [Upgrade foundations](references/upgrade-foundations.md) | Remote upgrades, encrypted volumes, temporary files, sysctls, device names, login accounting, timezones |
| [Release and platform](references/release-platform.md) | Architecture eligibility, ABI changes, support, installer and netboot images, boot firmware, Secure Boot |
| [Security and networking](references/security-networking.md) | SSH, sudo, TLS, cryptography, DHCP, routing, HTTP, proxy validation, security coverage |
| [Services and data migrations](references/services-data.md) | Databases, mail, directory services, virtualization, OpenStack, service startup, GeoIP data |
| [Packages, toolchains, and desktops](references/packages-toolchains-desktops.md) | Removals, package builds, runtime compatibility, desktops, applications, locales |

## Upgrade blockers and architecture limits

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.

- Trixie's in-place upgrade path excludes standalone Bookworm `i386` systems.
  Its i386 packages require SSE2 and are intended for legacy userspace on amd64.
- Trixie supports `armel` only for upgrades of existing installations and is
  the last armel release. Its packaged kernels support only 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 change:
  rebuild third-party binaries and packages and test them for silent data loss.
- Check that a separate `/boot` is at least 768 MB and has about 300 MB free
  for the larger kernel and firmware packages.

## Encrypted storage and boot settings

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.

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` to reopen
it. For volumes created with Bookworm's defaults, use this options field:

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

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 groups that need ping: `iputils-ping`
now uses that setting for access to ICMP datagram sockets.

Interfaces using `i40e` or firmware exposing ACPI `_SUN` can receive new names.
Pin names that must stay fixed with `systemd.link` files before upgrading.
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
```

`dkms` drops `dkms.service`. Update local units that depend on the removed
service; DKMS now warns when it finds no kernel headers.

## Temporary files and filesystem layout

The default `/tmp` tmpfs mounts on the first reboot after upgrading and can
use up to 50% of memory. Recover files hidden by the mount with
`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 change the 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` 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 that file before removing it to opt in
or editing it to set a custom policy.

`System is tainted: unmerged-bin` reports that `/usr/bin` and `/usr/sbin` are
separate. Keep them separate for future Debian upgrades. On Trixie systems
with a merged `/usr`, `usrmerge` and `usr-is-merged` are removable dummy packages.

## Service and data migrations

- The documented RabbitMQ upgrade path clears `/var/lib/rabbitmq/mnesia`
  before restarting the upgraded service. Plan for loss of stored messages
  and definitions; switch OpenStack deployments using HA queues to quorum
  queues before upgrading.
- Port and test Dovecot 2.4 configuration in staging before upgrading a
  production server. The replicator is removed, so deployments using it need
  a replacement before the upgrade.
- Allow about twice Bacula's current database 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 separates drivers and storage backends into packages. Check that
  required components remain installed after upgrading; consult
  `/usr/share/doc/libvirt-common/NEWS.Debian.gz` for obsolete conffiles.
- Install `samba-ad-dc` for Active Directory domain controllers. Most VFS
  modules ship in `samba`; Ceph and GlusterFS use `samba-vfs-ceph` and
  `samba-vfs-glusterfs` respectively.
- OpenLDAP TLS uses OpenSSL semantics. With no configured CA certificates,
  it loads the system trust store. Configure trusted CAs explicitly for a
  deployment needing its own trust set; review option changes in
  `/usr/share/doc/libldap2/NEWS.Debian.gz`.
- `strongswan` now pulls in `charon-systemd`, managed with `swanctl` and
  configured in `/etc/swanctl/conf.d`. Existing setups can retain `ipsec` and
  `/etc/ipsec.conf` as long as `charon-daemon` stays installed.

## Removals and deprecations

- Migrate `sudo-ldap` to `libsss-sudo` while still on Trixie to retain
  LDAP-based privileges when `sudo-ldap` is removed in Forky.
- For SSH configurations using `GSSAPI*`, install `openssh-client-gssapi`
  or `openssh-server-gssapi` as appropriate on Trixie. They depend on the main
  packages in Trixie and become separate builds in Forky, where the main
  packages drop GSS-API support.
- Replace configurations depending on `libnss-docker` before Forky. It needs
  Docker API 1.21, available in Trixie's Docker Engine 26 and being removed
  from the Docker Engine in Forky.
- On ifupdown systems, use `dhcpcd-base` in place of `isc-dhcp-client`.
  NetworkManager and systemd-networkd already provide their own DHCP clients.
- Install `incus-extra` for tools that transfer existing containers and
  virtual machines from LXD to Incus.
- `sbuild-debian-developer-setup` is deprecated. Run the build directly with
  `sbuild --chroot-mode=unshare --dist=unstable hello`.

The packages reference contains the removed-package replacements and
co-installation changes.

## Authentication and security behavior

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

OpenSSH proxy-mode sessions honor connection multiplexing confirmation.
If the master requires confirmation, connecting through it in proxy mode
also requires approval. OpenSSH fully applies `PubkeyAcceptedAlgorithms` and
`HostbasedAcceptedAlgorithms` to ECDSA keys; check those allowlists if ECDSA
authentication stops working after updating. Jump-host user and host names
supplied with `-J` or `-o ProxyJump=…` are now validated.

Use SSHFS `-o contain_symlinks` to prevent symlinks in a mount from resolving
outside it:

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

When Firewalld's desktop policy is active, local users must authenticate
before changing runtime firewall state. `Dpkg::OpenPGP` skips verification
when its keyring list is empty; supply a keyring when verifying signatures.

Debian's security coverage excludes applications using
`qtwebengine-opensource-src` or `qt6-webengine`. Chromium receives six months
of security support once Trixie becomes oldstable. `hdf5` and `zabbix` receive
limited security support; `wpewebkit` is unsupported.

## Secure Boot and installer deployment

Bookworm's `fwupd` 2.0.20 can update UEFI Secure Boot CA, KEK, and DBX databases.
The 2013 UEFI Secure Boot CA used to sign bootloaders has expired.
On Trixie, `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.

The release and platform reference records installer kernel ABIs, netboot
image changes, and kernel/initrd refresh guidance.

## Common commands and package features

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.

Install `debian-repro-status` to check reproducibility of 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 with an available range starting
at 100000, each file can use:

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

`sbuild` accepts an explicitly empty `BUILD_PATH` with
`sbuild --build-path= hello`. It preserves `TMPDIR` when invoking autopkgtest
and piuparts and honors it for the autopkgtest `.dsc` temporary directory.

Install `wtmpdb` with `libpam-wtmpdb` for login history and `lastlog2` with
`libpam-lastlog2` for last-login records. Use `lslogins --failed` for information
like that formerly shown by `lastb`.

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, then open **HTTP Boot Configuration** and enter the full
URL to the Debian ISO.

Files in this skill

  • SKILL.md5.5 KB
  • references/architecture-changes.md1.9 KB
  • references/server-changes.md2.3 KB
  • references/system-changes.md3.7 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.