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完成

时间: 2024-10-05 04:27:44

yum错误的相关文章

No module named yum错误的解决办法

今天用yum安装软件的时候出现如下错误: There was a problem importing one of the Python modules required to run yum. The error leading to this problem was: No module named yum Please install a package which provides this module, or verify that the module is installed c

CentOS6.5 安装Python2.7后, yum出现“No module named yum”错误

安装如下方法安装python2.7: yum install –y python27 python27-devel Python-docutils cd /usr/bin/ rm -rf python cp python2.7 python   出现yum错误:No module named yum 解决方法,查看 /usr/bin下python有哪几个版本 ll /usr/bin 我这里是:2.6  和  2.7 (刚安装的) 由于yum命令不兼容python2.7,需修改/usr/bin/y

python升级造成yum错误问题解决

1.错误提示 1 [[email protected]]# yum install redis 2 There was a problem importing one of the Python modules 3 required to run yum. The error leading to this problem was: 4 5 6 No module named yum 7 8 9 Please install a package which provides this modul

关于YUM错误,Error: rpmdb open failed

错误如题: 1 rpmdb: Thread/process 16216/140121371674368 failed: Thread died in Berkeley DB library 2 error: db3 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery 3 error: cannot open Packages index using db3 - (-30974)

[linux]centos7 升级python后出现“No module named yum”错误

公司服务器重新安装系统后,手动升级python2.7.5到2.7.15,安装完python在更新系统python版本的过程中无意删除了系统自带的版本,导致后来在执行yum命令的时候出现了错误 There was a problem importing one of the Python modules required to run yum. The error leading to this problem was: No module named yum Please install a p

centos7 yum错误相关

执行 sed -i '1a nameserver 8.8.8.8' /etc/resolv.conf 原文地址:https://www.cnblogs.com/zfzf1/p/8503379.html

yum指令之修复

折腾着搞openvpn 网站服务器yum指令出了点问题 ------------------------------------------------------------ [[email protected] ~]# yumThere was a problem importing one of the Python modulesrequired to run yum. The error leading to this problem was: No module named yum

CentOS 6.6 yum源完全配置

原文地址 http://blog.csdn.net/halazi100/article/details/41311837 一 yum 简介 yum,是"Yellow dog Updater,Modified"的简称,是杜克大学为了提高RPM软件包安装性而开发的一种软件包管理器. 起初是由yellow dog这一发行版的开发者Terra Soft研发,用python写成,那时还叫做yup(yellow dog updater),后经杜克大学的[email protected]开发团队进行

yum error: TypeError: rpmdb open failed

http://yinqiongjie.blog.163.com/blog/static/561976200992754150584/ yum 错误TypeError: rpmdb open failed  =============================== 解决办法 是因为RPM数据库出现损坏导致的,它导致所有的软件的升级.安装甚至是删除都会出现问题,终端出现乱码,YUMEX也用不成,RPM命令也用不成.原因是RPM数据库被破坏,解决方法如下: $ su            切换到