ホストを Satellite Server に登録した後、リポジトリーが有効化されず Error:There are no enabled repositories in "/etc/yum.repos.d" が表示される
Issue
-
登録テンプレートの curl コマンドを使用してコンテンツホストを Satellite に登録する際に、以下のメッセージが表示される場合があります。
Error: There are no enabled repositories in "/etc/yum.repos.d", "/etc/yum/repos.d", "/etc/distro.repos.d". Host [root@host] initial configuration failed Description Getting below error when we are adding new Red Hat server to satellite server Error: There are no enabled repositories in "/etc/yum.repos.d", "/etc/yum/repos.d", "/etc/distro.repos.d".
[root@host /]# dnf_-C_repolist_--verbose Error: Cache-only enabled but no cache for 'rhel-9-for-x86_64-appstream-rpms'
-
アクティベーションキーを使用して登録しようとすると、/etc/rhsm/rhsm.conf ファイルが変更され、サブスクライブされているように表示されることがあります。しかし、リポジトリーの有効化は失敗します。
[root@server.example.com ~]# subscription-manager register --org="Example" --activationkey="RHEL-9-EXAMPLE" The system has been registered with ID: 12345-xxxx-xxxx-xxxxxxx The registered system name is: server.example.com [root@server.example.com ~]# subscription-manager repos --enable rhel-9-for-x86_64-baseos-rpms --enable rhel-9- for-x86_64-appstream-rpms This system has no repositories available through subscriptions.
Environment
- Red Hat Satellite 6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.