Related:

- https://answers.launchpad.net/ubuntu/+question/709594;
- https://bugs.launchpad.net/ubuntu/+source/policykit-1/+bug/2054716.

Fix was already provided
[here](https://answers.launchpad.net/ubuntu/+question/709594#comment-5)
and the following comments. Here is it once again:

```bash
# Note: `--gecos` is deprecated (based on `man adduser`) and `--comment` should 
be used instead,
#       however, `/var/lib/dpkg/info/polkitd.postinst` still uses `--gecos` at 
the time of writing.
adduser --group --system --quiet --comment 'polkit' --no-create-home --home 
/nonexistent polkitd
addgroup --system --quiet polkitd
service dbus reload
dpkg --configure -a
```

This was called too by incorrectly configured `sss` in
`/etc/nsswitch.log` (see [this
comment](https://answers.launchpad.net/ubuntu/+question/709594#comment-12)).

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to policykit-1 in Ubuntu.
https://bugs.launchpad.net/bugs/2086785

Title:
  `do-release-upgrade` from 22.04 LTS to 24.04 LTS: package polkitd
  124-2ubuntu1 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:
  I have successfully upgraded from Ubuntu 20.04.6 to 22.04, then after
  reboot I started upgrade to 24.04 which thrown this error.

  ProblemType: Package
  DistroRelease: Ubuntu 24.04
  Package: polkitd 124-2ubuntu1
  ProcVersionSignature: Ubuntu 5.15.0-124.134-generic 5.15.163
  Uname: Linux 5.15.0-124-generic x86_64
  ApportVersion: 2.28.1-0ubuntu3.1
  Architecture: amd64
  CasperMD5CheckResult: pass
  CloudArchitecture: x86_64
  CloudID: none
  CloudName: none
  CloudPlatform: none
  CloudSubPlatform: config
  Date: Wed Nov  6 07:39:27 2024
  ErrorMessage: installed polkitd package post-installation script subprocess 
returned error exit status 1
  InstallationDate: Installed on 2022-02-16 (994 days ago)
  InstallationMedia: Ubuntu-Server 20.04.3 LTS "Focal Fossa" - Release amd64 
(20210824)
  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.1
   apt  2.7.14build2
  SourcePackage: policykit-1
  Title: package polkitd 124-2ubuntu1 failed to install/upgrade: installed 
polkitd package post-installation script subprocess returned error exit status 1
  UpgradeStatus: Upgraded to noble on 2024-11-06 (0 days ago)
  mtime.conffile..etc.init.d.apport: 2024-07-22T09:59:07

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


-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to