Your message dated Thu, 11 May 2023 23:52:00 +0000
with message-id <e1pxg4m-00bhpf...@fasolo.debian.org>
and subject line Bug#1035841: fixed in amavisd-new 1:2.13.0-3
has caused the Debian Bug report #1035841,
regarding amavisd-new fails to purge without adduser - userdel: not found
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 ow...@bugs.debian.org
immediately.)


-- 
1035841: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1035841
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: amavisd-new
Version: 1:2.13.0-2
Severity: serious
User: jo...@debian.org
Usertags: adduserpurge

Hi,

the packages passwd and adduser are not part of the Essential:yes set.
According to policy §7.2 maintainer scripts cannot assume them being installed
when purging a package.  If one tries to remove this package without adduser
(which depends on passwd) installed, one gets:

--%<-------------------------------------------------------------------------
Purging configuration files for amavisd-new (1:2.13.0-2) ...
/var/lib/dpkg/info/amavisd-new.postrm: 36: userdel: not found
dpkg: error processing package amavisd-new (--purge):
 installed amavisd-new package post-removal script subprocess returned error 
exit status 127
Errors were encountered while processing:
 amavisd-new
-->%-------------------------------------------------------------------------

There is ongoing discussion how to handle system users on package
removal, see https://bugs.debian.org/621833

For a discussion about use of adduser during purge, see #1035654.

To work around this problem, at least 125 source packages [codesearch] simply
ignore failures of calling the passwd or adduser tools during purge. The
following patch should fix this package by doing the same:

--%<-------------------------------------------------------------------------
diff -Nru amavisd-new-2.13.0/debian/amavisd-new.postrm 
amavisd-new-2.13.0/debian/amavisd-new.postrm
--- amavisd-new-2.13.0/debian/amavisd-new.postrm        2023-02-23 
05:59:36.000000000 +0100
+++ amavisd-new-2.13.0/debian/amavisd-new.postrm        2023-05-10 
06:33:15.000000000 +0200
@@ -33,7 +33,7 @@
                dpkg-statoverride --remove $i || true
        done
 
-    userdel amavis
+    userdel amavis || true
 
        echo "Removing amavis files and directories..."
        [ -d /var/lib/amavis ] && rm -fr /var/lib/amavis
-->%-------------------------------------------------------------------------

If you prefer I can fix this via an NMU.

Thanks!

cheers, josch

[codesearch] 
https://codesearch.debian.net/search?q=del%28user%7Cgroup%29.*%5C%7C%5C%7C+true+path%3Adebian%2F.*%5C.%28pre%7Cpost%29rm%24&literal=0

--- End Message ---
--- Begin Message ---
Source: amavisd-new
Source-Version: 1:2.13.0-3
Done: Brian May <b...@debian.org>

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.

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 1035...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Brian May <b...@debian.org> (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 ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Fri, 12 May 2023 08:52:23 +1000
Source: amavisd-new
Architecture: source
Version: 1:2.13.0-3
Distribution: unstable
Urgency: medium
Maintainer: Brian May <b...@debian.org>
Changed-By: Brian May <b...@debian.org>
Closes: 1035841
Changes:
 amavisd-new (1:2.13.0-3) unstable; urgency=medium
 .
   * Fix failure to purge without adduser. Closes: #1035841.
Checksums-Sha1:
 dd5c9bf77b25b896076011ac344adb367dd01085 2282 amavisd-new_2.13.0-3.dsc
 158b72a0328b5654a2a50a7d036e8ce99fc3a473 890624 amavisd-new_2.13.0.orig.tar.bz2
 6d9df44f4deff3cb2267ec4f2f51075f01440ecd 71952 
amavisd-new_2.13.0-3.debian.tar.xz
 686d01024b4d0dea40217e22b733fcf8a249ef48 12341 
amavisd-new_2.13.0-3_source.buildinfo
Checksums-Sha256:
 966734b2ab6aad92e585160c039a01448f03d27fbad82a5752a510b950706173 2282 
amavisd-new_2.13.0-3.dsc
 deb6e99182f0ee67c382eab454220106aa5d0fd18a564236710f59f07600069b 890624 
amavisd-new_2.13.0.orig.tar.bz2
 7ccbb226cf6e383a74a39cb93105dc18ad815f88279678c054ccca0764db88b4 71952 
amavisd-new_2.13.0-3.debian.tar.xz
 c655a1809507653e7728b6a8523fbae648b77ffeabb0ff6879b59ac650035907 12341 
amavisd-new_2.13.0-3_source.buildinfo
Files:
 a1897a1193eaa5acd30b0e54e02fb33e 2282 mail optional amavisd-new_2.13.0-3.dsc
 3b094a92188a8058c3826b265895253f 890624 mail optional 
amavisd-new_2.13.0.orig.tar.bz2
 e5f62b2807e8dde7750eabf6174dfb34 71952 mail optional 
amavisd-new_2.13.0-3.debian.tar.xz
 dd907599a7a2a470641e6074c1e3e67d 12341 mail optional 
amavisd-new_2.13.0-3_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJDBAEBCgAtFiEEKpwfR8DOwu5vyB4TKpJZkldkSvoFAmRddWkPHGJhbUBkZWJp
YW4ub3JnAAoJECqSWZJXZEr6i9UP/AuySJKO+DRuFl8BVDgkYIGa1pMLpvurm0oU
BOoYhO1GNEWcAebp71miWUdOSkQoGgH7Pd33Y42oUi/rwdkUXvDM6DHlBNXxld1W
NDQTpJwxPeXwiYsXNVcG/PbWHAx34JIEaYK4012y/4xqbVaiZhC/QPIhC+HNzMcQ
RyAuW2LDG5e4t8WS2snUe7wSfYvWHTANKVX13Tk9LYQn5GKdhu2vE1s+Ou8sSfgU
5mcwRvmQ3Z92Bj7a3ixOS7S73ez14q6PJUpqOlqXTb/vP3X9pHdNOjpF9P72VGgW
jWkCyzfDnIpl20dw073DV2BEHc2FC2tTGqTSPqaURNMPRPBzbONkWxc8XODAOX9S
Jwk1QrTSevcqWoRUIOiK+Ks0uIOWesKuYykRATOWQ6zfC8HAY4/v38v4dU8ic1Ip
YHTwNIfsFLn7RZJz+WSAcvDy1xmN4VcjFH2KpPlD5WiiOsuzwQzOwic6qljr5plr
X6KmttU1GVoCgi4SNEAhFhPoV9npDM5Xmt5zGobUhkupyJoIsM8Ix1O0VqgJEh+o
/DSe4ReMtvtbII0yh1E6RGqyaXdSlwCVK21eDxYMaguJLkg5JYHkpC2Y9SRPc1zV
xpTui7/60zs6LVEqLhaklZtib7kQTDJ9UyiwDnaD56LbXBZ1rPmDzaYTYR0k0dpV
DeNp1hX9
=nPlv
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to