Translated message

A translation of this page exists in English.

subscription-manager 在启用仓库时会抛出 'Repositories disabled by configuration'

Solution In Progress - Updated -

Issue

  • 无法使用 subscription-manager 命令启用仓库。
  • subscription-manager 显示 Repositories disabled by configuration
  • 无法使用 subscription-manager 命令管理仓库。
  • 在刷新 yum 后 /etc/yum.repos.d/redhat.repo 文件没有被更新。
  • 无法安装任何软件包,yum 失败并显示以下错误:

    Updating Subscription Management repositories.
    Error: There are no enabled repositories in "/etc/yum.repos.d", "/etc/yum/repos.d", "/etc/distro.repos.d".
    

Environment

  • Red Hat Enterprise Linux

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