Your message dated Mon, 02 Mar 2009 21:32:04 +0000
with message-id <[email protected]>
and subject line Bug#495629: fixed in amavisd-new 1:2.6.2-1
has caused the Debian Bug report #495629,
regarding installing, puring, reinstalling amavisd-new fails because purge does 
not deluser/delgroup.
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
495629: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=495629
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: amavisd-new
Version: 1:2.6.1.dfsg-1
Severity: normal

If this package is purged and reinstalled, the reinstall fails because
the amavis user's home directory is deleted, but the amavis user and
group are not.

    # dpkg --configure amavisd-new
    Setting up amavisd-new (1:2.5.3-1ubuntu3) ...
    Creating/updating amavis user account...
    Broken amavis system user found.  To insure data-safety,
    it is up to you the local administrator to remove the broken
    amavis user, or repair it so that it is sane
    dpkg: error processing amavisd-new (--configure):
     subprocess post-installation script returned error exit status 1
    Errors were encountered while processing:
     amavisd-new

PS: "ensure" is misspelled, there are missing commas, and there is no
period at the end of the sentence.

As a resolution to #431853, simply leaving a broken user and group
lying around is *not* sensible.  It would be better to call deluser,
but succeed on error 127 (deluser not found).  The attached patch
demonstrates this.  Note that this approach is taken by many other
packages: bitlbee, ntp, openssh-server, logcheck, dnsmasq and
dhcp3-client, on my system.

I note that bitlbee and ntp, at least, happily call deluser in the
postrm script.  If leaving users around was the solution 

diff -wpurNd amavisd-new-2.6.1/debian/amavisd-new.postinst 
amavisd-new-2.6.1.dfsg.old/debian/amavisd-new.postinst
--- amavisd-new-2.6.1/debian/amavisd-new.postinst       2008-08-19 
15:27:33.522289854 +1000
+++ amavisd-new-2.6.1.dfsg.old/debian/amavisd-new.postinst      2008-08-19 
15:18:01.000000000 +1000
@@ -72,9 +72,9 @@ case "$1" in
 
        # Sanity-checks (see #367807)
        if [ ! -d "${homedir}" ] ; then
-         echo "Broken amavis system user found.  To ensure data-safety," >&2
-         echo "it is up to you, the local administrator, to remove the broken" 
>&2
-         echo "amavis user, or repair it so that it is sane." >&2
+         echo "Broken amavis system user found.  To insure data-safety," >&2
+         echo "it is up to you the local administrator to remove the broken" 
>&2
+         echo "amavis user, or repair it so that it is sane" >&2
          exit 1
        fi
 
diff -wpurNd amavisd-new-2.6.1/debian/amavisd-new.postrm 
amavisd-new-2.6.1.dfsg.old/debian/amavisd-new.postrm
--- amavisd-new-2.6.1/debian/amavisd-new.postrm 2008-08-19 15:27:33.554286445 
+1000
+++ amavisd-new-2.6.1.dfsg.old/debian/amavisd-new.postrm        2008-08-19 
15:18:01.000000000 +1000
@@ -33,10 +33,8 @@ case "$1" in
                dpkg-statoverride --remove $i || true
        done
 
-       echo "Removing amavis user and files..."
-       # The test prevents purge from failing if there is no amavis user.
-       delgroup --quiet --system amavis || test $? -eq 2 -o $? -eq 127
-       deluser --quiet --system --remove-home amavis || test $? -eq 2 -o $? 
-eq 127
+       echo "Removing amavis files and directories..."
+       [ -d /var/lib/amavis ] && rm -fr /var/lib/amavis
        [ -d /etc/amavis ] && rm -fr /etc/amavis
         ;;
 



--- End Message ---
--- Begin Message ---
Source: amavisd-new
Source-Version: 1:2.6.2-1

We believe that the bug you reported is fixed in the latest version of
amavisd-new, which is due to be installed in the Debian FTP archive:

amavisd-new-milter_2.6.2-1_amd64.deb
  to pool/main/a/amavisd-new/amavisd-new-milter_2.6.2-1_amd64.deb
amavisd-new_2.6.2-1.diff.gz
  to pool/main/a/amavisd-new/amavisd-new_2.6.2-1.diff.gz
amavisd-new_2.6.2-1.dsc
  to pool/main/a/amavisd-new/amavisd-new_2.6.2-1.dsc
amavisd-new_2.6.2-1_all.deb
  to pool/main/a/amavisd-new/amavisd-new_2.6.2-1_all.deb
amavisd-new_2.6.2.orig.tar.gz
  to pool/main/a/amavisd-new/amavisd-new_2.6.2.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Alexander Wirt <[email protected]> (supplier of updated amavisd-new package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Mon, 02 Mar 2009 22:20:39 +0100
Source: amavisd-new
Binary: amavisd-new amavisd-new-milter
Architecture: source all amd64
Version: 1:2.6.2-1
Distribution: unstable
Urgency: low
Maintainer: Brian May <[email protected]>
Changed-By: Alexander Wirt <[email protected]>
Description: 
 amavisd-new - Interface between MTA and virus scanner/content filters
 amavisd-new-milter - Interface between sendmail-milter and amavisd-new
Closes: 386366 442010 447040 481935 484625 495629 496599 496955 496955 498659 
503047 507571 511226 517156
Changes: 
 amavisd-new (1:2.6.2-1) unstable; urgency=low
 .
   * Fix DB Home for amavisd-nanny (Closes: #496599)
   * Remove amavis user and group on purge (Closes: #495629)
   * Update en_US templates (Closes: #496955)
   * New upstream version
       - No longer ships rfc4871
       - Tested which 5.10.0. Notifications should now work as expected
         (Closes: #484625)
       - Fixes bracket handling in macros (Closes: #507571)
   * Update en_US templates (Closes: #496955)
   * Make cronjob really, really silent (at least I hope so :))
        (Closes: #447040, #386366)
   * Update logcheck rules (Closes: #498659)
   * Add application/x-zip-compressed to banned examples (Closes: #481935)
   * Depend on pax (Closes: #517156)
   * Add p7zip, unrar-free and rpm to suggests (Closes: #511226)
   * Add unrar-free to 01-debian (Closes: #442010)
   * Adjust the clsiѕ regex to not ban valid files like {clsid}.ext
     (Closes: #503047)
Checksums-Sha1: 
 ed693877c8c7a0b7df7cd041204285add3a324ea 1195 amavisd-new_2.6.2-1.dsc
 14131c7e0febdda7cd8bc360a6423599c0535d87 903818 amavisd-new_2.6.2.orig.tar.gz
 04b7046f16b1706168f5a09597ff278740e467e7 67916 amavisd-new_2.6.2-1.diff.gz
 dcf4f17cd31aad5f45c9bfb53e4b6e41cf234a6d 866720 amavisd-new_2.6.2-1_all.deb
 84fe365a042220095ce227b88389cfd3e8c9adca 37760 
amavisd-new-milter_2.6.2-1_amd64.deb
Checksums-Sha256: 
 b00e6f8d0af013aaee7fd47636f798fa054c0463c305ced642a600c8fd1a7cba 1195 
amavisd-new_2.6.2-1.dsc
 bf5a04617081a210917809f7eb640f3112f030e772adcba66952174b37423517 903818 
amavisd-new_2.6.2.orig.tar.gz
 262c177caf13dd636b2704d71874bd86e3825fa4e6dc6ae5468ce9012b41653c 67916 
amavisd-new_2.6.2-1.diff.gz
 51c238dc8758d34caf993f62214553689940bb6cf96a9e781fda9d71651e2fd8 866720 
amavisd-new_2.6.2-1_all.deb
 cfc3b2324f63306a2606a1762c4dd0b8cb14139cd30f7937766c979ac2cb57f9 37760 
amavisd-new-milter_2.6.2-1_amd64.deb
Files: 
 124015b09d7169aa10de388265386a9f 1195 mail extra amavisd-new_2.6.2-1.dsc
 0b3b0ef8771af8e4a950e7381d42adbd 903818 mail extra 
amavisd-new_2.6.2.orig.tar.gz
 09fcd03d6cacc18fd31ac4a22416cc94 67916 mail extra amavisd-new_2.6.2-1.diff.gz
 50179e2db4775a13d4848005e197abda 866720 mail extra amavisd-new_2.6.2-1_all.deb
 2f240dfba4f6a95622b5a2c57134d6ab 37760 mail extra 
amavisd-new-milter_2.6.2-1_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkmsTeQACgkQ01u8mbx9AgpCGwCgo5umiXjV13+vU4Cy5XnH5qdv
xcUAnR8F53WsV0M7rWm9UrHetBgkyHfO
=8ZdL
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to