Fedora 8 Yum Error Performing Checksum
Contents |
doing a yum update on a centos5 or rhel5 box, using rpms from a
Primary.sqlite.bz2: [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 python-hashlib rpm 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
I tried to apply the latest CentOS 5.3 updates to one of my servers last week, I noticed that I was getting
Python-hashlib Rpm Centos 5
a number of "Error performing checksum" errors: $ yum repolist Loaded plugins: yum metadata does not match checksum 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 createrepo sha1 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 http://www.openfusion.net/linux/yum_error_performing_checksum 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 http://prefetch.net/blog/index.php/2009/11/26/dealing-with-yum-checksum-errors/ 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, 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
error make me craze that the yum does not work for me http://forums.fedoraforum.org/archive/index.php/t-190545.html in fedora8 for some days. Research it for a long time to fix it. error performing Now share it. The error below: when you use yum to update or install , it will output below message "Errno -3] Error performing checksumTrying other mirror." Details error performing checksum in below : # yum update python b1d2a15ae36ee1cbf8009d2b0 100% |=========================| 12 MB 00:07 http://mirrors.163.com/fedora/development/x86_64/os/repodata/b1d2a15ae36ee1cbf8009d2b0101cbe686239648e24f166dfc571d35ee698cbe-primary.sqlite.bz2: [Errno -3] Error performing checksumTrying other mirror.b1d2a15ae36ee1cbf8009d2b0 100% |=========================| 12 MB 00:08 http://ubuntu.cn99.com/fedora/development/x86_64/os/repodata/b1d2a15ae36ee1cbf8009d2b0101cbe686239648e24f166dfc571d35ee698cbe-primary.sqlite.bz2: [Errno -3] Error performing checksumTrying other mirror.b1d2a15ae36ee1cbf8009d2b0 100% |=========================| 12 MB 01:20 http://mirror1.ku.ac.th/fedora/development/x86_64/os/repodata/b1d2a15ae36ee1cbf8009d2b0101cbe686239648e24f166dfc571d35ee698cbe-primary.sqlite.bz2: [Errno -3] Error performing checksumTrying other mirror.b1d2a15ae36ee1cbf8009d2b0 100% |=========================| 6.0 MB 01:58 b1d2a15ae36ee1cbf8009d2b0 100% |=========================| 12 MB 01:21 http://ftp.jaist.ac.jp/pub/Linux/Fedora/development/x86_64/os/repodata/b1d2a15ae36ee1cbf8009d2b0101cbe686239648e24f166dfc571d35ee698cbe-primary.sqlite.bz2: [Errno -3] Error performing checksumTrying other mirror.http://ftp.linux.org.tr/fedora/development/x86_64/os/repodata/b1d2a15ae36ee1cbf8009d2b0101cbe686239648e24f166dfc571d35ee698cbe-primary.sqlite.bz2: [Errno 14] HTTP Error 403: ForbiddenTrying other mirror.b1d2a15ae36ee1cbf8009d2b0 100% |=========================| 12 MB 02:43 ftp://ftp.sfc.wide.ad.jp/pub/Linux/Fedora/development/x86_64/os/repodata/b1d2a15ae36ee1cbf8009d2b0101cbe686239648e24f166dfc571d35ee698cbe-primary.sqlite.bz2: [Errno -3] Error performi
just installed f9 from a live disk (on an x86_64 on amd athalon 64 bit dual core ) and tried to add some applications but first had to download software updates but when i did this i got an error saying that package download failed and there are no more mirrors to try and to check my network connection but as i am and always are connected properly i think it is something to do with a failed checksum maybe ?? this is the first time i have used fedora at all but i am not new to linux ( used ubuntu for 6-8 months) but still dont know a great deal about it just enough to know that i need help with this problem.. any ideas or help on how to fix this would be appreciated Seve2nd June 2008, 04:02 AMHello: Open a terminal and log in as root using su - then type and enter yum clean all and then type and enter yum check-update and post the output Seve satanic-yobbo2nd June 2008, 04:35 AM[root@localhost satan]# yum check-update Loaded plugins: refresh-packagekit updates | 2.3 kB 00:00 primary.sqlite.bz2 | 1.0 MB 00:07 http://ringtail.its.monash.edu.au/pub/fedora/linux/updates/9/x86_64/repodata/primary.sqlite.bz2: [Errno -1] Metadata file does not match checksum Trying other mirror. primary.sqlite.bz2 | 1.0 MB 00:07 http://mirror.3fl.net.au/pub/fedora/linux/updates/9/x86_64/repodata/primary.sqlite.bz2: [Errno -1] Metadata file does not match checksum Trying other mirror. primary.sqlite.bz2 | 1.0 MB 00:06 http://mirror.aarnet.edu.au/pub/fedora/linux/updates/9/x86_64/repodata/primary.sqlite.bz2: [Errno -1] Metadata file does not match checksum Trying other mirror. primary.sqlite.bz2 | 1.0 MB 00:07 http://mirror.optus.net/fedora/linux/updates/9/x86_64/repodata/primary.sqlite.bz2: [Errno -1] Metadata file does not match checksum Trying other mirror. primary.sqlite.bz2 | 1.0 MB 00:07 http://mirror.internode.on.net/pub/fedora/linux/updates/9/x86_64/repodata/primary.sqlite.bz2: [Errno -1] Metadata file does not match checksum Trying other mirror. primary.sqlite.bz2 | 1.0 MB 00:06 http://ftp.iinet.net.au/pub/fedora/linux/updates/9/x86_64/repodata/primary.sqlite.bz2: [Errno -1] Metadata file does not match checksum Trying other mirror. primary.sqlite.bz2 | 1.0 MB 00:06 http://ringtail.its.monash.edu.au/pub/fedora/linux/updates/9/x86_64/repodata/primary.sqlite.bz2: [Errno -1] Metadata file does not match checksum Trying other mirror. primary.sqlite.bz2 | 1.0 MB 00:06 http://mirror.3fl.net.au/pub/fedora/linux/updates/9/x86_64/repodata/primary.sqlite.bz2: [Errno -1] Metadata file does not match checksum Trying other mirror. primary.sqlite.bz2 | 1.0 MB 00:06 http://m