Error Performing Checksum Primary.xml.gz
I tried to apply the latest CentOS 5.3 updates to one of my servers last week, I noticed that I was getting a number of "Error performing checksum" errors: $ yum repolist Loaded plugins: fastestmirror Determining fastest mirrors Updates | 1.2 kB 00:00 primary.xml.gz | 376 kB 00:00 http://updates/repo/centos/5.3/updates/repodata/primary.xml.gz: [Errno -3] Error performing checksum Trying other mirror. primary.xml.gz | 376 kB 00:00 http://updates/repo/centos/5.3/updates/repodata/primary.xml.gz: [Errno -3] Error performing checksum Trying other mirror. Error: failure: repodata/primary.xml.gz from Updates: [Errno 256] No more mirrors to try. After reading through the code in yumRepo.py, I noticed that the error listed above is usually generated when the checksum algorithm specified in the repomd.xml file isn't supported. The createrepo utility uses the sha256 algorithm by default in Fedora 11 (I created my repositories on a Fedora 11 host), so I decided to create my repository using the sha1 algorithm instead: $ createrepo -v -s sha1 /var/www/html/repo/centos/5.3/updates Once I created the repository metadata using the sha1 algorithm, everything worked as expected: $ yum clean all Loaded plugins: fastestmirror Cleaning up Everything Cleaning up list of fastest mirrors $ yum repolist Loaded plugins: fastestmirror Determining fastest mirrors Updates | 1.0 kB 00:00 primary.xml.gz | 367 kB 00:00 Updates 634/634 repo id repo name status Updates Updates enabled : 634 repolist: 634 This debugging experience made me realize two things: 1. Having your package manager written in Python makes debugging super easy 2. Python 2.6 uses hashlib to perform checksums, and Python 2.4 uses the SHA module to perform checksums. The version of the SHA module that ships with CentOS 5.3 doesn't support sha256, which is why we get the checksum error listed above. I had a h00t debugging this issue, and am glad everything is working correctly now! Nice! matty on November 26, 2009 | Filed Under Linux Debugging, Linux Package Management 10 Comments Fouad on March 22nd, 2010 Thanks I really tried to make a local repo on RHEL5 and it didn't work but after I did as you what said. Emmett O'Grady on April 16th, 2010 Thanks for this blog! Spent quite a bit of time looking before I found this! I was going from Fedora 12 (repository) to a RHEL 5.0 client. I looked into an existing RHEL 5.0 .repo file to see what it was using for the hash - sha ! I used your suggestion with sha and it was no longe
Storage Cloud Personal tools Log in You are here: Home → Linux → RPM → Yum - Metadata file does not match checksum Navigation Web Digital Video Broadcast Linux Xen CentOs Version Control dns I/O MythTV Asterisk RPM Yum - Metadata file does not match checksum UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal Processing Conflict: perl-XML-SAX-Base-1.08-10_4.el6.noarch conflicts http://prefetch.net/blog/index.php/2009/11/26/dealing-with-yum-checksum-errors/ perl-XML-SAX < 0.99 Instant Messaging VMWare LDAP Mail SSH Java Time FreeSWITCH AAA Plex NFS IPA ElasticSearch HyperV Mono PlantUML Wireless Networking Hardware Windows Software Development Android Storage Cloud Recent Changes Xiaomi RedMi 3S Sep 22, 2016 2016-09-21_172622.png Sep 21, 2016 Open GAPPS Selection Sep 21, 2016 Images Sep 21, https://plone.lucidsolutions.co.nz/linux/rpm/yum-metadata-file-does-not-match-checksum 2016 Cyanogenmod Sep 21, 2016 Images Sep 18, 2016 Lora Sep 18, 2016 Disable unwanted Raspbian Services Sep 18, 2016 Raspberry Pi Sep 18, 2016 3 Sep 18, 2016 Images Aug 30, 2016 CoreOS Aug 30, 2016 All recent changes… Info Yum - Metadata file does not match checksum During a yum operation the error 'Metadata file does not match checksum' is reported. This error occurs on CentOS, RHEL, Fedora etc. This error is likely to be due to http caching, where the versions of the yum repository files are inconsistent. The yum repository has the following files: repomd.xmlfilelists.xml.gzother.xml.gzprimary.xml.gz The 'repomd.xml' file describes the other three files, and contains a hash. It should be noted that a 'yum clean all' will not solve this issue, as the out of date cached files will be downloaded again. An example error: filelists.xml.gz 100% |=========================| 3.3 MB 00:00 http://fr2.rpmfind.net/linux/dag/redhat/el5/en/x86_64/rpmforge/repodata/filelists.xml.gz: [Errn
Forums . Bugs . Translation | Search . Simple . Advanced | Reports . Help | Matrix . 8.x . 9.x . 10.x . Recent . Contribs Bug7031 - [Errno -3] Error performing checksum Summary: [Errno -3] Error performing checksum Status: CLOSED DUPLICATE of bug 7030 Alias: None Product: SME Server 7.X Classification: SME Server Component: Installer (show other bugs) Version: Unknown Hardware: --- --- Importance: P3 normal Target Milestone: --- Assignee: SME Server bug team QA Contact: SME Server bug team URL: Depends on: Blocks: Reported: 2012-07-10 02:27 CEST by Bob van der Waard Modified: 2012-07-10 05:26 CEST (History) CC List: 1 user (show) devlist See Also: Package: --- Attachments Add an attachment (proposed patch, testcase, etc.) Note You need to log in before you can comment on or make changes to this bug. Description Bob van der Waard 2012-07-10 02:27:22 CEST Today I tried to update a sme server 7.5.1 to 7.6 but I received these errors: primary.xml.gz 100% |=========================| 84 kB 00:00 http://mirror.pialasse.com/releases/7/smeaddons/i386/repodata/primary.xml.gz: [Errno -3] Error performing checksum Trying other mirror. primary.xml.gz 100% |=========================| 84 kB 00:00 http://smeserver.mirror.garr.it/mirrors/smeserver/releases/7/smeaddons/i386/repodata/primary.xml.gz: [Errno -3] Error performing checksum Trying other mirror. primary.xml.gz 100% |=========================| 84 kB 00:00 http://mirror.ovh.ifec.net/releases/7/smeaddons/i386/repodata/primary.xml.gz: [Errno -3] Error performing checksum Trying other mirror. primary.xml.gz 100% |=========================| 84 kB 00:00 http://mirror.chiropratique.org/releases/7/smeaddons/i386/repodata/primary.xml.gz: [Errno -3] Error performing checksum Trying other mirror. primary.xml.gz 100% |=========================| 84 kB 00:00 http://mirror.hakkers.com/releases/7/smeaddons/i386/repodata/primary.xml.gz: [Errno -3] Error performing checksum Trying other mirror. primary.xml.gz 100% |=========================| 84 kB 00:00 http://sme-mirror.firewall-services.com/releases/7/smeaddons/i386/repodata/primary.xml.gz: [Errno -3] Error performing checksum Trying other mirro