Bug 2232166 - Unable to install epel release rpm on RHEL UBI 9 micro container
Summary: Unable to install epel release rpm on RHEL UBI 9 micro container
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: epel-release
Version: epel9
Hardware: noarch
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Kevin Fenzi
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-08-15 16:28 UTC by jeremy.hamilton
Modified: 2023-08-15 16:49 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-08-15 16:40:29 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description jeremy.hamilton 2023-08-15 16:28:56 UTC
Description of problem:
Currently unable to install the epel release rpm onto a micro container due to conflicting packages between epel and fedora-release

Version-Release number of selected component (if applicable):
epel 9 and fedora-release-38

How reproducible:
I have tried in both aarch64 and amd64 environments with the same error.

Steps to Reproduce:
curl -o epel-release.rpm https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
container=$(buildah from registry.access.redhat.com/ubi9/ubi-micro:9.2-13)
mount=$(buildah mount $container)
dnf install --installroot $mount --nodocs -y epel-release.rpm


Actual results:
Fedora 38 - x86_64                              6.9 MB/s |  83 MB     00:12    
Fedora 38 openh264 (From Cisco) - x86_64        2.5 kB/s | 2.5 kB     00:01    
Fedora 38 - x86_64 - Updates                     14 MB/s |  30 MB     00:02    
Red Hat Universal Base Image 9 (RPMs) - BaseOS  718 kB/s | 581 kB     00:00    
Red Hat Universal Base Image 9 (RPMs) - AppStre 1.9 MB/s | 1.7 MB     00:00    
Red Hat Universal Base Image 9 (RPMs) - CodeRea 282 kB/s | 198 kB     00:00    
Error: 
 Problem: problem with installed package fedora-release-38-36.noarch
  - package epel-release-9-5.el9.noarch from @commandline conflicts with fedora-release provided by fedora-release-38-36.noarch from @System
  - package epel-release-9-5.el9.noarch from @commandline conflicts with fedora-release provided by fedora-release-38-34.noarch from fedora
  - package epel-release-9-5.el9.noarch from @commandline conflicts with fedora-release provided by fedora-release-38-36.noarch from updates
  - conflicting requests
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages)

Expected results:
Successful install

Additional info:

Comment 1 Troy Dawson 2023-08-15 16:40:29 UTC
This is a feature, not a bug.
epel-release is only for enterprise linux, not fedora
epel-release conflicts with fedora-release to prevent people from accidentally doing bad things to their system.

Although you are running, what started out as a UBI container, you clearly are putting Fedora on it, or, at the very least, the Fedora repo's.

You might know what you are doing, and that is fine.  But we won't change epel-release to accommodate you, because it might hurt other users.

Comment 2 jeremy.hamilton 2023-08-15 16:49:12 UTC
Thanks Troy. Removing the Fedora release repo now. Classic case of figuring this out as soon as I filed the bug.


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