Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1059216: Problem configuring polkitd after upgrade

215 views
Skip to first unread message

Adamo Reggiani

unread,
Dec 21, 2023, 7:10:05 AM12/21/23
to
Package: polkitd
Version: 122-3

During upgrading from Debian 11 Bullseye to Debian 12 Bookworm I received an error on polkitd configuration which also blocks other dependencies (network-manager, modemmanager, pkexec, colord, ...)

Configurazione di polkitd (122-3)...
Creating group 'polkitd' with GID 997.
Creating user 'polkitd' (polkit) with UID 997 and GID 997.
Failed to add existing group "tty" to temporary gshadow file: Invalid argument
dpkg: errore nell'elaborare il pacchetto polkitd (--configure):

Tried do uninstall polkitd, reinstall it manually, same behavior.

I am using Debian GNU/Linux 12.4, kernel 6.1.0-16-amd64

Cheers,
Adamo

-- 
Adamo Reggiani
Autron srl
via per Mirandola, 8
41033 Concordia s/S (MO) - Italy
C.F. e P.Iva 03069210361
Tel   : +39-0535.57276
Mobile: +39-335-7665877
web: http://www.autron.net
mailto: areg...@autron.net

PRIVACY
Ai sensi della D.Lgs. 196/03 si precisa che le informazioni contenute in questo messaggio sono riservate ed a uso esclusivo del destinatario. Qualora il messaggio in parola Le fosse pervenuto per errore, la preghiamo di eliminarlo senza copiarlo e di non inoltrarlo a terzi, dandocene gentilmente comunicazione. Grazie.

DISCLAIMER
This message, for the law 196/03, may contain confidential and/or privileged information. If you are not the intended recipient or authorized to receive this for the addressee, you must not use, copy, disclose or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation.

Simon McVittie

unread,
Dec 21, 2023, 11:00:05 AM12/21/23
to
Control: reassign -1 systemd
Control: affects -1 + polkitd

On Thu, 21 Dec 2023 at 12:58:09 +0100, Adamo Reggiani wrote:
> During upgrading from Debian 11 Bullseye to Debian 12 Bookworm I received an error on polkitd configuration which also blocks other dependencies (network-manager, modemmanager, pkexec, colord, ...)
>
> Configurazione di polkitd (122-3)...
> Creating group 'polkitd' with GID 997.
> Creating user 'polkitd' (polkit) with UID 997 and GID 997.
> Failed to add existing group "tty" to temporary gshadow file: Invalid argument
> dpkg: errore nell'elaborare il pacchetto polkitd (--configure):
>
> Tried do uninstall polkitd, reinstall it manually, same behavior.
>
> I am using Debian GNU/Linux 12.4, kernel 6.1.0-16-amd64

According to codesearch.debian.net, the message starting with "Failed
to add existing group" seems to come from systemd-sysusers, so I'm
reassigning this to systemd. polkitd itself does not do anything with the
tty group, so this seems like an internal error inside systemd-sysusers?

polkitd is relatively unusual in that it uses systemd-sysusers to create
its system user in the postinst, rather than using adduser. If there is a
problem with systemd-sysusers on some systems, polkitd could work around it
if necessary by going back to having adduser as a hard dependency (although
I'd prefer to reduce the need for the Debian-specific adduser over time).

smcv

Michael Biebl

unread,
Dec 21, 2023, 12:30:05 PM12/21/23
to

Please provide the output of (running as root)

SYSTEMD_LOG_LEVEL=debug systemd-sysusers polkitd.conf

Adamo Reggiani

unread,
Dec 22, 2023, 6:50:05 AM12/22/23
to
Hi Michael,
thank you for you fast feedback.
polkitd is currently not installed, so this the the output of the suggested command.

SELinux enabled state cached to: disabled
Failed to open 'polkitd.conf', ignoring: No such file or directory

Unfortunately in my tentative to bypass the issue I've purged the packet by apt
I've reinstalled polkitd by installing network-manager and this is the output of the suggested command:

SELinux enabled state cached to: disabled

Creating group 'polkitd' with GID 997.
Creating user 'polkitd' (polkit) with UID 997 and GID 997.
Failed to add existing group "tty" to temporary gshadow file: Invalid argument

Cheers,
Adamo



On 21/12/23 18:25, Michael Biebl wrote:
Please provide the output of (running as root)

SYSTEMD_LOG_LEVEL=debug systemd-sysusers polkitd.conf


Adamo Reggiani

unread,
Jan 5, 2024, 5:20:05 PM1/5/24
to

Hi Michael,
please see the output here.

# SYSTEMD_LOG_LEVEL=debug systemd-sysusers polkitd.conf

SELinux enabled state cached to: disabled

Creating group 'polkitd' with GID 997.
Creating user 'polkitd' (polkit) with UID 997 and GID 997.
Failed to add existing group "tty" to temporary gshadow file: Invalid argument



Regards,
Adamo

On 21/12/23 18:25, Michael Biebl wrote:
SYSTEMD_LOG_LEVEL=debug systemd-sysusers polkitd.conf
0 new messages