【发布时间】:2015-10-08 13:04:23
【问题描述】:
主机已在 Redhat 注册,当我尝试 yum install 时显示
没有启用的存储库
如何启用存储库。
有类似的问题here 没有答案。
[root@# yum install pdksh.x86_64
Loaded plugins: langpacks, product-id, subscription-manager
This system is registered to Red Hat Subscription Management, but is not receiving updates. You can use subscription-manager to assign subscriptions.
There are no enabled repos.
Run "yum repolist all" to see the repos you have.
You can enable repos with yum-config-manager --enable <repo>
【问题讨论】:
-
yum repolist all输出是什么? -
[]# yum repolist all 已加载插件:langpacks、product-id、subscription-manager 该系统已注册到 Red Hat 订阅管理,但未接收更新。您可以使用订阅管理器来分配订阅。重播:0
-
你在 repo 文件中设置了 enabled=1 吗?并提供“yum repolist all”和“yum list”的输出。
-
[root@l yum.repos.d]# pwd /etc/yum.repos.d
-
[root@yum.repos.d]# cat redhat.repo # # Certificate-Based Repositories # Managed by (rhsm) subscription-manager # # *** 此文件是自动生成的。此处所做的更改将被覆盖。 *** # *** 如果您想进行更改,请使用“subscription-manager repo-override --help”。 *** # # 如果此文件为空且已订阅此系统,请考虑 # 使用“yum repolist”来刷新可用的 repos