Error Performing Checksum Repo
Contents |
doing a yum update on a centos5 or rhel5 box, using rpms from a
Errno 3 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 ignore 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 by Red Hat Cloud Computing Back Red Hat CloudForms Red Hat OpenStack Platform Red Hat python-hashlib rpm Cloud Infrastructure Red Hat Cloud Suite Red Hat OpenShift Container Platform Red Hat OpenShift
Primary.sqlite.bz2: [errno -3] Error Performing Checksum
Online Red Hat OpenShift Dedicated Storage Back Red Hat Gluster Storage Red Hat Ceph Storage JBoss Development and Management Back Red
Python-hashlib Rpm Centos 5
Hat JBoss Enterprise Application 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 http://www.openfusion.net/linux/yum_error_performing_checksum 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 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 https://access.redhat.com/solutions/2047453 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 Subscriptions Downloads Support Cases Account Back Log In Register Red Hat Account Number: Account Details Newsletter and Contact Preferences User Management Account Maintenance My Profile Notifications Help Log Out Language Back English español Deutsch italiano 한국어 français 日本語 português 中文 (中国) русский Customer Portal Search Products & Services Back View All Products Infrastructure and Management Back Red Hat Enterprise Linux Red Hat Virtualization Red Hat Identity Management Red Hat Directory Server Red Hat Certificate System Red Hat Satellite Subscription Asset Manager Red Hat Update Infrastructure Red Hat Insights Ansible Tower by R
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: $ http://prefetch.net/blog/index.php/2009/11/26/dealing-with-yum-checksum-errors/ yum repolist Loaded plugins: fastestmirror Determining fastest mirrors Updates | 1.2 kB 00:00 https://blog.debroglie.net/2011/08/19/errno-3-error-performing-checksum/ 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 error performing 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 error performing checksum 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
Error performing checksum Posted on August 19, 2011 by Pascal On centos 5 yum is complaining with the error:
debroglie/primary_db | 64 kB 00:00
http://centos.debroglie.net/RPMS/5/repodata/primary.sqlite.bz2: [Errno -3] Error performing checksum
The server is now on centos 6 and createrepo is using a hash that centos 5 does not understand by default. I fixed the problem now (createrepo -d -s sha1). If you still have an error try: "yum clean all" first. Thanks to: http://prefetch.net/blog/index.php/2009/11/26/dealing-with-yum-checksum-errors/ This entry was posted in Centos, Debroglie by Pascal. Bookmark the permalink. One thought on “[Errno -3] Error performing checksum” Kyle Anderson on February 20, 2012 at 15:52 said: Thank you very much for giving such a succinct answer. 🙂 Leave a Reply Cancel replyYou must be logged in to post a comment. Connect with: Tagsanafcfweb cctbx Coot crystals dirdif DRAWxtl edensgrid ediffana edma f3d flipsmall Fortran jana moliso newmat objcryst-fox olex2 openopt opix optics optimization platon python2.5 structure solution superflip test-repo tonto-chem valgrind Categories Centos (80) Debroglie (38) Fedora (99) Pascal's diary (23) Release (10) Testing (13) Uncategorized (19) Useful links British crystallography association (BCA) Browse Debroglie repositories Chemical Crystallography Group (BCA/CCG) Oxford chemical crystallography Pascal Parois CV Walking randomly blog X-rayman Crystallography Forum Archives Archives Select Month September 2016 (1) July 2014 (1) September 2013 (2) August 2013 (1) May 2013 (1) April 2013 (1) February 2013 (1) December 2012 (1) August 2012 (2) June 2012 (2) April 2012 (1) March 2012 (1) January 2012 (2) December 2011 (2) October 2011 (2) September 2011 (2) August 2011 (4) July 2011 (3) February 2011 (1) January 2011 (3) November 2010 (2) October 2010 (2) September 2010 (1) August 2010 (4) July 2010 (1) May 2010 (3) March 2010 (4) February 2010 (6) January 2010 (5) December 2009