Errno 3 Error Performing Checksum Yum
Contents |
doing a yum update on a centos5 or rhel5 box, using rpms from a yum repolist error performing checksum repository on a centos6 or rhel6 server (or anywhere else with a more modern createrepo available), and you get errors like this: http://example.com/repodata/filelists.sqlite.bz2: [Errno -3] Error performing checksum
Yum Install Error Performing Checksum
http://example.com/repodata/primary.sqlite.bz2: [Errno -3] Error performing checksum What this really means that yum is too stupid to calculate the sha256 checksum correctly (and also too stupid to give you a sensible error message like "Sorry, primary.sqlite.bz2 is using a sha256 checksum, but I don't know how to calculate that"). The fix is simple: yum install python-hashlib from either rpmforge or epel, which makes the necessary libraries available for yum to calculate the new checksums correctly. Sorted. View the discussion thread.blog comments powered by Disqus
Red Hat Certificate System Red Hat Satellite Subscription Asset Manager Red Hat Update Infrastructure Red Hat Insights Ansible Tower
Yum Repo Error Performing Checksum
by Red Hat Cloud Computing Back Red Hat CloudForms Red Hat yum ignore checksum OpenStack Platform Red Hat Cloud Infrastructure Red Hat Cloud Suite Red Hat OpenShift Container Platform Red python-hashlib rpm Hat OpenShift Online Red Hat OpenShift Dedicated Storage Back Red Hat Gluster Storage Red Hat Ceph Storage JBoss Development and Management Back Red Hat JBoss Enterprise Application http://www.openfusion.net/linux/yum_error_performing_checksum Platform Red Hat JBoss Data Grid Red Hat JBoss Web Server Red Hat JBoss Portal Red Hat JBoss Operations Network Red Hat JBoss Developer Studio JBoss Integration and Automation Back Red Hat JBoss Data Virtualization Red Hat JBoss Fuse Red Hat JBoss A-MQ Red Hat JBoss BPM Suite Red Hat JBoss BRMS Mobile Back https://access.redhat.com/solutions/24128 Red Hat Mobile Application Platform Services Back Consulting Technical Account Management Training & Certifications Red Hat Enterprise Linux Developer Program Support Get Support Production Support Development Support Product Life Cycle & Update Policies Knowledge Search Documentation Knowledgebase Videos Discussions Ecosystem Browse Certified Solutions Overview Partner Resources Tools Back Red Hat Insights Learn More Red Hat Access Labs Explore Labs Configuration Deployment Troubleshooting Security Additional Tools Red Hat Access plug-ins Red Hat Satellite Certificate Tool Security Back Product Security Center Security Updates Security Advisories Red Hat CVE Database Security Labs Resources Overview Security Blog Security Measurement Severity Ratings Backporting Policies Product Signing (GPG) Keys Community Back Discussions Red Hat Enterprise Linux Red Hat Virtualization Red Hat Satellite Customer Portal Private Groups All Discussions Start a Discussion Blogs Customer Portal Red Hat Product Security Red Hat Access Labs Red Hat Insights All Blogs Events Customer Events Red Hat Summit Stories Red Hat Subscription Benefits You Asked. We Acted. Open Source Communities Subscripti
I tried to apply the latest CentOS 5.3 updates to one of my servers last http://prefetch.net/blog/index.php/2009/11/26/dealing-with-yum-checksum-errors/ 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 error performing 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 error performing checksum 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 check