Mrepo Yum Error Performing Checksum
Contents |
doing a yum update on a centos5 or rhel5 box, using rpms from a
Python-hashlib Rpm
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 primary.sqlite.bz2: [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
HCL Search Reviews Search ISOs Go to Page... LinuxQuestions.org > Forums > Linux Forums > Linux - Server error performing checksum from yum --security python-hashlib rpm centos 5 check-update User Name Remember Me? Password Linux - Server This forum is
Yum Metadata Does Not Match Checksum
for the discussion of Linux Software used in a server related context. Notices Welcome to LinuxQuestions.org, a friendly and
Yum Install Python-hashlib
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 http://www.openfusion.net/linux/yum_error_performing_checksum to threads and access many other special features. Registration is 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 http://www.linuxquestions.org/questions/linux-server-73/error-performing-checksum-from-yum-security-check-update-4175499424/ process or your account login, please contact us. If you need to reset your password, click here. 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
I tried to apply the latest CentOS 5.3 updates to one of my servers last week, http://prefetch.net/blog/index.php/2009/11/26/dealing-with-yum-checksum-errors/ 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 http://stackoverflow.com/questions/tagged/yum?page=2&sort=newest&pagesize=15 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 error performing 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 error performing checksum (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,
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question Tagged Questions info newest frequent votes active unanswered yum is a software package manager that installs, updates, and removes packages on RPM-based systems. learn more… | top users | synonyms 0 votes 0answers 91 views Dependency errors on Centos when running: yum -y install mariadb-server mariadb-devel I am following this guide to set up a server to run Ruby on Rails but I am getting dependency errors when I try to install MariaDB. I did some googling but could not find a solution. The command I am ... ruby-on-rails centos mariadb yum asked Oct 2 at 1:17 MrAutoIt 632113 0 votes 1answer 13 views yum: disable repo, downgrade packages but not uninstall them I'm running RHEL 6.0. I want to upgrade server management software on my server (Plesk, if this is relevant). I have a custom repo installed (Atomicorp), which I used to upgrade certain packages that ... redhat yum asked Oct 1 at 21:22 Bintz 10729 -1 votes 0answers 25 views how to install sssd on linux I tried to install sssd using yum on my linux node. But it returns no package found. sudo yum install sssd Setting up Install Process No package sssd available. Nothing to do I am on old version of ... linux redhat yum sssd asked Sep 30 at 17:47 suman j 1,48811240 0 votes 1answer 20 views yum install , Update returns 404 error in centos 6.6 yum doesnt work at all, yum install , update doesnt work gives below error yum update Loaded plugins: fastestmirror Setting up Update Process Loading mirror speeds from cached hostfile * epel: ... centos6 yum asked Sep 28 at 5:54 Ahi 135 0 votes 1answer 27 views Yum is not working anymore in scientific linux after python update Im using a scientific linux on a remote machine. I tried to install python 2.7 on it. After t