我有一个 RHEL 6.5 EC2 实例,yum 坏了
yum 全部清理
$ yum clean all
Loaded plugins: amazon-id, rhui-lb, security
Cleaning repos: dag epel rhui-REGION-client-config-server-6 rhui-REGION-rhel-server-releases rhui-REGION-rhel-server-releases-optional
: rhui-REGION-rhel-server-rh-common rhui-REGION-rhel-server-rhscl webmin
Cleaning up Everything
yum 清理元数据
$ yum clean metadata
Loaded plugins: amazon-id, rhui-lb, security
Cleaning repos: dag epel rhui-REGION-client-config-server-6 rhui-REGION-rhel-server-releases rhui-REGION-rhel-server-releases-optional
: rhui-REGION-rhel-server-rh-common rhui-REGION-rhel-server-rhscl webmin
0 metadata files removed
0 sqlite files removed
0 metadata files removed
清理后,尝试更新列表,但结果为 404 错误
$ yum list update
Loaded plugins: amazon-id, rhui-lb, security
dag | 1.9 kB 00:00
dag/primary_db | 2.7 MB 00:03
epel/metalink | 5.2 kB 00:00
epel | 4.3 kB 00:00
epel/primary_db | 5.8 MB 00:00
rhui-REGION-client-config-server-6 | 2.9 kB 00:00
rhui-REGION-client-config-server-6/primary_db | 6.0 kB 00:00
https://rhui2-cds02.ap-northeast-1.aws.ce.redhat.com/pulp/repos//content/dist/rhel/rhui/server/6/%24releasever/x86_64/os/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
https://rhui2-cds01.ap-northeast-1.aws.ce.redhat.com/pulp/repos//content/dist/rhel/rhui/server/6/%24releasever/x86_64/os/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: rhui-REGION-rhel-server-releases. Please verify its path and try again
我也尝试了 AWS 论坛中提到的解决方法,但未能安装软件包 https://forums.aws.amazon.com/thread.jspa?threadID=76738
$ rpm -Uhv http://redhat-clientconfig-ap-northeast-1.s3.amazonaws.com/rh-amazon-rhui-client-2.2.16-1.el6.noarch.rpm
Retrieving http://redhat-clientconfig-ap-northeast-1.s3.amazonaws.com/rh-amazon-rhui-client-2.2.16-1.el6.noarch.rpm
error: Failed dependencies:
/bin/bash is needed by rh-amazon-rhui-client-2.2.16-1.el6.noarch
/bin/sh is needed by rh-amazon-rhui-client-2.2.16-1.el6.noarch
/usr/bin/python is needed by rh-amazon-rhui-client-2.2.16-1.el6.noarch
/usr/bin/python2 is needed by rh-amazon-rhui-client-2.2.16-1.el6.noarch
chkconfig is needed by rh-amazon-rhui-client-2.2.16-1.el6.noarch
yum >= 3.2.22-20 is needed by rh-amazon-rhui-client-2.2.16-1.el6.noarch
yum-rhn-plugin is needed by rh-amazon-rhui-client-2.2.16-1.el6.noarch
有人可以提供一些建议吗?
谢谢