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 2179409 - Adding RepoID to the packages involved in dependency error RHEL 8-DNF.
Summary: Adding RepoID to the packages involved in dependency error RHEL 8-DNF.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: libdnf
Version: 8.7
Hardware: Unspecified
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Jaroslav Mracek
QA Contact: Tomáš Bajer
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-03-17 17:39 UTC by Sagar Navale
Modified: 2023-11-14 18:06 UTC (History)
5 users (show)

Fixed In Version: libdnf-0.63.0-15.el8
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-11-14 15:49:52 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 2179413 0 unspecified CLOSED Adding RepoID to the packages involved in dependency error RHEL 9-DNF. 2023-11-07 11:35:56 UTC
Red Hat Issue Tracker RHELPLAN-152228 0 None None None 2023-03-17 17:42:32 UTC
Red Hat Product Errata RHBA-2023:7126 0 None None None 2023-11-14 15:49:56 UTC

Internal Links: 2179413

Description Sagar Navale 2023-03-17 17:39:35 UTC
Description of problem:
Adding repository name to the packages involved in dependency error.

Version-Release number of selected component (if applicable):
dnf

How reproducible:

Any dnf transaction that triggers a dependency error 

Example:- 
~~~
Error:
 Problem 1: package libblockdev-2.24-2.el8_3.x86_64 requires libblockdev-utils(x86-64) = 2.24-2.el8_3, but none of the providers can be installed
  - cannot install both libblockdev-utils-2.24-2.el8_3.x86_64 and libblockdev-utils-2.24-8.el8.x86_64
  - cannot install the best update candidate for package libblockdev-2.24-1.el8.x86_64
  - problem with installed package libblockdev-utils-2.24-8.el8.x86_64
 Problem 2: cannot install both libblockdev-utils-2.24-2.el8_3.x86_64 and libblockdev-utils-2.24-8.el8.x86_64
  - package libblockdev-crypto-2.24-2.el8_3.x86_64 requires libblockdev-utils(x86-64) = 2.24-2.el8_3, but none of the providers can be installed
  - cannot install the best update candidate for package libblockdev-utils-2.24-8.el8.x86_64
  - cannot install the best update candidate for package libblockdev-crypto-2.24-1.el8.x86_64
 Problem 3: cannot install both libblockdev-utils-2.24-2.el8_3.x86_64 and libblockdev-utils-2.24-8.el8.x86_64
  - package libblockdev-mdraid-2.24-2.el8_3.x86_64 requires libblockdev-utils(x86-64) = 2.24-2.el8_3, but none of the providers can be installed
  - package libblockdev-fs-2.24-8.el8.x86_64 requires libblockdev-utils(x86-64) = 2.24-8.el8, but none of the providers can be installed
  - cannot install the best update candidate for package libblockdev-mdraid-2.24-1.el8.x86_64
  - problem with installed package libblockdev-fs-2.24-8.el8.x86_64
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use 
~~~

Steps to Reproduce:
1. Trigger any `dnf` transaction that causes a dependency issue.
2.
3.

Actual results:


Error:
 Problem 1: package libblockdev-2.24-2.el8_3.x86_64 requires libblockdev-utils(x86-64) = 2.24-2.el8_3, but none of the providers can be installed
  - cannot install both libblockdev-utils-2.24-2.el8_3.x86_64 and libblockdev-utils-2.24-8.el8.x86_64
  - cannot install the best update candidate for package libblockdev-2.24-1.el8.x86_64
  - problem with installed package libblockdev-utils-2.24-8.el8.x86_64
 Problem 2: cannot install both libblockdev-utils-2.24-2.el8_3.x86_64 and libblockdev-utils-2.24-8.el8.x86_64
  - package libblockdev-crypto-2.24-2.el8_3.x86_64 requires libblockdev-utils(x86-64) = 2.24-2.el8_3, but none of the providers can be installed
  - cannot install the best update candidate for package libblockdev-utils-2.24-8.el8.x86_64
  - cannot install the best update candidate for package libblockdev-crypto-2.24-1.el8.x86_64
 Problem 3: cannot install both libblockdev-utils-2.24-2.el8_3.x86_64 and libblockdev-utils-2.24-8.el8.x86_64
  - package libblockdev-mdraid-2.24-2.el8_3.x86_64 requires libblockdev-utils(x86-64) = 2.24-2.el8_3, but none of the providers can be installed
  - package libblockdev-fs-2.24-8.el8.x86_64 requires libblockdev-utils(x86-64) = 2.24-8.el8, but none of the providers can be installed
  - cannot install the best update candidate for package libblockdev-mdraid-2.24-1.el8.x86_64
  - problem with installed package libblockdev-fs-2.24-8.el8.x86_64
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use 

Expected results:
The packages in the `problem` section shall include the `repository` name beside them

Additional info:

Comment 1 Jaroslav Mracek 2023-03-28 14:29:20 UTC
I have a patch that enhance error messages: https://github.com/rpm-software-management/libdnf/pull/1596

Comment 10 errata-xmlrpc 2023-11-14 15:49:52 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 (libdnf 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-2023:7126


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