我正在尝试在 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]#
最佳答案
首先要做的两件事是:
1) 确保您的 Fedora 主机的互联网连接正常,并且
2) 确认您可以ping mirrors.fedoraproject.org
。
如果您可以“ping”它(并且您应该能够),那么“yum”应该成功。
如果出于某种原因,您仍然无法连接到 mirrors.fedoraproject.org,那么也许您可以使用备用镜像:
关于linux - 无法解析主机 : mirrors. fedoraproject.org;名称或服务未知,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18808857/