Bug 2179409

Summary: Adding RepoID to the packages involved in dependency error RHEL 8-DNF.
Product: Red Hat Enterprise Linux 8 Reporter: Sagar Navale <snavale>
Component: libdnfAssignee: Jaroslav Mracek <jmracek>
Status: CLOSED ERRATA QA Contact: Tomáš Bajer <tbajer>
Severity: high Docs Contact:
Priority: unspecified    
Version: 8.7CC: james.antill, jcastran, mbanas, nsella, tbajer
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: libdnf-0.63.0-15.el8 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-11-14 15:49:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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