Package: gnokii Version: 0.6.18-1 Followup-For: Bug #434981 The real problem appears to be in the combination of the postrm and the preinst as this output shows:
Preparing to replace gnokii 0.6.16-2 (using .../gnokii_0.6.18-1_i386.deb) ... gnokii:x:116: Found group 'gnokii', not adding... Unpacking replacement gnokii ... Unknown database: user Try `getent --help' or `getent --usage' for more information. gnokii:x:116: (see http://women.debian.org/wiki/English/MaintainerScripts for the order they are called). In this case, the scripts are run in this order: prerm upgrade 0.6.18-1 (old version) (does not exist, noop) preinst upgrade 0.6.16-2 (new version) (checks for group, does nothing) postrm upgrade 0.6.18-1 (old version) (removes user, group, and statoverride) postinst configure 0.6.16-2 (new version) (attempts to re-add statoverride) A couple of questions: Why are you calling addgroup from the preinst? This means a potentially unnecessary predepends on adduser. Why aren't you redirecting output from the getent calls to /dev/null ? This just makes for unnecessary output to the console, and the Found group 'gnokii', not adding... is probably unnecessary as well as ultimately misleading. There appear to be several other code paths that could also benefit from output redirection, but as they didn't actually apper in practice, I'm not too concerned with them now. Why are you doing user and group management in postrm without checking the argument that the script is called with ($1)? You should only be removing users and groups on package removal or purge, not on upgrade. Adding and removing users and groups on every upgrade is not only resource intensive, it's very fragile, as we have just seen. -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.22-1-686 (SMP w/1 CPU core) Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.utf8) Shell: /bin/sh linked to /bin/dash Versions of packages gnokii depends on: ii adduser 3.104 add and remove users and groups ii dialog 1.1-20070604-1 Displays user-friendly dialog boxe ii libatk1.0-0 1.18.0-2 The ATK accessibility toolkit ii libbluetooth2 3.12-1 Library to use the BlueZ Linux Blu ii libc6 2.6-4 GNU C Library: Shared libraries ii libcairo2 1.4.10-1 The Cairo 2D vector graphics libra ii libfontconfig1 2.4.2-1.2 generic font configuration library ii libglib2.0-0 2.12.13-1 The GLib library of C routines ii libgnokii3 0.6.18-1 Gnokii library ii libgtk2.0-0 2.10.13-1 The GTK+ graphical user interface ii liblockfile1 1.06.2 NFS-safe locking library, includes ii libpango1.0-0 1.16.5-1 Layout and rendering of internatio ii libusb-0.1-4 2:0.1.12-7 userspace USB programming library ii libx11-6 2:1.0.3-7 X11 client-side library ii libxcursor1 1:1.1.8-2 X cursor management library ii libxext6 1:1.0.3-2 X11 miscellaneous extension librar ii libxfixes3 1:4.0.3-2 X11 miscellaneous 'fixes' extensio ii libxi6 2:1.1.1-1 X11 Input extension library ii libxinerama1 1:1.0.2-1 X11 Xinerama extension library ii libxpm4 1:3.5.6-3 X11 pixmap library ii libxrandr2 2:1.2.1-1 X11 RandR extension library ii libxrender1 1:0.9.2-1 X Rendering Extension client libra ii timeout 1.11-6.3 Run a command with a time limit. gnokii recommends no packages. -- no debconf information -- ----------------------------------------------------------------- | ,''`. Stephen Gran | | : :' : [EMAIL PROTECTED] | | `. `' Debian user, admin, and developer | | `- http://www.debian.org | ----------------------------------------------------------------- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]