Attached is a similar fix we're applying in Ubuntu, except it uses getent rather than id, which seems to be a typical way for solving this type of need.
>From 5b6f1ddbb759fad768d64a26e42427617910f9f8 Mon Sep 17 00:00:00 2001 From: Bryce Harrington <br...@bryceharrington.org> Date: Wed, 18 May 2022 17:16:20 -0700 Subject: [PATCH] * clamav-base.postinst.in: Quell warning from check for clamav user (LP: #1920217) Signed-off-by: Bryce Harrington <br...@bryceharrington.org> --- debian/clamav-base.postinst.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/clamav-base.postinst.in b/debian/clamav-base.postinst.in index 89c116f5..f3d1da9b 100644 --- a/debian/clamav-base.postinst.in +++ b/debian/clamav-base.postinst.in @@ -32,7 +32,7 @@ case "$1" in # Set up the clamav user on new install if [ -z "$2" ]; then - if ! id clamav; then + if ! getent passwd clamav >/dev/null; then adduser --system --no-create-home --quiet \ --disabled-password --disabled-login \ --shell /bin/false --group --home /var/lib/clamav clamav -- 2.25.1