Error Performing Checksum Centos
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 errno 3 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
Sign in Pricing Blog Support Search GitHub This repository Watch 1,773 Star 18,829 Fork 6,414 elastic/elasticsearch Code Issues 1,032 Pull requests 88 Projects 0 Pulse Graphs New issue RPM repository broken on RHEL5: yum ignore checksum «Error performing checksum» #6498 Closed gioele opened this Issue Jun 13, 2014 · 5 python-hashlib rpm centos 5 comments Projects None yet Labels :Packaging Milestone No milestone Assignees spinscale 5 participants gioele commented Jun 13, 2014 primary.sqlite.bz2: [errno -3] error performing checksum Yum complains about wrong checksums when the RPM repository is used in RHEL 5: $ yum list Loaded plugins: rhnplugin, security This system is receiving updates from RHN Classic or RHN Satellite. elasticsearch-0.90/primary_db | 9.1 http://www.openfusion.net/linux/yum_error_performing_checksum kB 00:00 http://packages.elasticsearch.org/elasticsearch/0.90/centos/repodata/primary.sqlite.bz2: [Errno -3] Error performing checksum Trying other mirror. Error: failure: repodata/primary.sqlite.bz2 from elasticsearch-0.90: [Errno 256] No more mirrors to try. This problem has been dissected in this blog post: http://prefetch.net/blog/index.php/2009/11/26/dealing-with-yum-checksum-errors/. The solution is to create the repositores using createrepo with the -s sha1 option that enables the creation of SHA1 checksums instead of SHA256. electrical commented Jun 13, 2014 Ahh, very interesting. i wasn't aware of https://github.com/elastic/elasticsearch/issues/6498 this. An other issue that CentOS 5 users have reported is that we sign with a to newer version of the signature ( version 4 versus version 3 what centos5 supports ) That might be the next issue you might encounter. I haven't been able to solve the signature issue yet but i think we can solve the SHA issue. I'll do some tests and update the issue when i find something. electrical self-assigned this Jun 13, 2014 clintongormley added the :Packaging label Dec 30, 2014 sergei-maertens commented Apr 30, 2015 what's the status of this? I'm having the same problem on CentOS 5.11 and would prefer to install/update via yum instead of sources. spinscale assigned spinscale and unassigned electrical May 4, 2015 elastic member spinscale commented May 4, 2015 Hey I just checked this, and @electrical if right. Even though we change the createrepo call, we still call gpg with the wrong arguments. I would like to incorporate this fully into our built, so we need the possibility to configure this via mvn - I will ask the maven-rpm-plugin folks to support this feature, by allowing to configure the %__gpg_sign_cmd call. In the meantime I will try to add this to the build by manually add
Wiki Search Tutorials/Articles Search HCL Search Reviews Search ISOs Go to Page... LinuxQuestions.org > Forums > Linux Forums > Linux - Server error performing checksum from yum --security check-update User Name http://www.linuxquestions.org/questions/linux-server-73/error-performing-checksum-from-yum-security-check-update-4175499424/ Remember Me? Password Linux - Server This forum is for the discussion of Linux http://prefetch.net/blog/index.php/2009/11/26/dealing-with-yum-checksum-errors/ Software used in a server related context. Notices Welcome to LinuxQuestions.org, a friendly and active Linux Community. You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is error performing quick, simple and absolutely free. Join our community today! Note that registered members see fewer ads, and ContentLink is completely disabled once you log in. Are you new to LinuxQuestions.org? Visit the following links: Site Howto | Site FAQ | Sitemap | Register Now If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here. error performing checksum Having a problem logging in? Please visit this page to clear all LQ-related cookies. Introduction to Linux - A Hands on Guide This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter. For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own. Click Here to receive this Complete Guide absolutely free. Search this Thread 03-25-2014, 12:40 PM #1 tom_morse LQ Newbie Registered: Apr 2005 Posts: 3 Rep: error performing checksum from yum --security check-update On my CentOS 5.1 server when I execute yum --security check-update it fails with messages like "... epel/updateinfo | 514 kB 00:00 http://mirror.seas.harvard.edu/epel/...teinfo.xml.gz: [Errno -3] Error performing checksum Trying other mirror. ... (then finally) ... Error: failure: repodata/73f710ca75f4879d6e4c7c08c4bac44f3a3b50f57756e5d711665bcd40e735cf-updateinfo.xml.gz from epel: [Errno 256
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 l