Installing leapp-upgrade on RHEL 7.9 fails with 'Error: Package: audit-libs-python-2.8.5-4.el7.x86_64 (rhel-7-server-rpms)
Environment
- Red Hat Enterprise Linux 7.9
- leapp
Issue
-
While attempting to install the
leapp-upgradepackage on a RHEL 7.9 system to perform an in-place upgrade to RHEL 8.10, the following dependency error occurs:Error: Package: audit-libs-python-2.8.5-4.el7.x86_64 (rhel-7-server-rpms) Requires: audit-libs(x86-64) = 2.8.5-4.el7 Installed: audit-libs-2.8.5-4.el7_9.1.x86_64 (@rhel-7-server-els-rpms) audit-libs(x86-64) = 2.8.5-4.el7_9.1
Resolution
- To resolve this issue:
-
Renew or reactivate the
Extended Lifecycle Support(ELS) subscription for RHEL 7.9. For more information refer Red Hat Enterprise Linux 7 Extended Lifecycle Support Maintenance Policy -
Enable the
rhel-7-server-els-rpmsrepository:# subscription-manager repos --enable=rhel-7-server-els-rpms -
Install the
leapp-upgradepackage again:# yum install leapp-upgrade -yThe ELS repository will provide compatible versions of
audit-libsandaudit-libs-python, resolving the dependency conflict.
Root Cause
-
The
audit-libspackage currently installed on the system originates from the ELS repository (rhel-7-server-els-rpms), providing versionaudit-libs-2.8.5-4.el7_9.1, which is newer than the version available in the standard RHEL 7 repositories (2.8.5-4.el7). -
When the ELS subscription expires or the ELS repository is disabled,
yumattempts to resolve dependencies using only the standard repositories. This leads to a version mismatch betweenaudit-libsandaudit-libs-python, causing dependency conflicts during theleapp-upgradepackage installation.
Diagnostic Steps
-
Check current audit packages:
# rpm -qa | grep audit
Example output:
audit-2.8.5-4.el7_9.1.x86_64
audit-libs-2.8.5-4.el7_9.1.x86_64
-
Verify available repositories:
# yum repolist -
Confirm ELS repository availability:
# subscription-manager repos --list | grep -i rhel-7-server-els-rpms -
Attempt installation and review dependency error:
# yum install leapp-upgrade -y
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.