[Pkg-utopia-maintainers] Bug#1076506: Bug#1076506: polkitd: Strange polkit related error upgrading to bookworm

Michael Biebl biebl at debian.org
Sat Jul 20 14:52:25 BST 2024


Control: tags -1 + moreinfo

(please leave the moreinfo tag present until we actually have useful 
information to further investigate this)

Am 20.07.24 um 14:58 schrieb Andreas Tille:
> Control: tags -1 - moreinfo
> 
> Hi again,
> 
> Am Wed, Jul 17, 2024 at 06:15:06PM +0200 schrieb Michael Biebl:
>>>>> Can you attach the output of
>>>>> SYSTEMD_LOG_LEVEL=debug systemd-sysusers /usr/lib/sysusers.d/polkit.conf
>>>>> for the system where you get this failure.
>>>>
>>>> # SYSTEMD_LOG_LEVEL=debug systemd-sysusers
>>>> /usr/lib/sysusers.d/polkit.conf
>>>> SELinux enabled state cached to: disabled
>>>> Failed to open '/usr/lib/sysusers.d/polkit.conf', ignoring: No such
>>>> file or directory
>>>
>>> SYSTEMD_LOG_LEVEL=debug systemd-sysusers /usr/lib/sysusers.d/polkitd.conf
>>>
>>> please (note the 'd')
> 
> # SYSTEMD_LOG_LEVEL=debug systemd-sysusers /usr/lib/sysusers.d/polkitd.conf
> SELinux enabled state cached to: disabled
> Group polkitd already exists.
> User polkitd already exists.
> 
> 

This doesn't show any problem. Are you sure you ran this command on a 
system showing this failure?
Or have you manually worked around this in the mean time

>> Ideally also include the output of "dpkg-reconfigure" with
>> /var/lib/dpkg/info/polkitd.postinst having a  "set -x" added right at the
>> top.
> 
> See end of this mail.
>   
>> The usual spiel.
> 
> Hope this helps now.
> 
> Please note: I will not have any access to this laptop for the next two
> weeks.
> 
> Kind regards
>      Andreas.
> 
> 
> # dpkg-reconfigure polkitd 2>&1 | tee > output
> # cat output
> + set -e
> + getent passwd polkitd
> + user_changed=
> + command -v systemd-sysusers
> + systemd-sysusers polkitd.conf
> + dpkg --compare-versions 122-3 lt 122-3~
> + id -g polkitd
> + [ 134 = 65534 ]
> + set_perms polkitd root 700 /etc/polkit-1/rules.d
> + USER=polkitd
> + GROUP=root
> + MODE=700
> + FILE=/etc/polkit-1/rules.d
> + dpkg-statoverride --list /etc/polkit-1/rules.d
> + chown polkitd:root /etc/polkit-1/rules.d
> + chmod 700 /etc/polkit-1/rules.d
> + set_perms polkitd root 700 /usr/share/polkit-1/rules.d
> + USER=polkitd
> + GROUP=root
> + MODE=700
> + FILE=/usr/share/polkit-1/rules.d
> + dpkg-statoverride --list /usr/share/polkit-1/rules.d
> + chown polkitd:root /usr/share/polkit-1/rules.d
> + chmod 700 /usr/share/polkit-1/rules.d
> + set_perms polkitd root 700 /var/lib/polkit-1
> + USER=polkitd
> + GROUP=root
> + MODE=700
> + FILE=/var/lib/polkit-1
> + dpkg-statoverride --list /var/lib/polkit-1
> + chown polkitd:root /var/lib/polkit-1
> + chmod 700 /var/lib/polkit-1
> + set_perms root root 4755 /usr/lib/polkit-1/polkit-agent-helper-1
> + USER=root
> + GROUP=root
> + MODE=4755
> + FILE=/usr/lib/polkit-1/polkit-agent-helper-1
> + dpkg-statoverride --list /usr/lib/polkit-1/polkit-agent-helper-1
> + chown root:root /usr/lib/polkit-1/polkit-agent-helper-1
> + chmod 4755 /usr/lib/polkit-1/polkit-agent-helper-1
> + [ -z  ]
> + [ -n  ]
> + [ configure = configure ]
> + update-xmlcatalog --sort --add --type public --id -//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN --package polkitd --local /usr/share/xml/polkit-1/catalog.xml
> + update-xmlcatalog --sort --add --type system --id http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd --package polkitd --local /usr/share/xml/polkit-1/catalog.xml
> + update-xmlcatalog --sort --add --type public --id -//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN --package polkitd --root
> + update-xmlcatalog --sort --add --type system --id http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd --package polkitd --root
> + [ configure = configure ]
> + command -v systemd-tmpfiles
> + [ -x /usr/bin/systemd-tmpfiles ]
> + systemd-tmpfiles --create polkitd.conf
> + dpkg-maintscript-helper rm_conffile /etc/pam.d/polkit-1 122-2~ -- configure 122-3
> + dpkg-maintscript-helper rm_conffile /etc/polkit-1/localauthority.conf.d/50-localauthority.conf 121+compat0.1-1~ -- configure 122-3
> + dpkg-maintscript-helper rm_conffile /etc/polkit-1/localauthority.conf.d/51-debian-sudo.conf 121+compat0.1-1~ -- configure 122-3
> + dpkg-maintscript-helper rm_conffile /etc/polkit-1/localauthority.conf.d/51-ubuntu-admin.conf 121+compat0.1-1~ -- configure 122-3
> + dpkg-maintscript-helper rm_conffile /etc/polkit-1/rules.d/40-debian-sudo.rules 121~ polkitd-javascript -- configure 122-3
> + dpkg-maintscript-helper rm_conffile /etc/polkit-1/rules.d/40-ubuntu-admin.rules 121~ polkitd-javascript -- configure 122-3
> + dpkg-maintscript-helper rm_conffile /etc/polkit-1/rules.d/50-default.rules 121~ polkitd-javascript -- configure 122-3
> + [ configure = configure ]
> + [ -z  ]
> + [ -d /run/systemd/system ]
> + systemctl --system daemon-reload
> + [ -n 122-3 ]
> + deb-systemd-invoke try-restart polkit.service
> + [ -e /etc/pam.d/polkit-1.dpkg-bak ]
> + dpkg --compare-versions 122-3 lt 0.109-1
> + [ -d /run/systemd/system ]
> + exit 0
> 
> 

Thanks for the bash trace, but this doesn't show any problem.

See my remark above. You obviously need to run this on a system showing 
the problem not where it has been worked around already.

Or better yet, provide concise steps how this can be reproduced.

Michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-utopia-maintainers/attachments/20240720/7778e7be/attachment-0001.sig>


More information about the Pkg-utopia-maintainers mailing list