Package: mediatomb-daemon
Version: 0.12.0~svn2018-4
Severity: normal

Hi. Purging of mediatomb-daemon fails:

$ dpkg -P mediatomb-daemon
(Reading database ... 341809 files and directories currently installed.)
Removing mediatomb-daemon ...
Purging configuration files for mediatomb-daemon ...
/usr/sbin/deluser: The user `mediatomb' does not exist.
The group `mediatomb' does not exist.
dpkg-statoverrides: unrecoverable fatal error, aborting:
 syntax error: unknown user 'mediatomb' in statoverride file
dpkg: error processing mediatomb-daemon (--purge):
 subprocess installed post-removal script returned error exit status 2
Errors were encountered while processing:
 mediatomb-daemon

As the error messages indicate this is apparently because the mediatomb
user and group are deleted before the statoverrides in the postrm
script. The following simple patch appears to fix the problem.

--- mediatomb-daemon.postrm.orig	2009-08-06 03:57:18.000000000 +0000
+++ mediatomb-daemon.postrm	2010-01-13 02:01:39.000000000 +0000
@@ -7,10 +7,10 @@
 if [ "$1" = "purge" ] ; then
     rm -rf /var/log/mediatomb /var/log/mediatomb* \
 		/var/run/mediatomb.pid /var/lib/mediatomb
-    deluser mediatomb || true
-    delgroup mediatomb || true
     dpkg-statoverride --remove /etc/mediatomb/config.xml
     dpkg-statoverride --remove /var/lib/mediatomb
+    deluser mediatomb || true
+    delgroup mediatomb || true
 fi
 
 # Automatically added by dh_installinit
-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686 (SMP w/2 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages mediatomb-daemon depends on:
ii  adduser                       3.112      add and remove users and groups
pn  mediatomb-common              <none>     (no description available)

mediatomb-daemon recommends no packages.

mediatomb-daemon suggests no packages.
_______________________________________________
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-multimedia-maintainers

Reply via email to