【问题标题】:RH 7.1 Linux, yum install issueRH 7.1 Linux,yum 安装问题
【发布时间】: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

标签: linux package yum rhel7


【解决方案1】:

要解决您的订阅相关问题,请按照此操作。

https://access.redhat.com/solutions/253273

关于您的 pdksh 安装,Pdksh 是一个开源版本,具有许多 ksh'88 shell 功能,仅适用于商业 Linux 系统并获得 AT&T 许可。从 RHEL 6 开始,pdksh 已被弃用。如果您需要 Korn shell,请使用标准的公共域 ksh (ksh'93)

yum install ksh

希望对你有帮助

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-04-01
    • 1970-01-01
    • 1970-01-01
    • 2012-02-03
    • 1970-01-01
    • 2017-02-17
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多