yum 无法在 EC2 Red Hat 实例上运行:无法检索存储库元数据

yum 无法在 EC2 Red Hat 实例上运行:无法检索存储库元数据

由于某种原因,yum 在我的位于欧盟西部地区的 Amazon EC2 实例中停止工作。repo 元数据的路径似乎有问题,这是正确的吗?我将非常感激任何帮助,因为我在这方面的经验有限。

cat /etc/redhat-release:

Red Hat Enterprise Linux Server release 6.2 (Santiago)

yum 重新排序:

Loaded plugins: amazon-id, rhui-lb, security
https://rhui2-cds01.eu-west-1.aws.ce.redhat.com/pulp/repos//rhui-client-config/rhel/server/6/x86_64/os/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 401"
Trying other mirror.
https://rhui2-cds02.eu-west-1.aws.ce.redhat.com/pulp/repos//rhui-client-config/rhel/server/6/x86_64/os/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 401"
Trying other mirror.
repo id                                                                     repo name                                                                                       status
rhui-eu-west-1-client-config-server-6                                       Red Hat Update Infrastructure 2.0 Client Configuration Server 6                                 0
rhui-eu-west-1-rhel-server-releases                                         Red Hat Enterprise Linux Server 6 (RPMs)                                                        0
rhui-eu-west-1-rhel-server-releases-optional                                Red Hat Enterprise Linux Server 6 Optional (RPMs)                                               0
repolist: 0

yum 更新:(由于 ServerFault 对新用户的限制,我需要删除下面的基本 URL)

Loaded plugins: amazon-id, rhui-lb, security
[same as base url 1 above]/pulp/repos//rhui-client-config/rhel/server/6/x86_64/os/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 401"
Trying other mirror.
[same as base url 2 above]/pulp/repos//rhui-client-config/rhel/server/6/x86_64/os/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 401"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: rhui-eu-west-1-client-config-server-6. Please verify its path and try again

答案1

看看这个https://forums.aws.amazon.com/message.jspa?messageID=389303

看来您遇到了同样的问题。AWS 论坛上的问题尚未解决,但我希望它能帮助您理解该问题。

答案2

尝试跑步:

   yum clean all

   rhn_check -vv

答案3

可能与此链接中的问题相同,其中还包括一个修复程序(由 Mostafa 发布,将 billingProducts 设置为 null): https://forums.aws.amazon.com/thread.jspa?threadID=128658

答案4

您必须在安全组中添加 HTTPS 入站规则,然后它才会起作用

相关内容