[bash gutter="false"]
[root@ src]# wget http://cdn.mysql.com/Downloads/MySQL-5.5/mysql-5.5.28.tar.gz
Resolving http://cdn.mysql.com/Downloads/MySQL-5.5/mysql-5.5.28.tar.gz failed: Temporary failure in name resolution.
[/bash]
错误提示表示在解析 URL 时候失败。
检测机器的网络问题: 可 ping 外部 IP 地址, 但 ping 外部 URL 时, 提示
the host is unknown。修改
/etc/resolv.conf DNS 设置文件, service network restart 重启网络服务。问题解决。用命令 yum 安装软件时,收到类似如下的错误提示:
[bash gutter="false"]
[root@www ~]# yum install boost.x86_64
Could not retrieve mirrorlist [url]http://mirrorlist.centos.org/?release=5&arch=i386&repo=os[/url] error was
[Errno 4] IOError: <urlopen error (-3, '\xe5\x9f\x9f\xe5\x90\x8d\xe8\xa7\xa3\xe6\x9e\x90\xe6\x9a\x82\xe6\x97\xb6\xe5\xa4\xb1\xe8\xb4\xa5')>
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
[/bash]
这也是 DNS 设置的问题。
没有评论:
发表评论