Package: adduser
Version: 3.160
Severity: serious
Justification: makes unrelated packages unable to install (regression
from 3.159)
Dear Maintainer,
* What led up to the situation?
Since adduser 3.160 (uploaded 2026-11-27), installing a GNOME desktop
on the daily Debian sid nocloud image fails:
apt-get install -y gdm3 task-japanese-gnome-desktop gnome-terminal yad
Setting up sane-utils (1.4.0-1.1) ...
Adding saned group and user...
warn: All ids up to 999 have already been assigned and REUSE_IDS is
set to no. warn: No UID/GID pair is available in the range 1000-999
(FIRST_SYS_UID - LAST_SYS_UID). fatal: The user `saned' was not
created. usermod: user 'saned' does not exist
dpkg: error processing package sane-utils (--configure):
installed sane-utils package postinst maintainer script subprocess
failed with exit status 6 ...
Errors were encountered while processing:
avahi-daemon
ipp-usb
libapache2-mod-dnssd
usbmuxd
gnome-user-share
sane-utils
The system ID range 100-999 still has many free IDs, but adduser says
that it is full. After cups-pk-helper is configured, every later
`adduser --system` and `addgroup --system` call fails, so packages
that have nothing to do with cups-pk-helper cannot be installed:
- avahi-daemon and usbmuxd fail in their postinst, because adduser
exits with status 22.
- ipp-usb, libapache2-mod-dnssd and gnome-user-share then fail with
"dependency problems - leaving unconfigured", because they depend
on avahi-daemon.
- sane-utils ignores the adduser error with `|| true`, but the next
`usermod -d /var/lib/saned saned` fails, because the user does not
exist.
The cause:
- systemd-sysusers creates lpadmin with GID 999 (LAST_SYSTEM_GID),
because it gives out IDs from 999 down.
- cups-pk-helper's postinst runs
`adduser --system ... --ingroup lpadmin cups-pk-helper`.
adduser 3.160 uses the GID 999 as the UID, and also writes
`@global:last_sys_id=999` to /var/lib/adduser/state.
- With REUSE_IDS=no (the default), the next ID to look for is 1000,
which is above LAST_SYSTEM_UID/GID. So every later system user or
group fails.
Without systemd, lpadmin gets GID 101 and this does not happen.
* What exactly did you do (or not do) that was effective (or
ineffective)?
On a fresh sid chroot with adduser 3.160:
groupadd -g 999 lpadmin
adduser --system --ingroup lpadmin cpk
adduser --system test
* What was the outcome of this action?
warn: All ids up to 999 have already been assigned and REUSE_IDS is
set to no. warn: No UID is available in the range 1000-999
(FIRST_SYS_UID - LAST_SYS_UID). fatal: The user `test' was not
created.
With adduser 3.159, the same steps create test with UID 100.
REUSE_IDS=yes in /etc/adduser.conf works as a workaround.
* What outcome did you expect instead?
I expected the same result as 3.159: cups-pk-helper gets UID 999,
and later `adduser --system` calls still get free IDs from the
system range, so avahi-daemon, usbmuxd, sane-utils
and the packages that depend on them install without errors.
Best regards,