Bug 2172288 - dnf history undo fails with " - libpq-13.5-1.el8.i686 has inferior architecture"
Summary: dnf history undo fails with " - libpq-13.5-1.el8.i686 has inferior architect...
Keywords:
Status: VERIFIED
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: libsolv
Version: 8.7
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: rc
: ---
Assignee: amatej
QA Contact: swm-qe
URL:
Whiteboard:
Depends On:
Blocks: 2172292
TreeView+ depends on / blocked
 
Reported: 2023-02-21 21:06 UTC by jcastran
Modified: 2023-06-30 11:08 UTC (History)
5 users (show)

Fixed In Version: libsolv-0.7.20-6.el8
Doc Type: No Doc Update
Doc Text:
Clone Of:
: 2172292 (view as bug list)
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-149593 0 None None None 2023-02-21 21:07:35 UTC

Description jcastran 2023-02-21 21:06:31 UTC
Description of problem:
When the .i686 arch of a multilib package is installed first, you can not undo the later transaction which installed the .x86_64 variant.


Version-Release number of selected component (if applicable):
[root@r8 repo]# rpm -q dnf libsolv
dnf-4.7.0-11.el8.noarch
libsolv-0.7.20-4.el8_7.x86_64

How reproducible:
Everytime

Steps to Reproduce:
1. Do not have libpq installed
2. # yum -y install libpq.i686
3. # yum -y install libpq
4. # yum history undo last      ##This should undo the libpq.x86_64 transaction

Actual results:
Error:
 Problem: problem with installed package libpq-13.5-1.el8.i686
  - libpq-13.5-1.el8.i686 has inferior architecture
  - conflicting requests
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)


Expected results:
Since we could install libpq.i686 without .x86_64 in the first place, theres no reason we can't undo the transaction with .x86_64 in it.

Additional info:

Comment 1 Evan Goode 2023-02-27 13:51:29 UTC
Note: I needed to change step 3 to:
3. # yum -y install libpq.x86_64
to reproduce on Fedora 37.

Comment 4 Jaroslav Mracek 2023-03-21 13:51:52 UTC
I've created an issue on libsolv (https://github.com/openSUSE/libsolv/issues/525). The issue contains reproducer using libsolv testcase.


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