debcrafters-packages team mailing list archive
-
debcrafters-packages team
-
Mailing list archive
-
Message #09623
[Bug 2129565] Re: package polkitd 124-2ubuntu1.24.04.2 failed to install/upgrade: installed polkitd package post-installation script subprocess returned error exit status 1
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
Debcrafters packages, which is subscribed to policykit-1 in 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
Status in policykit-1 package in Ubuntu:
New
Bug description:
do-release-upgrade from 22.04 to 24.04 (right after doing a 20.04 to
22.04 upgrade) resulted in this error
dpkg: error processing package policykit-1 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of packagekit-tools:
packagekit-tools depends on packagekit (= 1.2.8-2ubuntu1.2); however:
Package packagekit is not configured yet.
dpkg: error processing package packagekit-tools (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of software-properties-common:
software-properties-common depends on packagekit; however:
Package packagekit is not configured yet.
dpkg: error processing package software-properties-common (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ubuntu-server:
ubuntu-server depends on software-properties-common; however:
Package software-properties-common is not configured yet.
dpkg: error processing package ubuntu-server (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
polkitd
pkexec
packagekit
modemmanager
policykit-1
packagekit-tools
software-properties-common
ubuntu-server
There are errors before that but I can page backup to see them (or at least, I don't know how to). Previous server I did this on had no issues at all.
What I expected to happen: 22.04 to 24.04 do-release-upgrade to finish without errors.
What happened instead: dpkg threw errors that a the packagekit-tools package was a dependency for the listed packages, but hadn't been configured yet.
ProblemType: Package
DistroRelease: Ubuntu 24.04
Package: polkitd 124-2ubuntu1.24.04.2
ProcVersionSignature: Ubuntu 5.15.0-160.170-generic 5.15.189
Uname: Linux 5.15.0-160-generic x86_64
ApportVersion: 2.28.1-0ubuntu3.8
Architecture: amd64
CasperMD5CheckResult: pass
CloudArchitecture: x86_64
CloudID: none
CloudName: none
CloudPlatform: none
CloudSubPlatform: config
Date: Wed Oct 22 14:52:44 2025
ErrorMessage: installed polkitd package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2022-11-14 (1073 days ago)
InstallationMedia: Ubuntu-Server 20.04.5 LTS "Focal Fossa" - Release amd64 (20220831)
Python3Details: /usr/bin/python3.12, Python 3.12.3, python3-minimal, 3.12.3-0ubuntu2
PythonDetails: N/A
RebootRequiredPkgs: Error: path contained symlinks.
RelatedPackageVersions:
dpkg 1.22.6ubuntu6.5
apt 2.8.3
SourcePackage: policykit-1
Title: package polkitd 124-2ubuntu1.24.04.2 failed to install/upgrade: installed polkitd package post-installation script subprocess returned error exit status 1
UpgradeStatus: Upgraded to noble on 2025-10-22 (0 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/policykit-1/+bug/2129565/+subscriptions
References