- zfsutils-linux (and the zfs-dkms it Recommends) live in Debian's
'contrib' component — ZFS's CDDL license is not DFSG-free — but a
minimal Debian install enables only 'main' (+ 'non-free-firmware').
Without contrib, apt reports "Package 'zfsutils-linux' has no
installation candidate", zfs-dkms is never installed and the DKMS
rebuild then dies with "no ZFS DKMS version found". Enable contrib
idempotently before installing, in both the deb822 (*.sources) and the
classic one-line formats, touching only the deb.debian.org archive so a
third-party repo is never given a contrib it lacks. Mirrors the
existing Ubuntu 'universe' handling.
- Strip the trailing colon from 'dkms status' version fields: a module
whose postinst ran before the headers existed registers as
"zfs/<ver>: added" (no kernel), and 'dkms build zfs/<ver>:' is invalid,
so the fallback rebuild failed even once contrib was enabled.
Co-authored-by: CommandCodeBot <noreply@commandcode.ai>