So, this left me at an installed 24.04 OS but with those packages above
having issues. Running apt install showed the rest of the error
messages, which I repeat below:

Do you want to continue? [Y/n] y
Setting up polkitd (124-2ubuntu1.24.04.2) ...
Failed to check if group polkitd already exists: Connection refused
id: ‘polkitd’: no such user
chown: invalid group: ‘root:polkitd’
dpkg: error processing package polkitd (--configure):
 installed polkitd package post-installation script subprocess returned error 
exit status 1
No apport report written because the error message indicates its a followup 
error from a previous failure.
                                                                                
                          dpkg: dependency problems prevent configuration of 
pkexec:
 pkexec depends on polkitd (= 124-2ubuntu1.24.04.2); however:
  Package polkitd is not configured yet.


Fixing this required adding the polkitd group and user manually, as follows:
groupadd -r polkitd
useradd -r -g polkitd -d / -s /sbin/nologin -c "User for polkitd" polkit

ant then running
apt install polkitd

though google suggests running it as apt --reinstall install polkitd


Running 
apt install pkexec packagekit modemmanager policykit-1 packagekit-tools 
software-properties-common ubuntu-server

aftewards showed nothing needed to be done, and then an apt autoremove
cleaned up the unused packages that the do-release-upgrade would
presumably have removed.

I have no idea if this leaves my server stable. I can login and do
installs now though, and its not prod so Im going to forge ahead a bit.
But any assurance that nothing else needs to be cleaned up or installed
manually would be nice.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2129565

Title:
  package polkitd 124-2ubuntu1.24.04.2 failed to install/upgrade:
  installed polkitd package post-installation script subprocess returned
  error exit status 1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/policykit-1/+bug/2129565/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to