centos yum 错误处理

来源:互联网 发布:淘宝活体 编辑:程序博客网 时间:2024/04/27 23:01

centos yum 错误处理

1、

[root@v01lab yum.repos.d]# yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
http://centos.qzu.cn/centos/6/updates/x86_64/repodata/b6020f66c9f3f4041d88195660845c0d20d685a6d1a7dc608ce943a1be05d579-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 – “The requested URL returned error: 404 Not Found”
Trying other mirror.
Error: failure: repodata/b6020f66c9f3f4041d88195660845c0d20d685a6d1a7dc608ce943a1be05d579-primary.sqlite.bz2 from updates: [Errno 256] No more mirrors to try.

处理

在 /etc/yum.conf添加一行,问题解决。

http_caching=packages

 

2.

 vi /etc/yum/pluginconf.d/fastestmirror.conf  

设置 “enable=0”

enable=0
#yum clean all#yum clean metadatayum makecache
http://aba.qzu.cn/archives/686.html
0 0