最近在使用yum方式安装perl-DBD-MySQL时碰到了Temporary failure in name resolution,Trying other mirror。即命名解析失败,尝试使用其它镜像。由于本机为最近安装的新服务器,下面是这个问题的现象描述及处理过程。
1、故障现象 ###当前环境 [root@GZDB ~]# cat /etc/issue CentOS release 5.11 (Final) Kernel \r on an \m
[root@GZDB ~]# yum install perl-DBD-MySQL .............. http://mirrors.pubyun.com/centos/5.11/os/x86_64/CentOS/mysql-5.0.95-5.el5_9.x86_64.rpm: [Errno 4] IOError: <urlopen error (-3, ‘Temporary failure in name resolution‘)> Trying other mirror. http://mirrors.sina.cn/centos/5.11/os/x86_64/CentOS/mysql-5.0.95-5.el5_9.x86_64.rpm: [Errno 4] IOError: <urlopen error (-3, ‘Temporary failure in name resolution‘)> Trying other mirror.
Error Downloading Packages: mysql-5.0.95-5.el5_9.x86_64: failure: CentOS/mysql-5.0.95-5.el5_9.x86_64.rpm from base: [Errno 256] No more mirrors to try. perl-DBI-1.52-2.el5.x86_64: failure: CentOS/perl-DBI-1.52-2.el5.x86_64.rpm from base: [Errno 256] No more mirrors to try. perl-DBD-MySQL-3.0007-2.el5.x86_64: failure: CentOS/perl-DBD-MySQL-3.0007-2.el5.x86_64.rpm from base: [Errno 256] No more mirrors to try.