Translated message

A translation of this page exists in English.

コンテナーでの DNF インストールの失敗: RHEL システムでの不明なリポジトリーエラー

Solution In Progress - Updated -

Issue

  • RHEL システムでのコンテナービルド中に、以下の dnf コマンドを使用して RHEL リポジトリーからパッケージをインストールします。
dnf install --enablerepo=rhel-8-for-x86_64-appstream-rpms \
  --installroot=$mnt --nodocs --setopt=install_weak_deps=false \
  --setopt=reposdir=/etc/yum.repos.d <pkg>
  • リポジトリーがホスト上で使用可能であるにもかかわらず、以下のエラーが発生して失敗します。
Updating Subscription Management repositories.
Unable to read consumer identity
subscription-manager is operating in container mode.
Error: Unknown repo: 'rhel-8-for-x86_64-appstream-rpms'

Environment

  • RHEL 8.0
  • buildah コンテナー内でのコンテナーイメージのビルド

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