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 - missing polkit dependency: Failed to check for authentication: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable
Summary: missing polkit dependency: Failed to check for authentication: GDBus.Error:or...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: PackageKit
Version: 9.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: beta
: ---
Assignee: Richard Hughes
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-05-05 15:13 UTC by Petr Pisar
Modified: 2022-11-05 07:27 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1800468
Environment:
Last Closed: 2022-11-05 07:27:39 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.