CentOS配置yum源报错:[Errno -1] Metadata file does not match checksum
2013-07-13 01:24
696 查看
今天心血来潮,想学习下cacti,需要yum安装rrd tool,
于是给我的VMWare workstation里一台centos 5.8 VM配置了yum源,
yum makecache,奇怪的事情发生了,居然收到了下面的报错: http://mirrors.tuna.tsinghua.edu.cn/centos/5/os/x86_64/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
Error: failure: repodata/primary.xml.gz from base: [Errno 256] No more mirrors to try.
各种百度谷歌搜索。。。yum clean all不行,yum clean metadata不行。。。
这两篇文章浪费了我很多时间,还是没能解决问题。
http://tilt.lib.tsinghua.edu.cn/node/385
http://plone.lucidsolutions.co.nz/linux/rpm/yum-metadata-file-does-not-match-checksum
就配个破yum源,我已经搞了1天,看似是无解了。。。
[解决]
于是,我新安装了1台centos 5.8,全部重新配置yum,尼玛,还是报这个错,
我想这可能和centos没关,于是我将注意力转向了VMWare workstation,
首先,我把centos VM的联网方式由NAT改成了Bridge,然后改网卡配置文件,
执行dhclient自动获取一个ip,再来执行yum makecache,
尼玛,这次居然成功了,可是我NAT连网方式ping外网一点问题没有,wget那几个xml.gz的文件也都没问题,为什么改成桥接就成功了呢?我百次不得其解啊,愿闻高手指教。
本文出自 “BLANK SPACE” 博客,请务必保留此出处http://blankspace.blog.51cto.com/388776/1247784
于是给我的VMWare workstation里一台centos 5.8 VM配置了yum源,
yum makecache,奇怪的事情发生了,居然收到了下面的报错: http://mirrors.tuna.tsinghua.edu.cn/centos/5/os/x86_64/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
Error: failure: repodata/primary.xml.gz from base: [Errno 256] No more mirrors to try.
各种百度谷歌搜索。。。yum clean all不行,yum clean metadata不行。。。
这两篇文章浪费了我很多时间,还是没能解决问题。
http://tilt.lib.tsinghua.edu.cn/node/385
http://plone.lucidsolutions.co.nz/linux/rpm/yum-metadata-file-does-not-match-checksum
就配个破yum源,我已经搞了1天,看似是无解了。。。
[解决]
于是,我新安装了1台centos 5.8,全部重新配置yum,尼玛,还是报这个错,
我想这可能和centos没关,于是我将注意力转向了VMWare workstation,
首先,我把centos VM的联网方式由NAT改成了Bridge,然后改网卡配置文件,
执行dhclient自动获取一个ip,再来执行yum makecache,
尼玛,这次居然成功了,可是我NAT连网方式ping外网一点问题没有,wget那几个xml.gz的文件也都没问题,为什么改成桥接就成功了呢?我百次不得其解啊,愿闻高手指教。
本文出自 “BLANK SPACE” 博客,请务必保留此出处http://blankspace.blog.51cto.com/388776/1247784
相关文章推荐
- yum [Errno -1] Metadata file does not match checksum
- 解決yum [Errno -1] Metadata file does not match checksum
- 解決 yum update錯誤:[Errno -1] Metadata file does not match checksum
- 在oracle linux下使用yum安装报错:[Errno -1] Metadata file does not match checksum
- 解決yum [Errno -1] Metadata file does not match checksum
- yum update时遇到Metadata file does not match checksum
- 解决Metadata file does not match checksum错误
- Linux 安装gcc [原]解决Metadata file does not match checksum错误
- Yum Metadata file does not match checksum
- Metadata file does not match checksum问题解决
- [转] 解决Metadata file does not match checksum错误
- yum install tree 出错primary.sqlite.bz2: [Errno -1] Metadata file does not match checks 解决办法
- the file is possibly corrupt. the file header checksum does not match the computed checksum故障解决办法
- GPG key retrieval failed: [Errno 14] Could not open/read file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-
- Centos 配置eth0 提示Device does not seem to be present
- Centos GPG key retrieval failed: [Errno 14] Could not open/read file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
- Centos 配置eth0 提示Device does not seem to be present
- Centos 配置eth0 提示Device does not seem to be present
- Centos 配置eth0 提示Device does not seem to be present
- Centos 配置eth0 提示Device does not seem to be present