In RHEL9 ,yum/dnf install flatpak fails with the below error.
Error: Problem: problem with installed package selinux-policy-targeted-38.1.35-2.el9_4.noarch - package flatpak-1.12.9-1.el9_4.x86_64 from rhel-9-for-x86_64-appstream-rpms requires (flatpak-selinux = 1.12.9-1.el9_4 if selinux-policy-targeted), but none of the providers can be installed - cannot install the best candidate for the job - nothing provides selinux-policy >= 38.1.35-2.el9_4.2 needed by flatpak-selinux-1.12.9-1.el9_4.noarch from rhel-9-for-x86_64-appstream-rpms - nothing provides selinux-policy-base >= 38.1.35-2.el9_4.2 needed by flatpak-selinux-1.12.9-1.el9_4.noarch from rhel-9-for-x86_64-appstream-rpms (try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
Reproducer Steps:
- On RHEL9.4 system fetching update form CDn/Satellite try to install 'flatpak '
- The latest `flatpak-1.12.9-1.el9_4.x86_64` has broken dependencies.
Diagnostics:
The latest flatpak-1.12.9-1.el9_4.x86_64 needs flatpak-selinux = 1.12.9-1.el9_4
#rpm -qpR flatpak-1.12.9-1.el9_4.x86_64.rpm |grep selin
(flatpak-selinux = 1.12.9-1.el9_4 if selinux-policy-targeted)
// flatpak-selinux = 1.12.9-1.el9_4 needs selinux-policy >= 38.1.35-2.el9_4.2 which is not available #rpm -qpR flatpak-selinux-1.12.9-1.el9_4.noarch.rpm /bin/sh /bin/sh libselinux-utils policycoreutils policycoreutils-python-utils rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(PayloadIsZstd) <= 5.4.18-1 selinux-policy >= 38.1.35-2.el9_4.2 <<<< selinux-policy-base >= 38.1.35-2.el9_4.2 // selinux-policy >= 38.1.35-2.el9_4.2 is not available #yum list selinux-policy --showduplicates Updating Subscription Management repositories. Last metadata expiration check: 0:15:46 ago on Tue 18 Jun 2024 12:05:46 AM IST. Installed Packages selinux-policy.noarch 38.1.35-2.el9_4 @rhel-9-for-x86_64-baseos-rpms Available Packages selinux-policy.noarch 34.1.29-1.el9_0 rhel-9-for-x86_64-baseos-rpms selinux-policy.noarch 34.1.29-1.el9_0.2 rhel-9-for-x86_64-baseos-rpms selinux-policy.noarch 34.1.43-1.el9 rhel-9-for-x86_64-baseos-rpms selinux-policy.noarch 34.1.43-1.el9_1.1 rhel-9-for-x86_64-baseos-rpms selinux-policy.noarch 34.1.43-1.el9_1.2 rhel-9-for-x86_64-baseos-rpms selinux-policy.noarch 38.1.11-2.el9_2 rhel-9-for-x86_64-baseos-rpms selinux-policy.noarch 38.1.11-2.el9_2.2 rhel-9-for-x86_64-baseos-rpms selinux-policy.noarch 38.1.11-2.el9_2.3 rhel-9-for-x86_64-baseos-rpms selinux-policy.noarch 38.1.11-2.el9_2.4 rhel-9-for-x86_64-baseos-rpms selinux-policy.noarch 38.1.23-1.el9 rhel-9-for-x86_64-baseos-rpms selinux-policy.noarch 38.1.23-1.el9_3.1 rhel-9-for-x86_64-baseos-rpms selinux-policy.noarch 38.1.23-1.el9_3.2 rhel-9-for-x86_64-baseos-rpms selinux-policy.noarch 38.1.35-2.el9_4 rhel-9-for-x86_64-baseos-rpms