Bug 2019313 - pkcon show package as 'Available' although it is installed
Summary: pkcon show package as 'Available' although it is installed
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: PackageKit
Version: 9.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Richard Hughes
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-11-02 08:12 UTC by Sumit Bose
Modified: 2023-05-02 07:28 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-05-02 07:28:19 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-101462 0 None None None 2021-11-02 08:13:00 UTC

Description Sumit Bose 2021-11-02 08:12:15 UTC
Description of problem:
rpm show that both oddjob and oddjob-mkhomedir are installed:

# rpm -qa  |grep -i oddjob
oddjob-0.34.7-4.el9.x86_64
oddjob-mkhomedir-0.34.7-4.el9.x86_64

but pkcon shows:

# pkcon search name oddjob
Searching by name             [=========================]         
Finished                      [=========================]         
Available   	oddjob-0.34.7-4.el9.x86_64 (rhel-AppStream)                 	A D-Bus service which runs odd jobs on behalf of client applications
Installed   	oddjob-mkhomedir-0.34.7-4.el9.x86_64 (installed:AppStream)  	An oddjob helper which creates and populates home directories


We found this while testing the realmd feature to install missing components with the help of PackageKit. Since the 'oddjob' package is reported as not installed realmd asks PackageKit to install it but this fails since the package is already installed:

Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]: holding daemon: current-invocation
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]:  * Couldn't find file: /usr/sbin/winbindd
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]:  * Couldn't find file: /usr/sbin/winbindd
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]:  * Required files: /usr/sbin/oddjobd, /usr/libexec/oddjob/mkhomedir, /usr/sbin/winbindd, /usr/bin/wbinfo, /usr/bin/net
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]:  * Required files: /usr/sbin/oddjobd, /usr/libexec/oddjob/mkhomedir, /usr/sbin/winbindd, /usr/bin/wbinfo, /usr/bin/net
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]:  * Resolving required packages
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]:  * Resolving required packages
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]: packages: CreateTransaction call
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]: packages: SetHints call
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]: packages: call Resolve (327680, ['oddjob', 'oddjob-mkhomedir', 'samba-winbind', 'samba-winbind-clients', 'samba-common-tools'])
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]: packages: call Resolve completed
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]: packages: signal: Package (1, 'oddjob-mkhomedir;0.34.7-4.el9;x86_64;installed:AppStream', 'An oddjob helper which creates and populates home directories')
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]: packages: signal: Package (1, 'samba-common-tools;4.14.5-102.el9;x86_64;installed:@System', 'Tools for Samba servers and clients')
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]: packages: signal: Package (2, 'samba-winbind;4.14.5-102.el9;x86_64;rhel', 'Samba winbind')
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]: packages: signal: Package (2, 'oddjob;0.34.7-4.el9;x86_64;rhel-AppStream', 'A D-Bus service which runs odd jobs on behalf of client applications')
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]: packages: signal: Package (2, 'samba-winbind-clients;4.14.5-102.el9;x86_64;rhel-AppStream', 'Samba winbind clients')
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe PackageKit[8655]: resolve transaction /11_caccbace from uid 0 finished with success after 5ms
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]: packages: signal: Finished (1, 5)
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]:  * Installing necessary packages: oddjob samba-winbind samba-winbind-clients
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]:  * Installing necessary packages: oddjob samba-winbind samba-winbind-clients
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]: packages: CreateTransaction call
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]: packages: freeing transtaction
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]: packages: SetHints call
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]: packages: call InstallPackages (1, ['oddjob;0.34.7-4.el9;x86_64;rhel-AppStream', 'samba-winbind;4.14.5-102.el9;x86_64;rhel', 'samba-winbind-clients;4.14.5-102.el9;x86_64;rhel-AppStream'])
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe PackageKit[8655]: uid 0 is trying to obtain org.freedesktop.packagekit.package-install-untrusted auth (only_trusted:0)
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]: packages: call InstallPackages completed
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe PackageKit[8655]: new install-packages transaction /12_baccceca scheduled from uid 0
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe PackageKit[8655]: uid 0 obtained auth for org.freedesktop.packagekit.package-install-untrusted
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe PackageKit[8655]: install-packages transaction /12_baccceca from uid 0 finished with failed after 7ms
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]: packages: signal: ErrorCode (9, 'oddjob-0.34.7-4.el9.x86_64 is already installed')
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]: packages: signal: Finished (2, 7)
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]:  ! oddjob-0.34.7-4.el9.x86_64 is already installed
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]:  ! oddjob-0.34.7-4.el9.x86_64 is already installed
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]: released daemon: current-invocation
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]: packages: freeing transtaction
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]: client gone away: :1.99
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]: released daemon: :1.99





Version-Release number of selected component (if applicable):
PackageKit-1.2.4-2.el9.x86_64

Comment 2 RHEL Program Management 2023-05-02 07:28:19 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.