解决centos yum源配置出现Couldn't resolve host 问题
Posted 潇潇六月雨
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了解决centos yum源配置出现Couldn't resolve host 问题相关的知识,希望对你有一定的参考价值。
http://mirrors.163.com/centos/6/os/i386/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn‘t resolve host ‘mirrors.163.com‘"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
实际上是DNS问题
vi /etc/resolv.conf
nameserver 221.130.33.52
nameserver 168.95.1.1
yum update
解决
转载于:https://blog.51cto.com/linux1990/1701809
以上是关于解决centos yum源配置出现Couldn't resolve host 问题的主要内容,如果未能解决你的问题,请参考以下文章
CentOS yum 命令出现 [Errno 14] curl#6 - "Couldn't resolve host ..." 的解决方法(代码片段
解决Couldn't resolve host 'mirrorlist.centos.org