无法解析主机:mirrors.fedoraproject.org;名称或服务未知

时间:2013-09-15 04:13:57

标签: linux vim fedora

我正在尝试在fedora 19中安装vim,我收到此错误,有人有想法吗?

[root@localhost yum.repos.d]#  yum -y install vim-enhanced 
Loaded plugins: langpacks, refresh-packagekit
Could not get metalink https://mirrors.fedoraproject.org/metalink?repo=fedora-19&arch=x86_64 error was
14: curl#6 - "Could not resolve host: mirrors.fedoraproject.org; Name or service not known"
http://dl.google.com/linux/chrome/rpm/stable/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: dl.google.com; Name or service not known"
Trying other mirror.
Error: failure: repodata/repomd.xml from google-chrome: [Errno 256] No more mirrors to try.
http://dl.google.com/linux/chrome/rpm/stable/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: dl.google.com; Name or service not known"
[root@localhost yum.repos.d]# 

2 个答案:

答案 0 :(得分:2)

前两件事要做:

1)确保您的Fedora主机的互联网连接正常,

2)确认您可以ping mirrors.fedoraproject.org

如果你可以“ping”它(你应该能够),那么“yum”应该会成功。

如果由于某种原因,您仍然无法连接到mirrors.fedoraproject.org,那么也许您可以使用备用镜像:

答案 1 :(得分:0)

我遇到了同样的问题,但Firefox是伤亡者之一,不会运行。 最后,我发现我需要在/ etc / hosts中为主机站点添加一个IP条目 稍后几次运行yum-complete-transaction,软件更新程序仍然失败。我认为重新安装可能会更快。