Package: ntpsec Version: 1.2.2+dfsg1-3 Severity: normal Tags: patch Every time the ntpsec package upgrades it attempts to unconditionally add the ntpsec user and group as per the following postinst snippet.
addgroup --system --quiet ntpsec adduser --system --quiet --ingroup ntpsec \ --no-create-home --home /nonexistent ntpsec This logs errors because the user and group already exists. Here is a sample from the most recent update. Dec 12 11:49:47 clash addgroup[4100]: The group `ntpsec' already exists as a system group. Exiting. Dec 12 11:49:47 clash adduser[4113]: The home dir /nonexistent you specified can't be accessed: No such file or directory Dec 12 11:49:47 clash adduser[4113]: The system user `ntpsec' already exists. Exiting. Please test for the existence of those groups before creating them as other packages such as apt and others do. Adding the following "if" and "getent" checking fixes this using the same method the apt package and others do. if ! getent passwd ntpsec > /dev/null; then addgroup --system --quiet ntpsec fi if ! getent group ntpsec > /dev/null; then adduser --system --quiet --ingroup ntpsec \ --no-create-home --home /nonexistent ntpsec fi Thank you for maintaining ntpsec in Debian. Bob -- System Information: Debian Release: trixie/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 6.4.0-4-amd64 (SMP w/2 CPU threads; PREEMPT) Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: sysvinit (via /sbin/init) Versions of packages ntpsec depends on: ii adduser 3.137 ii init-system-helpers 1.66 ii libbsd0 0.11.7-4 ii libc6 2.37-13 ii libcap2 1:2.66-4 ii libssl3 3.1.4-2 ii netbase 6.4 ii python3 3.11.2-1+b1 ii python3-ntp 1.2.2+dfsg1-3 ii tzdata 2023c-11 Versions of packages ntpsec recommends: ii cron [cron-daemon] 3.0pl1-181 Versions of packages ntpsec suggests: pn apparmor <none> pn certbot <none> pn ntpsec-doc <none> pn ntpsec-ntpviz <none> -- Configuration Files: /etc/ntpsec/ntp.conf changed [not included] -- no debconf information