Op di 14 nov 2006 om 11:02:24 +0100 schreef Lucas Nussbaum: > Package: systraq > Version: 0.0.20050213-7 > Severity: serious > Usertags: grid5000 > > Hi, > > During a piuparts run over all the packages in etch, I ran into a > problem with your package: > Removing systraq ... > Purging configuration files for systraq ... > /var/lib/dpkg/info/systraq.postrm: line 24: deluser: command not found > dpkg: error processing systraq (--purge): > subprocess post-removal script returned error exit status 127 > > adduser is not essential, you must depend on it.
Here's a patch:
-----------------------
--- postrm.orig 2006-11-15 09:00:19.771850181 +0100
+++ postrm 2006-11-15 09:39:07.394806082 +0100
@@ -21,10 +21,18 @@
case "$1" in
purge)
if getent passwd debian-systraq > /dev/null 2>&1; then
- deluser --remove-all-files debian-systraq
+ if [ -x /usr/sbin/deluser ]; then
+ deluser --remove-all-files debian-systraq
+ else
+ echo "Can't remove user debian-systraq"
+ fi
fi
if getent group debian-systraq > /dev/null 2>&1; then
- delgroup --only-if-empty debian-systraq
+ if [ -x /usr/sbin/delgroup ]; then
+ delgroup --only-if-empty debian-systraq
+ else
+ echo "Can't remove group debian-systraq"
+ fi
fi
rm -rf /etc/systraq
-----------------------
Laurent: do you want me to commit that?
See also #398540: as Debian policy says: "the `postrm' cannot rely on
any non-essential packages to be present during the `purge' phase."
BTW, ntp and ntp-simple and openssh-server call deluser in postrm. I
can't find a bug about that on
http://bugs.debian.org/cgi-bin/[EMAIL PROTECTED];tag=grid5000
. Lucas: didn't piuparts find it?
Bye,
Joost
signature.asc
Description: Digital signature

