UBI8 images are unable to update packages to UBI8.4, or install new packages as of 2021-05-21

Solution Verified - Updated -

Issue

  • When using Red Hat Universal Base Images, specifically ubi8 images such as ubi8, ubi8/nodejs, and other images with ubi8 as a base, attempting to perform yum update from within the container shows an error:
$ podman run -it --user 0 registry.redhat.io/ubi8/nodejs-14:latest bash
bash-4.4# yum update -y
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

Red Hat Universal Base Image 8 (RPMs) - BaseOS                                                            544 kB/s | 786 kB     00:01
Red Hat Universal Base Image 8 (RPMs) - AppStream                                                          12 MB/s | 7.4 MB     00:00
Red Hat Universal Base Image 8 (RPMs) - CodeReady Builder                                                  54 kB/s |  15 kB     00:00
Error:
 Problem 1: package perl-threads-1:2.21-2.el8.x86_64 requires libperl.so.5.26()(64bit), but none of the providers can be installed
  - cannot install both perl-libs-4:5.30.1-451.module+el8.3.0+6961+31ca2e7a.x86_64 and perl-libs-4:5.26.3-419.el8.x86_64
  - cannot install the best update candidate for package perl-threads-1:2.21-2.el8.x86_64
  - cannot install the best update candidate for package perl-libs-4:5.26.3-419.el8.x86_64
 Problem 2: package perl-threads-shared-1.58-2.el8.x86_64 requires libperl.so.5.26()(64bit), but none of the providers can be installed
  - cannot install both perl-libs-4:5.30.1-451.module+el8.3.0+6961+31ca2e7a.x86_64 and perl-libs-4:5.26.3-419.el8.x86_64
  - package perl-Errno-1.30-451.module+el8.3.0+6961+31ca2e7a.x86_64 requires perl(:MODULE_COMPAT_5.30.1), but none of the providers can be installed
  - cannot install the best update candidate for package perl-threads-shared-1.58-2.el8.x86_64
  - cannot install the best update candidate for package perl-Errno-1.28-419.el8.x86_64
  - package perl-libs-4:5.30.1-452.module+el8.4.0+8990+01326e37.x86_64 is filtered out by modular filtering
 Problem 3: package perl-Unicode-Normalize-1.25-396.el8.x86_64 requires libperl.so.5.26()(64bit), but none of the providers can be installed
  - cannot install both perl-libs-4:5.30.1-451.module+el8.3.0+6961+31ca2e7a.x86_64 and perl-libs-4:5.26.3-419.el8.x86_64
  - package perl-IO-1.40-451.module+el8.3.0+6961+31ca2e7a.x86_64 requires perl(:MODULE_COMPAT_5.30.1), but none of the providers can be installed
  - package perl-IO-1.40-451.module+el8.3.0+6961+31ca2e7a.x86_64 requires libperl.so.5.30()(64bit), but none of the providers can be installed
  - cannot install the best update candidate for package perl-Unicode-Normalize-1.25-396.el8.x86_64
  - cannot install the best update candidate for package perl-IO-1.38-419.el8.x86_64
  - package perl-libs-4:5.30.1-452.module+el8.4.0+8990+01326e37.x86_64 is filtered out by modular filtering
 Problem 4: package perl-Storable-1:3.11-3.el8.x86_64 requires libperl.so.5.26()(64bit), but none of the providers can be installed
  - cannot install both perl-libs-4:5.30.1-451.module+el8.3.0+6961+31ca2e7a.x86_64 and perl-libs-4:5.26.3-419.el8.x86_64
  - package perl-interpreter-4:5.30.1-451.module+el8.3.0+6961+31ca2e7a.x86_64 requires perl(:MODULE_COMPAT_5.30.1), but none of the providers can be installed
  - package perl-interpreter-4:5.30.1-451.module+el8.3.0+6961+31ca2e7a.x86_64 requires libperl.so.5.30()(64bit), but none of the providers can be installed
  - cannot install the best update candidate for package perl-interpreter-4:5.26.3-419.el8.x86_64
  - cannot install the best update candidate for package perl-Storable-1:3.11-3.el8.x86_64
  - package perl-libs-4:5.30.1-452.module+el8.4.0+8990+01326e37.x86_64 is filtered out by modular filtering
 Problem 5: package perl-Socket-4:2.027-3.el8.x86_64 requires libperl.so.5.26()(64bit), but none of the providers can be installed
  - cannot install both perl-libs-4:5.30.1-451.module+el8.3.0+6961+31ca2e7a.x86_64 and perl-libs-4:5.26.3-419.el8.x86_64
  - package perl-macros-4:5.30.1-451.module+el8.3.0+6961+31ca2e7a.x86_64 requires perl(:MODULE_COMPAT_5.30.1), but none of the providers can be installed
  - cannot install the best update candidate for package perl-macros-4:5.26.3-419.el8.x86_64
  - cannot install the best update candidate for package perl-Socket-4:2.027-3.el8.x86_64
  - package perl-libs-4:5.30.1-452.module+el8.4.0+8990+01326e37.x86_64 is filtered out by modular filtering
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
  • This may happen in the context of docker, podman, buildah, skopeo, or OpenShift, including but not limited to container image builds.

Environment

  • Red Hat Universal Base Image 8.4 and subsequent related images

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content