yum错误

简介:

在安装mlocate的时候发现一直报错,错误内容大致如下

DownloadingPackages:
http://mirrors.163.com/centos/6.5/os/i386/Packages/mlocate-0.22.2-4.el6.i686.rpm:[Errno 14] PYCURL ERROR 6 - "Couldn't resolve host'mirrors.163.com'"Trying other mirror.
http://mirrors.aliyun.com/centos/6.5/os/i386/Packages/mlocate-0.22.2-4.el6.i686.rpm:[Errno 14] PYCURL ERROR 6 - "Couldn't resolve host'mirrors.aliyun.com'"Trying other mirror.
http://centos.ustc.edu.cn/centos/6.5/os/i386/Packages/mlocate-0.22.2-4.el6.i686.rpm:[Errno 14] PYCURL ERROR 6 - "Couldn't resolve host'centos.ustc.edu.cn'"Trying other mirror.
http://mirrors.yun-idc.com/centos/6.5/os/i386/Packages/mlocate-0.22.2-4.el6.i686.rpm:[Errno 14] PYCURL ERROR 6 - "Couldn't resolve host'mirrors.yun-idc.com'"Trying other mirror.
http://mirrors.neusoft.edu.cn/centos/6.5/os/i386/Packages/mlocate-0.22.2-4.el6.i686.rpm:[Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.neusoft.edu.cn'"Tryingother mirror.
http://mirror01.idc.hinet.net/CentOS/6.5/os/i386/Packages/mlocate-0.22.2-4.el6.i686.rpm:[Errno 14] PYCURL ERROR 6 - "Couldn't resolve host'mirror01.idc.hinet.net'"Trying other mirror.
http://ftp.stust.edu.tw/pub/Linux/CentOS/6.5/os/i386/Packages/mlocate-0.22.2-4.el6.i686.rpm:[Errno 14] PYCURL ERROR 6 - "Couldn't resolve host'ftp.stust.edu.tw'"Trying other mirror.
http://ftp.twaren.net/Linux/CentOS/6.5/os/i386/Packages/mlocate-0.22.2-4.el6.i686.rpm:[Errno 14] PYCURL ERROR 6 - "Couldn't resolve host'ftp.twaren.net'"Trying other mirror.
http://ftp.isu.edu.tw/pub/Linux/CentOS/6.5/os/i386/Packages/mlocate-0.22.2-4.el6.i686.rpm:[Errno 14] PYCURL ERROR 6 - "Couldn't resolve host'ftp.isu.edu.tw'"Trying other mirror.
http://ftp.stu.edu.tw/Linux/CentOS/6.5/os/i386/Packages/mlocate-0.22.2-4.el6.i686.rpm:[Errno 14] PYCURL ERROR 6 - "Couldn't resolve host'ftp.stu.edu.tw'"Trying other mirror.

Error Downloading Packages:
  mlocate-0.22.2-4.el6.i686: failure: Packages/mlocate-0.22.2-4.el6.i686.rpmfrom base: [Errno 256] No more mirrors to try.

 

后来网上查了一下说是DNS服务器错误。于是修改一下 /etc/resolv.conf

添加一个nameserver 8.8.8.8完成


 

 本文转自 15816815732 51CTO博客,原文链接:http://blog.51cto.com/68686789/1691452



相关文章
dpkg 被中断、sudo apt-get upgrade失败
写了个小插件,服务器部署的时候发现少了一些依赖,果断apt-get,然而失败了: E: dpkg 被中断,您必须手工运行 ‘sudo dpkg --configure -a’ 解决此问题。 找到解决办法: sudo rm /var/lib/dpkg/updates/* sudo apt-get update sudo apt-get upgrade 解决了么?并没有...。
|
数据库
rpm yum 等命令无响应的解决方法
yum 安装查询任何东西, rpm 安装查询任何东西,执行后无任何反应,直接卡住,也没任何错误信息给出,只能杀掉进程 # yum install XXXX # yum clean all # rpm -qa # rpm -ivh XXX 执行全部无响应,只能kill 掉 原来是由于 rpm 的数据库出现异常了导致直接卡死了,造成这种异常通常是因为之前不正常的安装或查询。
2848 0
|
缓存 Shell
yum clean all 后导致yum报错排查解决方案
yum clean all 后导致yum报错排查解决方案
yum clean all 后导致yum报错排查解决方案
|
缓存 Shell Linux
yum命令
yum命令
125 0
|
存储 缓存 Linux
YUM 命令
linux学习
129 0
|
Ubuntu Python
sudo apt install 遇到关于 lock 的错误消息
sudo apt install 遇到关于 lock 的错误消息
100 0
sudo apt install 遇到关于 lock 的错误消息
dpkg检查某个应用是否已安装
dpkg检查某个应用是否已安装
103 0
|
Linux 应用服务中间件 nginx

热门文章

最新文章