Default repositories are missing or empty in the RHEL beta UBI

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux (RHEL) 9 Beta UBI
  • Red Hat Enterprise Linux (RHEL) 10 Public Beta UBI

Issue

  • Unable to install or update packages via dnf.
  • dnf commands fail with "No repositories available" or "There are no enabled repositories in ...".
  • The file /etc/yum.repos.d/ubi.repo is empty.

Resolution

  • In order to gain access to the RHEL beta repositories a valid subscription is required. The UBI repositories are populated upon the GA of their corresponding major release.
  • A "Red Hat Enterprise Linux Developer Subscription for Individuals" subscription is available at no-cost.
  • More information is available in the FAQ.

Root Cause

  • For RHEL beta UBI, updating or installing new packages in the image requires that you are running on an entitled host. You can use the Red Hat Enterprise Linux Developer Subscription for Individuals to gain access to entitled repositories at no-cost.

Diagnostic Steps

  • During a major release Public Beta, the UBI repositories may seem available, but installing packages is not possible

  • The command dnf repolist fails to list any repositories:

    [root@host ~]# podman run -it --rm ubi9-beta/ubi dnf repolist
    Updating Subscription Management repositories.
    Unable to read consumer identity
    Subscription Manager is operating in container mode.
    
    This system is not registered with an entitlement server. You can use subscription-manager to register.
    
    No repositories available
    
  • The file /etc/yum.repos.d/ubi.repo is empty:

    [root@host ~]# podman run -it --rm ubi9-beta/ubi cat /etc/yum.repos.d/ubi.repo
    
    [root@host ~]#
    
  • Component
  • UBI

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments