Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.
[root@someserver yum]# yum update
Loaded plugins: rhnplugin, security
rhel-x86_64-server-5                                     | 1.4 kB     00:00     
rhel-x86_64-server-5/primary                             | 3.4 MB     00:03     
rhel-x86_64-server-5                                                10025/10025
rhel-x86_64-server-supplementary-5                       | 1.4 kB     00:00     
rhel-x86_64-server-supplementary-5/primary               | 250 kB     00:00     
rhel-x86_64-server-supplementary-5/primary               | 250 kB     00:00     
rhel-x86_64-server-supplementary-5/primary               | 250 kB     00:00     
rhel-x86_64-server-supplementary-5/primary               | 250 kB     00:00     
Error: failed to retrieve repodata/f0************************************************74-primary.xml.gz from rhel-x86_64-server-supplementary-5
error was [Errno -1] Metadata file does not match checksum
[root@someserver yum]#

google says:

Based on the information above I've tried

yum clean all
rm -rf /var/cache/yum/*

in addtion to enabling and disabling the different "channels".

Anybody knows the solution to this?

share|improve this question

2 Answers 2

up vote 1 down vote accepted

This is a problem in RHN and it's CDN, where it is saying "XYZ" is the checksum for file A but when yum does a checksum on what it has downloaded it's not getting "XYZ" so refuses to use it.

I'd highly recommend you open a support ticket, or you can just wait for it to fix itself.

You probably want to link your support ticket to:

https://bugzilla.redhat.com/show_bug.cgi?id=638922

...which is where the current problem is being collected.

share|improve this answer
    
Thats what I ended up doing. Red Hat support told me to disable location aware updates. That solved the problem. –  Erik I Oct 10 '10 at 9:58

Have you tried yum makecache?

share|improve this answer
    
Tried it now. Same thing happened again. –  Erik I Oct 8 '10 at 10:54
    
"yum makecache" is just an even more expensive way of doing "yum clean all". The cheapest fix is "yum clean expire-cache" ... but none of those things will fix this kind of problem. –  James Antill Oct 8 '10 at 14:19

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.