練功房推薦書單

  • 猛虎出柙雙劍合璧版--最新 OCA / OCP Java SE 7 Programmer 專業認證 (電子書)
  • 流浪教師存零股存到3000萬(全新增修版)(書+DVD)
  • 開始在關西自助旅行(京都‧大阪‧神戶‧奈良)(全新增訂版)
  • 不敗教主的300張股票存股術

解決yum [Errno -1] Metadata file does not match checksum Trying other mirror. RSS feed
Forum Index » Linux
Author Message
andowson

七段學員
[Avatar]

Joined: 2007/1/2
Messages: 708
Location: 台北
Offline
最近想利用yum update來升級CentOS 5.6至CentOS 5.7時遇到這樣的錯誤訊息:

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.mirror.cdnetworks.com
* extras: centos.mirror.cdnetworks.com
* updates: centos.mirror.cdnetworks.com
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package NetworkManager.i386 1:0.7.0-13.el5 set to be updated
---> Package NetworkManager-glib.i386 1:0.7.0-13.el5 set to be updated
---> Package SysVinit.i386 0:2.86-17.el5 set to be updated
---> Package authconfig.i386 0:5.3.21-7.el5 set to be updated
---> Package autofs.i386 1:5.0.1-0.rc2.156.el5_7.3 set to be updated
---> Package bash.i386 0:3.2-32.el5 set to be updated
---> Package centos-release.i386 10:5-7.el5.centos set to be updated
---> Package centos-release-notes.i386 0:5.7-0 set to be updated
---> Package coreutils.i386 0:5.97-34.el5 set to be updated
---> Package cpuspeed.i386 1:1.2.1-10.el5 set to be updated
---> Package cryptsetup-luks.i386 0:1.0.3-8.el5 set to be updated
---> Package curl.i386 0:7.15.5-9.el5_7.4 set to be updated
---> Package dbus.i386 0:1.1.2-16.el5_7 set to be updated
---> Package dbus-libs.i386 0:1.1.2-16.el5_7 set to be updated
---> Package device-mapper.i386 0:1.02.63-4.el5 set to be updated
---> Package device-mapper-event.i386 0:1.02.63-4.el5 set to be updated
---> Package device-mapper-multipath.i386 0:0.4.7-46.el5_7.1 set to be updated
---> Package dhclient.i386 12:3.0.5-29.el5_7.1 set to be updated
---> Package dmidecode.i386 1:2.11-1.el5 set to be updated
---> Package dmraid.i386 0:1.0.0.rc13-65.el5 set to be updated
---> Package dmraid-events.i386 0:1.0.0.rc13-65.el5 set to be updated
---> Package e2fsprogs.i386 0:1.39-33.el5 set to be updated
---> Package e2fsprogs-libs.i386 0:1.39-33.el5 set to be updated
---> Package ecryptfs-utils.i386 0:75-5.el5_7.2 set to be updated
---> Package finger.i386 0:0.17-33 set to be updated
---> Package glibc.i686 0:2.5-65 set to be updated
---> Package glibc-common.i386 0:2.5-65 set to be updated
---> Package glibc-headers.i386 0:2.5-65 set to be updated
---> Package gnome-vfs2.i386 0:2.16.2-8.el5 set to be updated
---> Package gzip.i386 0:1.3.5-13.el5.centos set to be updated
---> Package httpd.i386 0:2.2.3-53.el5.centos.3 set to be updated
---> Package hwdata.noarch 0:0.213.24-1.el5 set to be updated
---> Package initscripts.i386 0:8.45.38-2.el5.centos set to be updated
---> Package iscsi-initiator-utils.i386 0:6.2.0.872-10.el5 set to be updated
---> Package kernel-PAE.i686 0:2.6.18-274.7.1.el5 set to be installed
---> Package kernel-headers.i386 0:2.6.18-274.7.1.el5 set to be updated
---> Package kpartx.i386 0:0.4.7-46.el5_7.1 set to be updated
---> Package krb5-libs.i386 0:1.6.1-62.el5 set to be updated
---> Package krb5-workstation.i386 0:1.6.1-62.el5 set to be updated
---> Package ksh.i386 0:20100202-1.el5_6.6 set to be updated
---> Package libX11.i386 0:1.0.3-11.el5_7.1 set to be updated
---> Package libXfont.i386 0:1.2.2-1.0.4.el5_7 set to be updated
---> Package libgcc.i386 0:4.1.2-51.el5 set to be updated
---> Package libpng.i386 2:1.2.10-7.1.el5_7.5 set to be updated
---> Package libstdc++.i386 0:4.1.2-51.el5 set to be updated
---> Package libsysfs.i386 0:2.1.0-1.el5 set to be updated
---> Package libvolume_id.i386 0:095-14.27.el5 set to be updated
---> Package libxml2.i386 0:2.6.26-2.1.12 set to be updated
---> Package libxml2-python.i386 0:2.6.26-2.1.12 set to be updated
---> Package logrotate.i386 0:3.7.4-12 set to be updated
---> Package lvm2.i386 0:2.02.84-6.el5_7.1 set to be updated
---> Package m2crypto.i386 0:0.16-8.el5 set to be updated
---> Package man.i386 0:1.6d-2.el5 set to be updated
---> Package mkinitrd.i386 0:5.1.19.6-71.el5 set to be updated
---> Package mod_ssl.i386 1:2.2.3-53.el5.centos.3 set to be updated
---> Package nash.i386 0:5.1.19.6-71.el5 set to be updated
---> Package nfs-utils.i386 1:1.0.9-54.el5 set to be updated
---> Package nscd.i386 0:2.5-65 set to be updated
---> Package nspr.i386 0:4.8.8-1.el5_7 set to be updated
---> Package nss.i386 0:3.12.10-4.el5.centos set to be updated
---> Package nss-tools.i386 0:3.12.10-4.el5.centos set to be updated
---> Package nss_ldap.i386 0:253-42.el5 set to be updated
---> Package ntp.i386 0:4.2.2p1-15.el5.centos set to be updated
---> Package openldap.i386 0:2.3.43-12.el5_7.9 set to be updated
---> Package openssh.i386 0:4.3p2-72.el5_7.5 set to be updated
---> Package openssh-clients.i386 0:4.3p2-72.el5_7.5 set to be updated
---> Package openssh-server.i386 0:4.3p2-72.el5_7.5 set to be updated
---> Package openssl.i686 0:0.9.8e-20.el5 set to be updated
---> Package pam_krb5.i386 0:2.2.14-21.el5 set to be updated
---> Package pango.i386 0:1.14.9-8.el5.centos.3 set to be updated
---> Package parted.i386 0:1.8.1-28.el5 set to be updated
---> Package popt.i386 0:1.10.2.3-22.el5_7.2 set to be updated
---> Package postgresql-libs.i386 0:8.1.23-1.el5_7.2 set to be updated
---> Package procps.i386 0:3.2.7-17.el5 set to be updated
---> Package python.i386 0:2.4.3-44.el5_7.1 set to be updated
---> Package python-libs.i386 0:2.4.3-44.el5_7.1 set to be updated
---> Package rpm.i386 0:4.4.2.3-22.el5_7.2 set to be updated
---> Package rpm-libs.i386 0:4.4.2.3-22.el5_7.2 set to be updated
---> Package rpm-python.i386 0:4.4.2.3-22.el5_7.2 set to be updated
---> Package rsync.i386 0:3.0.6-4.el5_7.1 set to be updated
---> Package selinux-policy.noarch 0:2.4.6-316.el5 set to be updated
---> Package selinux-policy-targeted.noarch 0:2.4.6-316.el5 set to be updated
---> Package sendmail.i386 0:8.13.8-8.1.el5_7 set to be updated
---> Package sos.noarch 0:1.7-9.54.el5 set to be updated
---> Package sysfsutils.i386 0:2.1.0-1.el5 set to be updated
---> Package sysstat.i386 0:7.0.2-11.el5 set to be updated
---> Package system-config-network-tui.noarch 0:1.3.99.19-2.el5 set to be updated
---> Package talk.i386 0:0.17-31.el5 set to be updated
---> Package traceroute.i386 3:2.0.1-6.el5 set to be updated
---> Package tzdata.i386 0:2011h-2.el5 set to be updated
---> Package udev.i386 0:095-14.27.el5 set to be updated
---> Package xinetd.i386 2:2.3.14-13.el5 set to be updated
---> Package yum.noarch 0:3.2.22-37.el5.centos set to be updated
---> Package yum-fastestmirror.noarch 0:1.1.16-16.el5.centos set to be updated
---> Package zlib.i386 0:1.2.3-4.el5 set to be updated
http://centos.mirror.cdnetworks.com/5.7/updates/i386/repodata/filelists.sqlite.bz2: [Errno -1] Metadata file does not match checksum
Trying other mirror.
http://centos.tt.co.kr/5.7/updates/i386/repodata/filelists.sqlite.bz2: [Errno -1] Metadata file does not match checksum
Trying other mirror.
http://centos.ustc.edu.cn/centos/5.7/updates/i386/repodata/filelists.sqlite.bz2: [Errno -1] Metadata file does not match checksum
Trying other mirror.
http://centos.vr-zone.com/5.7/updates/i386/repodata/filelists.sqlite.bz2: [Errno -1] Metadata file does not match checksum
Trying other mirror.
http://data.nicehosting.co.kr/os/CentOS/5.7/updates/i386/repodata/filelists.sqlite.bz2: [Errno -1] Metadata file does not match checksum
Trying other mirror.
http://ftp.cs.pu.edu.tw/Linux/CentOS/5.7/updates/i386/repodata/filelists.sqlite.bz2: [Errno -1] Metadata file does not match checksum
Trying other mirror.
http://ftp.cse.yzu.edu.tw/pub/CentOS/5.7/updates/i386/repodata/filelists.sqlite.bz2: [Errno -1] Metadata file does not match checksum
Trying other mirror.
http://ftp.daum.net/centos/5.7/updates/i386/repodata/filelists.sqlite.bz2: [Errno -1] Metadata file does not match checksum
Trying other mirror.
http://ftp.isu.edu.tw/pub/Linux/CentOS/5.7/updates/i386/repodata/filelists.sqlite.bz2: [Errno -1] Metadata file does not match checksum
Trying other mirror.
http://ftp.stu.edu.tw/Linux/CentOS/5.7/updates/i386/repodata/filelists.sqlite.bz2: [Errno -1] Metadata file does not match checksum
Trying other mirror.
http://ftp.tc.edu.tw/Linux/CentOS/5.7/updates/i386/repodata/filelists.sqlite.bz2: [Errno -1] Metadata file does not match checksum
Trying other mirror.
http://ftp.twaren.net/Linux/CentOS/5.7/updates/i386/repodata/filelists.sqlite.bz2: [Errno -1] Metadata file does not match checksum
Trying other mirror.
http://mirror.khlug.org/centos/5.7/updates/i386/repodata/filelists.sqlite.bz2: [Errno -1] Metadata file does not match checksum
Trying other mirror.
http://mirror.neu.edu.cn/centos/5.7/updates/i386/repodata/filelists.sqlite.bz2: [Errno -1] Metadata file does not match checksum
Trying other mirror.
http://mirror.yongbok.net/centos/5.7/updates/i386/repodata/filelists.sqlite.bz2: [Errno -1] Metadata file does not match checksum
Trying other mirror.
http://mirror01.idc.hinet.net/CentOS/5.7/updates/i386/repodata/filelists.sqlite.bz2: [Errno -1] Metadata file does not match checksum
Trying other mirror.
http://mirrors.163.com/centos/5.7/updates/i386/repodata/filelists.sqlite.bz2: [Errno -1] Metadata file does not match checksum
Trying other mirror.
http://mirrors.btte.net/centos/5.7/updates/i386/repodata/filelists.sqlite.bz2: [Errno -1] Metadata file does not match checksum
Trying other mirror.
http://mirrors.sin1.sg.voxel.net/centos/5.7/updates/i386/repodata/filelists.sqlite.bz2: [Errno -1] Metadata file does not match checksum
Trying other mirror.
http://mirrors.ta139.com/centos/5.7/updates/i386/repodata/filelists.sqlite.bz2: [Errno -1] Metadata file does not match checksum
Trying other mirror.
Error: failure: repodata/filelists.sqlite.bz2 from updates: [Errno 256] No more mirrors to try.
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.


經過一番搜尋後,最後利用下面的方法解決了:
yum clean all
yum clean metadata
yum makecache --disableplugin=fastestmirror
yum update


參考資料:
http://www.linuxquestions.org/questions/fedora-35/prob-with-yum-%5Berrno-1%5D-metadata-file-does-not-match-checksum-trying-other-mirro-462093/

分享經驗 累積智慧
[WWW]
andowson

七段學員
[Avatar]

Joined: 2007/1/2
Messages: 708
Location: 台北
Offline
今天發現用原來的方法還是無法真正的解決,找到了下面的網頁:
http://plone.lucidsolutions.co.nz/linux/rpm/yum-metadata-file-does-not-match-checksum
發現這個問題的真正原因是 http caching,所以使用yum clean all並無法解決問題,
我決定採用讓yum暫時不要使用http caching的猛藥
將/etc/yum.conf加上
http_caching=none

再重新執行一次
yum update
這次就OK了。

分享經驗 累積智慧
[WWW]
 
Forum Index » Linux
Go to:   
Mobile view