Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1957313

Summary: missing polkit dependency: Failed to check for authentication: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable
Product: Red Hat Enterprise Linux 9 Reporter: Petr Pisar <ppisar>
Component: PackageKitAssignee: Richard Hughes <rhughes>
Status: CLOSED WONTFIX QA Contact: Desktop QE <desktop-qa-list>
Severity: high Docs Contact:
Priority: high    
Version: 9.0CC: ehespinosa57, extras-qa, jonathan, klember, lmiksik, mfuruta, mpitt, pvlasin, qoheniac, rdieter, rhughes, robinlee.sysu, smparrish
Target Milestone: betaKeywords: TestBlocker
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1800468 Environment:
Last Closed: 2022-11-05 07:27:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Petr Pisar 2021-05-05 15:13:20 UTC
+++ This bug was initially created as a clone of Bug #1800468 +++

Description of problem: PackageKit seems to query polkit even if the caller is root, but does not depend on polkit. This leads to failures from e. g. cockpit-packagekit when it tries to do package operations.


Version-Release number of selected component (if applicable):

PackageKit-1.1.12-11.fc31.x86_64

How reproducible: Always


Steps to Reproduce:
1. Install PackageKit, but remove (or not install) polkit
2. sudo pkcon refresh

Actual results: Fails with

Fatal error: Failed to check for authentication: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable

(it's trying to talk to polkit)

Expected results: Operation works as root. It's acceptable to fail as user and not ask for auth if polkit is not installed.

-----

RHEL 9 is affected:

# rpm -qf /usr/bin/pkcon 
PackageKit-1.2.3-2.el9.x86_64
# rpm -q polkit
package polkit is not installed
# pkcon refresh
Refreshing cache              [=========================]         
Finished                      [=========================]         
Fatal error: Failed to check for authentication: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable

This triggeres failure in /CoreOS/dnf/Sanity/integration-with-modularity-unaware-tools gating tests:

:: [ 14:51:38 ] :: [  BEGIN   ] :: Running 'pkcon -y -v --allow-untrusted install TestA TestB TestC TestD'
14:51:38	PackageKit	Verbose debugging enabled (on console 0)
[...]
Results:
Fatal error: Failed to check for authentication: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable
:: [ 14:51:38 ] :: [   FAIL   ] :: Command 'pkcon -y -v --allow-untrusted install TestA TestB TestC TestD' (Expected 0, got 7)

Comment 6 Richard Hughes 2022-05-23 15:52:27 UTC
You want PK to not use polkit when the caller is root, or you want PackageKit to depend on polkit? The latter is easier.

Comment 7 Petr Pisar 2022-05-23 16:05:15 UTC
Either is acceptable for me.

Comment 9 RHEL Program Management 2022-11-05 07:27:39 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.