yum安装的时候遇到了问题 yum出现问题
[root@xnop029-CT-SDDX-102-34 ~]# yum install glibc.i686
Loaded plugins: aliases, changelog, downloadonly, fastestmirror, kabi, presto, security, tmprepo, verify, versionlock
Loading support for CentOS kernel ABI
Loading mirror speeds from cached hostfile
* base: centos.ustc.edu.cn
* extras: centos.ustc.edu.cn
* updates: centos.ustc.edu.cn
http://centos.ustc.edu.cn/centos/6.6/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'centos.ustc.edu.cn'"
Trying other mirror.
http://ftp.sjtu.edu.cn/centos/6.6/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"
Trying other mirror.
^C^C^C
Current download cancelled, interrupt (ctrl-c) again within two seconds
to exit.
修改yum源
[root@xnop029-CT-SDDX-102-34 ~]# cd /etc/yum.repos.d/
[root@xnop029-CT-SDDX-102-34 yum.repos.d]# wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
--2015-11-10 11:32:28-- http://mirrors.163.com/.help/CentOS6-Base-163.repo
[root@xnop029-CT-SDDX-102-34 yum.repos.d]# mv CentOS-Base.repo CentOS-Base.repo.bak
[root@xnop029-CT-SDDX-102-34 yum.repos.d]# mv CentOS6-Base-163.repo CentOS-Base.repo
[root@xnop029-CT-SDDX-102-34 yum.repos.d]# yum clean all
chuchu:http://8401800.blog.51cto.com/8391800/1711363
如果遇到报错
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
处理很简单,修改文件“/etc/yum.repos.d/epel.repo”, 将baseurl的注释取消, mirrorlist注释掉。即可。
参考URL: http://www.netpc.com.cn/593.html
转载于:https://blog.51cto.com/frankch/1859084