i Have CentOS 5.2 when i want to use yum update i got this message: [root@cp ~]# yum update Loading "installonlyn" plugin Setting up Update Process Setting up repositories Reading repository metadata in from local files primary.xml.gz 100% |=========================| 91 kB 00:00 http://centosh3.centos.org/centos/5.2/updates/i386/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum Trying other mirror. primary.xml.gz 100% |=========================| 91 kB 00:00 http://mirror.nsc.liu.se/CentOS/5.2/updates/i386/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum Trying other mirror. primary.xml.gz 100% |=========================| 139 kB 00:00 http://centosk2.centos.org/centos/5.2/updates/i386/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum Trying other mirror. primary.xml.gz 100% |=========================| 96 kB 00:00 http://centosa3.centos.org/centos/5.2/updates/i386/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum Trying other mirror. primary.xml.gz 100% |=========================| 91 kB 00:00 http://centosq.centos.org/centos/5.2/updates/i386/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum Trying other mirror. i also imported the GPG keys for software packages: rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY* please help me to have latest update
This is the result of whay you said: [root@cp ~]# yum clean all Loading "installonlyn" plugin Cleaning up Everything [root@cp ~]# yum makecache Loading "installonlyn" plugin Setting up repositories extras 100% |=========================| 1.1 kB 00:00 updates 100% |=========================| 951 B 00:00 base 100% |=========================| 1.1 kB 00:00 addons 100% |=========================| 951 B 00:00 primary.xml.gz 100% |=========================| 81 kB 00:43 ################################################## 282/282 primary.xml.gz 100% |=========================| 139 kB 00:00 http://centosh2.centos.org/centos/5.2/updates/i386/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum Trying other mirror. primary.xml.gz 100% |=========================| 161 kB 00:00 http://centosj.centos.org/centos/5.2/updates/i386/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum Trying other mirror. primary.xml.gz 100% |=========================| 111 kB 00:00 http://centose.centos.org/centos/5.2/updates/i386/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum Trying other mirror. i dont know what's this why meta data file does not match checksum
Solved - yum "Metadata file does not match checksum" Finally i solved my problem and would like to share it with you friends as i think it is a best linux forum which i can find. I did the following as per your advise. Code: yum clean all yum make cache yum update It Doesnt Work for me. but solved the problem after that i edit /etc/yum.conf and add the Code: http_caching=packages 'packages' means that only RPM package downloads should be cached (but not repository metadata downloads). then run: Code: yum clean metadate yum update my yum.conf look like this: Code: [main] cachedir=/var/cache/yum http_caching=packages keepcache=0 debuglevel=2 logfile=/var/log/yum.log pkgpolicy=newest distroverpkg=redhat-release tolerant=1 exactarch=1 obsoletes=1 gpgcheck=1 plugins=1 metadata_expire=1800