Createrepo Error Performing Checksum
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 Metadata Does Not Match 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
[Errno -3] Error performing checksum Issues related to software problems. disable epel Post Reply Print view Search Advanced search 4 posts
Error Performing Checksum Primary Xml Gz
• Page 1 of 1 DeamonMV Posts: 2 Joined: 2013/09/18 11:37:27 [SOLVED] yum:: [Errno createrepo sha1 -3] Error performing checksum Quote Postby DeamonMV » 2013/09/18 12:03:31 Hi all.Update centos from 5.5 to 5.8 , and then i what http://www.openfusion.net/linux/yum_error_performing_checksum to update system.when i use command yum update i have this result::Code: Select all[root@astzabbix yum]# yum update
epel/primary_db | 4.6 MB 00:06
http://ftp.colocall.net/pub/epel/6/i386/repodata/a7f39f69ba586d8515ae7d32204622b1cbdad9373222fea554a90faa6e60d61a-primary.sqlite.bz2: [Errno -3]
Error performing checksum Trying other mirror. epel/primary_db http://www.centos.org/forums/viewtopic.php?t=22483 To the solve this problem i did this:"vi /etc/yum/pluginconf.d/fastestmirror.conf" and set "enable=0" linkyum clean allyum clean metadatano one of this command doesn't help me. how to be?Sorry for my English. Top gerald_clark Posts: 10594 Joined: 2005/08/05 15:19:54 Location: Northern Illinois, USA [SOLVED] yum:: [Errno -3] Error performing checksum Quote Postby gerald_clark » 2013/09/18 12:43:33 Disable epel and try again. Top DeamonMV Posts: 2 Joined: 2013/09/18 11:37:27 Re: [SOLVED] yum:: [Errno -3] Error performing checksum Quote Postby DeamonMV » 2013/09/18 13:38:34 Code: Select all[epel] name=Extra Packages for Enterprise Linux 6 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
failovermethod=priority
[b]enabled=1 [/b]
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
Thank you. I had such a record in the file. I've changed enabled=1 to enabled=0. and everything is working again. Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1
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 http://stackoverflow.com/questions/26275190/error-performing-checksum 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 checksum
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 x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Error performing checksum up vote 0 down vote favorite While installing package using yum it throws [Errno -3] Error performing checksum I found the specific package has been upgraded to checksum download option. How to fix this issue? I tried to create createrepo -dv . and changing base url in /etc/yum.conf, but didn't yield any result. Basically I am facing while installing rails in linux: Linux xxxx 2.6.18-371.0.0.0.1.el5xen #1 SMP Tue Oct 1 05:48:31 PDT 2013 x86_64 x86_64 x86_64 GNU/Linux bash-3.2$ sudo yum install gcc-c++ patch readline readline-devel zlib zlib-devel Password: base | 1.9 kB 00:00 base/primary_db | 1.9 kB 00:00 el5_latest | 1.4 kB 00:00 epel | 3.7 kB 00:00 hudson | 2.9 kB 00:00 hudson/primary_db | 4.8 kB 00:00 http://hudson-ci.org/redhat/repodata/6033de5d5abbc355e98d833bbc0b821cdbad47f72b7fafe0fb82c297197f66dc-primary.sqlite.bz2: [Errno -3] Error performing checksum Trying other mirror. hudson/primary_db | 4.8 kB 00:00 http://hudson-ci.org/redhat/repodata/6033de5d5abbc355e98d833bbc0b821cdbad47f72b7fafe0fb82c297197f66dc-primary.sqlite.bz2: [Errno -3] Error performing checksum Trying other mirror. Error: failure: repodata/6033de5d5abbc355e98d833bbc0b821cdbad47f72b7fafe0fb82c297197f66dc-primary.sqlite.bz2 from hudson: [Errno 256] No more mirrors to try. java ruby-on-rails linux ubuntu redhat share|improve this question edited Oct 9 '14 at 10:03 Micer 2,26611734 asked Oct 9 '14 at 9:41 Anil 69521430 ad