RHEL 无法使用 yum 安装任何软件包

RHEL 无法使用 yum 安装任何软件包

我对 Linux 还很陌生,正在尝试使用 RHEL5 Linux 中的 yum 安装软件包。即使是最简单的软件包,我也无法安装,这似乎是命名服务器问题。我尝试将名称服务器更改为 googles,如 /etc/resolv.conf 文件中所述

\\; generated by /sbin/dhclient-script
search compute-1.internal
nameserver 8.8.8.8

即使我尝试使用 wget 获取文件,我也收到以下错误

获得http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-1.el6.rf.x86_64.rpm --2012-12-03 14:45:14-- http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-1.el6.rf.x86_64.rpm 解析 pkgs.repoforge.org...失败:名称解析暂时失败。wget:无法解析主机地址“pkgs.repoforge.org”

由于同样的原因,直接使用 Yum 安装也会失败

root@domU-12-31-39-10-09-BD x11vnc-0.9.14]# yum install whoami
Failed to set locale, defaulting to C
Loaded plugins: amazon-id, fastestmirror, rhui-lb, security
Loading mirror speeds from cached hostfile
 * rhui-us-east-client-config-server-5: rhui2-cds01.us-east-1.aws.ce.redhat.com
 * rhui-us-east-rhel-server: rhui2-cds01.us-east-1.aws.ce.redhat.com
https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/repos//rhui-client-config/rhel/server/5/x86_64/os/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-2, 'Name or service not known')>
Trying other mirror.
https://rhui2-cds02.us-east-1.aws.ce.redhat.com/pulp/repos//rhui-client-config/rhel/server/5/x86_64/os/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-2, 'Name or service not known')>
Trying other mirror.
https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/repos//content/dist/rhel/rhui/server/5/5Server/x86_64/os/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-2, 'Name or service not known')>
Trying other mirror.

如果有人可以帮助我 1)如何将默认的 yum 存储库更改为其他存储库,例如 rpmforge 2)如何解决这个名称或服务未知错误。

提前致谢

相关内容