[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1035847: marked as done (x2gobroker-* packages fail to purge without adduser)



Your message dated Tue, 16 May 2023 21:21:48 +0000
with message-id <E1pz27A-00E4Gk-FM@fasolo.debian.org>
and subject line Bug#1035847: fixed in x2gothinclient 1.5.0.1-9
has caused the Debian Bug report #1035847,
regarding x2gobroker-* packages fail to purge without adduser
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 owner@bugs.debian.org
immediately.)


-- 
1035847: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1035847
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: x2gobroker
Version: 0.0.4.3-2.1
Severity: serious
User: josch@debian.org
Usertags: adduserpurge
Control: tag -1 + patch
X-Debbugs-CC: josch@debian.org

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:

--%<-------------------------------------------------------------------------
==> x2gobroker-agent.log <==
Purging configuration files for x2gobroker-agent (0.0.4.3-2.1) ...
/var/lib/dpkg/info/x2gobroker-agent.postrm: 35: deluser: not found
dpkg: error processing package x2gobroker-agent (--purge):
 installed x2gobroker-agent package post-removal script subprocess returned error exit status 127
Errors were encountered while processing:
 x2gobroker-agent
==> x2gobroker-authservice.log <==
Purging configuration files for x2gobroker-authservice (0.0.4.3-2.1) ...
/var/lib/dpkg/info/x2gobroker-authservice.postrm: 31: deluser: not found
dpkg: error processing package x2gobroker-authservice (--purge):
 installed x2gobroker-authservice package post-removal script subprocess returned error exit status 127
Errors were encountered while processing:
 x2gobroker-authservice
==> x2gobroker-daemon.log <==
Purging configuration files for x2gobroker-daemon (0.0.4.3-2.1) ...
/var/lib/dpkg/info/x2gobroker-daemon.postrm: 31: deluser: not found
dpkg: error processing package x2gobroker-daemon (--purge):
 installed x2gobroker-daemon package post-removal script subprocess returned error exit status 127
Errors were encountered while processing:
 x2gobroker-daemon
==> x2gobroker-loadchecker.log <==
Purging configuration files for x2gobroker-loadchecker (0.0.4.3-2.1) ...
/var/lib/dpkg/info/x2gobroker-loadchecker.postrm: 31: deluser: not found
dpkg: error processing package x2gobroker-loadchecker (--purge):
 installed x2gobroker-loadchecker package post-removal script subprocess returned error exit status 127
Errors were encountered while processing:
 x2gobroker-loadchecker
==> x2gobroker-ssh.log <==
Purging configuration files for x2gobroker-ssh (0.0.4.3-2.1) ...
/var/lib/dpkg/info/x2gobroker-ssh.postrm: 30: deluser: not found
dpkg: error processing package x2gobroker-ssh (--purge):
 installed x2gobroker-ssh package post-removal script subprocess returned error exit status 127
Errors were encountered while processing:
 x2gobroker-ssh
==> x2gobroker-wsgi.log <==
Purging configuration files for x2gobroker-wsgi (0.0.4.3-2.1) ...
/var/lib/dpkg/info/x2gobroker-wsgi.postrm: 47: deluser: not found
dpkg: error processing package x2gobroker-wsgi (--purge):
 installed x2gobroker-wsgi package post-removal script subprocess returned error exit status 127
Errors were encountered while processing:
 x2gobroker-wsgi
-->%-------------------------------------------------------------------------

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 x2gobroker-0.0.4.3/debian/x2gobroker-agent.postrm x2gobroker-0.0.4.3/debian/x2gobroker-agent.postrm
--- x2gobroker-0.0.4.3/debian/x2gobroker-agent.postrm	2019-03-31 16:49:49.000000000 +0200
+++ x2gobroker-0.0.4.3/debian/x2gobroker-agent.postrm	2023-05-10 08:01:29.000000000 +0200
@@ -32,9 +32,9 @@
 
 		if [ ! -d /usr/share/doc/x2gobroker-daemon ] && [ ! -d /usr/share/doc/x2gobroker-authservice ] && [ ! -d /usr/share/doc/x2gobroker-wsgi ] && [ ! -d /usr/share/doc/x2gobroker-loadchecker ]; then
 			# remove user/group x2gobroker from system (if not in use by x2gobroker-daemon, x2gobroker-authservice, x2gobroker-wsgi, x2gobroker-loadchecker)
-			getent passwd x2gobroker 1>/dev/null && deluser x2gobroker
-			getent group x2gobroker 1>/dev/null && delgroup x2gobroker
-			getent group x2gobroker 1>/dev/null && delgroup x2gobroker
+			getent passwd x2gobroker 1>/dev/null && deluser x2gobroker || true
+			getent group x2gobroker 1>/dev/null && delgroup x2gobroker || true
+			getent group x2gobroker 1>/dev/null && delgroup x2gobroker || true
 			rm -Rf /var/lib/x2gobroker
 		fi
 
@@ -52,4 +52,4 @@
 
 #DEBHELPER#
 
-exit 0
\ No newline at end of file
+exit 0
diff -Nru x2gobroker-0.0.4.3/debian/x2gobroker-authservice.postrm x2gobroker-0.0.4.3/debian/x2gobroker-authservice.postrm
--- x2gobroker-0.0.4.3/debian/x2gobroker-authservice.postrm	2019-03-31 16:49:49.000000000 +0200
+++ x2gobroker-0.0.4.3/debian/x2gobroker-authservice.postrm	2023-05-10 08:01:29.000000000 +0200
@@ -28,9 +28,9 @@
 
 		if [ ! -d /usr/share/doc/x2gobroker-daemon ] && [ ! -d /usr/share/doc/x2gobroker-agent ] && [ ! -d /usr/share/doc/x2gobroker-wsgi ] && [ ! -d /usr/share/doc/x2gobroker-loadchecker ]; then
 			# remove user/group x2gobroker from system (only if not in use by x2gobroker-daemon, x2gobroker-agent, x2gobroker-wsgi, x2gobroker-loadchecker)
-			getent passwd x2gobroker 1>/dev/null && deluser x2gobroker
-			getent group x2gobroker 1>/dev/null && delgroup x2gobroker
-			getent group x2gobroker 1>/dev/null && delgroup x2gobroker
+			getent passwd x2gobroker 1>/dev/null && deluser x2gobroker || true
+			getent group x2gobroker 1>/dev/null && delgroup x2gobroker || true
+			getent group x2gobroker 1>/dev/null && delgroup x2gobroker || true
 			rm -Rf /var/lib/x2gobroker
 		fi
 
diff -Nru x2gobroker-0.0.4.3/debian/x2gobroker-daemon.postrm x2gobroker-0.0.4.3/debian/x2gobroker-daemon.postrm
--- x2gobroker-0.0.4.3/debian/x2gobroker-daemon.postrm	2019-03-31 16:49:49.000000000 +0200
+++ x2gobroker-0.0.4.3/debian/x2gobroker-daemon.postrm	2023-05-10 08:01:29.000000000 +0200
@@ -28,9 +28,9 @@
 
 		if [ ! -d /usr/share/doc/x2gobroker-agent ] && [ ! -d /usr/share/doc/x2gobroker-authservice ] && [ ! -d /usr/share/doc/x2gobroker-wsgi ] && [ ! -d /usr/share/doc/x2gobroker-loadchecker ]; then
 			# remove user/group x2gobroker from system (only if not in use by x2gobroker-agent, x2gobroker-authservice, x2gobroker-wsgi, x2gobroker-loadchecker)
-			getent passwd x2gobroker 1>/dev/null && deluser x2gobroker
-			getent group x2gobroker 1>/dev/null && delgroup x2gobroker
-			getent group x2gobroker 1>/dev/null && delgroup x2gobroker
+			getent passwd x2gobroker 1>/dev/null && deluser x2gobroker || true
+			getent group x2gobroker 1>/dev/null && delgroup x2gobroker || true
+			getent group x2gobroker 1>/dev/null && delgroup x2gobroker || true
 			rm -Rf /var/lib/x2gobroker
 		fi
 
diff -Nru x2gobroker-0.0.4.3/debian/x2gobroker-loadchecker.postrm x2gobroker-0.0.4.3/debian/x2gobroker-loadchecker.postrm
--- x2gobroker-0.0.4.3/debian/x2gobroker-loadchecker.postrm	2019-03-31 16:49:49.000000000 +0200
+++ x2gobroker-0.0.4.3/debian/x2gobroker-loadchecker.postrm	2023-05-10 08:01:29.000000000 +0200
@@ -28,9 +28,9 @@
 
 		if [ ! -d /usr/share/doc/x2gobroker-daemon ] && [ ! -d /usr/share/doc/x2gobroker-agent ] && [ ! -d /usr/share/doc/x2gobroker-wsgi ] && [ ! -d /usr/share/doc/x2gobroker-authservice ]; then
 			# remove user/group x2gobroker from system (only if not in use by x2gobroker-daemon, x2gobroker-agent, x2gobroker-wsgi, x2gobroker-authservice)
-			getent passwd x2gobroker 1>/dev/null && deluser x2gobroker
-			getent group x2gobroker 1>/dev/null && delgroup x2gobroker
-			getent group x2gobroker 1>/dev/null && delgroup x2gobroker
+			getent passwd x2gobroker 1>/dev/null && deluser x2gobroker || true
+			getent group x2gobroker 1>/dev/null && delgroup x2gobroker || true
+			getent group x2gobroker 1>/dev/null && delgroup x2gobroker || true
 			rm -Rf /var/lib/x2gobroker
 		fi
 
diff -Nru x2gobroker-0.0.4.3/debian/x2gobroker-ssh.postrm x2gobroker-0.0.4.3/debian/x2gobroker-ssh.postrm
--- x2gobroker-0.0.4.3/debian/x2gobroker-ssh.postrm	2019-03-31 16:49:49.000000000 +0200
+++ x2gobroker-0.0.4.3/debian/x2gobroker-ssh.postrm	2023-05-10 08:01:29.000000000 +0200
@@ -27,9 +27,9 @@
 
 		if [ ! -d /usr/share/doc/x2gobroker-agent ] && [ ! -d /usr/share/doc/x2gobroker-authservice ] && [ ! -d /usr/share/doc/x2gobroker-wsgi ] && [ ! -d /usr/share/doc/x2gobroker-daemon ]; then
 			# remove user/group x2gobroker from system (only if not in use by x2gobroker-agent, x2gobroker-authservice, x2gobroker-wsgi)
-			getent passwd x2gobroker 1>/dev/null && deluser x2gobroker
-			getent group x2gobroker 1>/dev/null && delgroup x2gobroker
-			getent group x2gobroker 1>/dev/null && delgroup x2gobroker
+			getent passwd x2gobroker 1>/dev/null && deluser x2gobroker || true
+			getent group x2gobroker 1>/dev/null && delgroup x2gobroker || true
+			getent group x2gobroker 1>/dev/null && delgroup x2gobroker || true
 			rm -Rf /var/lib/x2gobroker
 		fi
 
diff -Nru x2gobroker-0.0.4.3/debian/x2gobroker-wsgi.postrm x2gobroker-0.0.4.3/debian/x2gobroker-wsgi.postrm
--- x2gobroker-0.0.4.3/debian/x2gobroker-wsgi.postrm	2019-03-31 16:49:49.000000000 +0200
+++ x2gobroker-0.0.4.3/debian/x2gobroker-wsgi.postrm	2023-05-10 08:01:29.000000000 +0200
@@ -44,9 +44,9 @@
 
 		if [ ! -d /usr/share/doc/x2gobroker-agent ] && [ ! -d /usr/share/doc/x2gobroker-authservice ] && [ ! -d /usr/share/doc/x2gobroker-daemon ] && [ ! -d /usr/share/doc/x2gobroker-loadchecker ]; then
 			# remove user/group x2gobroker from system (only if not in use by x2gobroker-agent, x2gobroker-authservice, x2gobroker-daemon, x2gobroker-loadchecker)
-			getent passwd x2gobroker 1>/dev/null && deluser x2gobroker
-			getent group x2gobroker 1>/dev/null && delgroup x2gobroker
-			getent group x2gobroker 1>/dev/null && delgroup x2gobroker
+			getent passwd x2gobroker 1>/dev/null && deluser x2gobroker || true
+			getent group x2gobroker 1>/dev/null && delgroup x2gobroker || true
+			getent group x2gobroker 1>/dev/null && delgroup x2gobroker || true
 			rm -Rf /var/lib/x2gobroker
 		fi
 
-->%-------------------------------------------------------------------------

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: x2gothinclient
Source-Version: 1.5.0.1-9
Done: Mike Gabriel <sunweaver@debian.org>

We believe that the bug you reported is fixed in the latest version of
x2gothinclient, 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 1035847@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Mike Gabriel <sunweaver@debian.org> (supplier of updated x2gothinclient 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 ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Tue, 16 May 2023 22:09:06 +0200
Source: x2gothinclient
Architecture: source
Version: 1.5.0.1-9
Distribution: unstable
Urgency: medium
Maintainer: Debian Remote Maintainers <debian-remote@lists.debian.org>
Changed-By: Mike Gabriel <sunweaver@debian.org>
Closes: 1035847
Changes:
 x2gothinclient (1.5.0.1-9) unstable; urgency=medium
 .
   * debian/x2gothinclient-common.postrm:
     + Ignore failures during execution of deluser/delgroup. (Closes: #1035847).
   * debian/control:
     + Drop from D: lsb-base (obsoleted package). Thanks, lintian.
     + Drop from D: policykit-1, replace by polkitd. Thanks, lintian.
Checksums-Sha1:
 77bd289619223f695d356b186ccf044d5be096ea 2973 x2gothinclient_1.5.0.1-9.dsc
 d91540d502c8f9806a4d3562cf9765d0da2d0a80 30416 x2gothinclient_1.5.0.1-9.debian.tar.xz
 a75878b188ffe72002f27626944d7e2aa568703b 10483 x2gothinclient_1.5.0.1-9_source.buildinfo
Checksums-Sha256:
 7aca6f146086fd1c42bc7e95352a3453cf3ed519b29bdc79828483796f1616ab 2973 x2gothinclient_1.5.0.1-9.dsc
 86df6fdefb953058687affcafffbd9a21fba15b532d03d295d6d0bac6615a7da 30416 x2gothinclient_1.5.0.1-9.debian.tar.xz
 752a30ae0c2ced9fa59afd74cfba0894ba5c5c4865ad09f7c597515b3375a8bc 10483 x2gothinclient_1.5.0.1-9_source.buildinfo
Files:
 899506497d12dd3a7c6f21c18c843120 2973 admin optional x2gothinclient_1.5.0.1-9.dsc
 70b4f5d43d42d1ebf41eaf86d60196ad 30416 admin optional x2gothinclient_1.5.0.1-9.debian.tar.xz
 79f84b64f9b983825c7399b1d045b773 10483 admin optional x2gothinclient_1.5.0.1-9_source.buildinfo

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

iQJJBAEBCAAzFiEEm/uu6GwKpf+/IgeCmvRrMCV3GzEFAmRj5wAVHHN1bndlYXZl
ckBkZWJpYW4ub3JnAAoJEJr0azAldxsxaP4QAJf35i/Vt8mD9YE+3diBNNgEtiAO
5MG6qkDRSKEI+74muoOpZ+k+0HghBYwG0B/GgI4ABFU0cKQErwkZyvcMBveciB79
n2qUY/TOihDkhN+Zk7hmjbUQTtvoJHLr8LuaFnZ2BP67aEgVv8piYH2EueugzYDz
x1ORIGWBVjFklSiHAe1+o0d4DrxN9+i9NRHW840DcHG/9Bg/KJ6XIROWSXtc7udH
UGAUbGNGbJzMfBSiBK4jvgB6f5ST9U0dGTQwpYH+uzF0OBKfyVQ5pIgYAUpRFp1W
ZqaucOvkVwrCMvrxBZ1Z6yIBcWCO6TOxdbtojdg0mchUens0yfRK3kAl0v8Nq4LQ
GnzGtwGlRPGzNp9KYJCOTNX5texAVCullD+uPs3kDKfWqE34M5xoyOkP43+qeXsR
mg/XzRlwSl4fzUfnCJseCW/7CAJplC7HDik+LlIpixSjqq14C6js3KJgc9Jya/5q
U3LVREFKu9SmdGVtKc1uotE8ypIQNKG95S0yO8Php52Qr39jWTQpTAoRiWccNLSQ
j69eH2NtYr/tUnbYOwVUtWW+5X7yNunMP+CLLLKC4CnDyQQZuroNGtt+NxJTjMkd
xlNxd8I3MC7k4YFEzw/vwYO75xjZsrCAdx5rBw08LcyLk2j7HwPymbCefS1pUacm
gRZntMVwlBokpoS6
=/chp
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: