Your message dated Tue, 31 Jan 2023 22:51:52 +0000
with message-id <e1pmztk-00423s...@fasolo.debian.org>
and subject line Bug#1030154: fixed in policykit-1 122-3
has caused the Debian Bug report #1030154,
regarding polkitd: upgrade failure: usermod: user polkitd is currently used by 
process $pid
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.)


-- 
1030154: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1030154
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: polkitd
Version: 122-2
Severity: serious
Justification: maintainer says so
Tags: pending

While upgrading a bullseye GNOME system[1] to bookworm, I got this
upgrade failure:

> Setting up polkitd (122-2) ...
> Creating group 'polkitd' with GID 999.
> usermod: user polkitd is currently used by process 109547
> dpkg: error processing package polkitd (--configure):
>  installed polkitd package post-installation script subprocess returned error 
> exit status 8

The root cause is that we are using `usermod -d /nonexistent polkitd`
to change the polkitd user's home directory from /var/lib/polkit-1 to
/nonexistent, to avoid junk directories like /var/lib/polkit-1/.cache
being created. However, usermod quite reasonably refuses to modify a
user while they have processes running.

I think there are two things we can do to avoid this:

- try to stop polkitd before we manipulate its system user;
- add a "|| true" to this usermod command because it could be restarted
  by D-Bus activation, but the usermod change isn't really critical for
  existing installations

and my inclination is to do both.

    smcv

--- End Message ---
--- Begin Message ---
Source: policykit-1
Source-Version: 122-3
Done: Simon McVittie <s...@debian.org>

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

Debian distribution maintenance software
pp.
Simon McVittie <s...@debian.org> (supplier of updated policykit-1 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: SHA256

Format: 1.8
Date: Tue, 31 Jan 2023 22:05:24 +0000
Source: policykit-1
Architecture: source
Version: 122-3
Distribution: unstable
Urgency: medium
Maintainer: Utopia Maintenance Team 
<pkg-utopia-maintain...@lists.alioth.debian.org>
Changed-By: Simon McVittie <s...@debian.org>
Closes: 1030154
Changes:
 policykit-1 (122-3) unstable; urgency=medium
 .
   * d/polkitd.postinst: Stop polkitd before changing home directory.
     usermod will refuse to change the home directory if a polkitd process
     is running as the polkitd uid, so stop polkitd if necessary, and also
     don't fail if usermod can't change the home directory in an existing
     installation (which is non-critical anyway). (Closes: #1030154)
Checksums-Sha1:
 658c2d17e20d089876bcbda27f0c5420b501d1f0 3556 policykit-1_122-3.dsc
 ea2fab72b762790408853fcac56417ca1d724d8a 45328 policykit-1_122-3.debian.tar.xz
 1443e5b46c9bccfa1d3f7ed3487dfa10579667e8 8598 
policykit-1_122-3_source.buildinfo
Checksums-Sha256:
 287affb3d5b4f80c6ef18bbab505e10b111577960228008124e3f54ca3ca7216 3556 
policykit-1_122-3.dsc
 2eeb0e0ea9b8df6d1a5d9f12ae20b50627ea1329411f583e03fd2df414108721 45328 
policykit-1_122-3.debian.tar.xz
 431d65f48bbadbb72e40717975d0906fc69b62b60bfc90ee610ee0a6a4f4e231 8598 
policykit-1_122-3_source.buildinfo
Files:
 7216acd192b5b6f851138a1abac28cf7 3556 admin optional policykit-1_122-3.dsc
 edda8f56e944a1f09bf12cf6f347166d 45328 admin optional 
policykit-1_122-3.debian.tar.xz
 537f3ec769c70681f5276e28c69f09a8 8598 admin optional 
policykit-1_122-3_source.buildinfo

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

iQIzBAEBCAAdFiEENuxaZEik9e95vv6Y4FrhR4+BTE8FAmPZmVIACgkQ4FrhR4+B
TE8+zBAArEluk1It1xvsMzv+/2e7NAWgHooNhQdnAv1AkXq5SBgVPC4ROfP4Vieg
/PVug/hLUYmOLpnf9jqoY8pkFO6HDJ2aAHI1piqRSM5+b5fZHVblTqz9FF+vpVRr
o9RMZxVZhBsKSf4yGwx/gQljftOhpronqSpyHVvOHYsVM7IqByfC+LuPEVkMPnE6
nvA0vosrs2UI7k02mW2+WGHEJKMka1DwcOrSXDJMeJPvNR+Oa4iTEwP+4eSEdJkk
T0WOT3h8wmSgyJ8UfqH9lHRLtURZqjAU3ZQfpjTM6NnfRHbCi+x4+SZVyz6VPTUl
dzdYobb1giA3qx0bAv66RgzfS+S0wPO+XisGNewbOv6/7M37/j7tBq1NumqV5sf/
U8TRfCION31kj8QyrxdMwpavZtpUPKzXjhSHg2rtMRvc0D0SPbIGXgzVdxz6BwnA
vRouM39lCRMNqwQTlt9iutnf/5c3XWCVDwl1qRWjp66g0qc8OZxSpuStQUttji+t
I/Cn4+bQGSMf/nA63MMfIfgB+APiIoY7CqhVwezPr6Nj3dbblyEi8MidgRHrbqc6
P1kNtyrn2lFdFu7Zuwqgd+YzdbBaViuxUE5kZLNMves08MQUCh2IWpJne9ycJ7y+
e/m39c794Vh06bhR5pmbjNOGm0VlqOrqUzg6jpI/krdYOheHY5M=
=hPXZ
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to