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 1995630 - yum tries to install packages with incompatible architecture when multilib_policy=all
Summary: yum tries to install packages with incompatible architecture when multilib_po...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: yum
Version: 8.5
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: beta
: ---
Assignee: Jaroslav Mracek
QA Contact: Martin Banas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-08-19 14:11 UTC by Jan Stodola
Modified: 2022-05-10 16:41 UTC (History)
3 users (show)

Fixed In Version: dnf-4.7.0-5.el8
Doc Type: No Doc Update
Doc Text:
Clone Of:
: 1996681 (view as bug list)
Environment:
Last Closed: 2022-05-10 15:23:43 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-94106 0 None None None 2021-08-19 14:13:41 UTC
Red Hat Product Errata RHBA-2022:2051 0 None None None 2022-05-10 15:23:48 UTC

Description Jan Stodola 2021-08-19 14:11:16 UTC
Description of problem:
When multilib_policy=all is specified in yum.conf, yum tries to install even packages with incompatible architecture and fails.

Version-Release number of selected component (if applicable):
yum-4.7.0-2.el8

How reproducible:
always

Steps to Reproduce:
1. create a repository containing a package for multiple architectures, where at least one is not compatible with the running system, for example x86_64, i686 and aarch64
2. create a repo file for the new repository
3. echo multilib_policy=all >> /etc/yum.conf
4. yum install $multilib_package

Actual results:

# yum install zsh
Failed to set locale, defaulting to C.UTF-8
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered with an entitlement server. You can use subscription-manager to register.

Last metadata expiration check: 0:08:51 ago on Thu Aug 19 09:53:59 2021.
Error: 
 Problem: conflicting requests
  - package zsh-5.5.1-8.el8.aarch64 does not have a compatible architecture
  - nothing provides libdl.so.2(GLIBC_2.17)(64bit) needed by zsh-5.5.1-8.el8.aarch64
  - nothing provides libm.so.6(GLIBC_2.17)(64bit) needed by zsh-5.5.1-8.el8.aarch64
  - nothing provides ld-linux-aarch64.so.1()(64bit) needed by zsh-5.5.1-8.el8.aarch64
  - nothing provides ld-linux-aarch64.so.1(GLIBC_2.17)(64bit) needed by zsh-5.5.1-8.el8.aarch64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
# uname -m
x86_64
#

Expected results:
As written in man yum.conf, only packages with compatible architectures are installed:

multilib_policy
Controls how multilib packages are treated during install operations. Can  either  be  "best"  (the
default)  for the depsolver to prefer packages which best match the system's architecture, or "all"
to install all available packages with compatible architectures.

Additional info:
The same problem exists on RHEL-9 with yum-4.7.0-2.el9

Comment 1 Jan Stodola 2021-08-23 13:11:40 UTC
RHEL-9 clone: bug 1996681

Comment 2 Jaroslav Mracek 2021-09-06 10:45:08 UTC
I created PR that improves documentation https://github.com/rpm-software-management/dnf/pull/1789.

AC: It is only the man page change therefore no tests are required.

Comment 9 errata-xmlrpc 2022-05-10 15:23:43 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (dnf bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:2051


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