PDA

View Full Version : yum "Metadata file does not match checksum" problem


scottmuz
2nd August 2005, 11:57 PM
I am being plagued by the following problem when doing
yum upgrade:

primary.xml.gz 100% |=========================| 59 kB 00:00
http://apt.kde-redhat.org/apt/kde-redhat/fedora/4/i386/stable/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum

The problematic repo is most commly kde-redhat but not exclusively.

I've tried the standard solutions recommended on various threads I've found googling i.e.:
yum clean all
yum makecache
wget --cache=off http://apt.kde-redhat.org/apt/kde-redhat/fedora/4/i386/stable/repodata/primary.xml.gz
etc, etc
But the problem persists.

I've resorted to commenting out the line that throws the exception in the yum source to get around the issue.

As far as I can tell the problem is due some sort of caching issue and commenting out the exception doesn't seem to cause any problems.

Am I the only one who has this problem persistently?

Jman
4th August 2005, 12:56 AM
I got it from the updates mirrors today, tried every one. I think this may happen when it gets updated with new packages, because mine started working again.

DMBGO
21st August 2005, 02:44 AM
I got it from the updates mirrors today, tried every one. I think this may happen when it gets updated with new packages, because mine started working again.
This seems to be a common problem and most of the posts I've seen say that they believe it is a problem with upstram transparent proxies. One solution is to force a refresh of upstream proxies. See the following posts: http://lists.freshrpms.net/pipermail/freshrpms-list/2005-May/013043.html
http://lists.freshrpms.net/pipermail/freshrpms-list/2004-August/010611.html

I hope this helps, but it seems to me that there needs to ba e a more permanent fix here. It's frustating to have yum break continually.

scottmuz
14th December 2005, 10:19 PM
After 6 months of living with this issue, I've finally found the solution
is to add:
http_caching=packages
to the yum.conf file (or just for the definition of the troublesome repo).

Armitage
12th June 2006, 06:04 PM
After 6 months of living with this issue, I've finally found the solution
is to add:
http_caching=packages
to the yum.conf file (or just for the definition of the troublesome repo).

Just googled up this old thread and wanted to add that this solution worked for me!

LarryJ
14th June 2006, 03:57 PM
I think scottmutz has the solution! Thanks scott!
gedit /etc/yum.conf
then add the line
http_caching=packages
My yum.conf now shows:
[main]
# next line (re http_caching) added by LJ to fix Error1 Metadata doesn't match ... on 6/14/06
http_caching=packages
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
metadata_expire=1800

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d

zcworld
4th September 2006, 05:54 AM
nope i got the same problem on 64 bit ver
same problem with that line added

zcworld
19th September 2006, 02:29 AM
ok i got it to work in the end
i did this
mv /var/cache/yum/* /tmp
than i run the yum install <appz>

after it downloaded the metadata files ... than it download and install what i wantted

congoclash
25th November 2006, 01:08 PM
Adding the line "http_caching=packages" worked for me on FC6 Rawhide (almost FC7)
many thanks

congoclash
29th November 2006, 03:24 PM
I take it back, it broke again. It's better to just dump the contents of /var/cache/yum and "check updates" in gnome-yum or whatever you're using to regenerate the cache.

aragorn_246
3rd December 2006, 06:54 PM
I take it back, it broke again. It's better to just dump the contents of /var/cache/yum and "check updates" in gnome-yum or whatever you're using to regenerate the cache.

Give that man a cookie!
A hour of fruitless googling, but remembered FedoraForum and bingo - a solution that works.
:)

WhiteKnight
19th December 2006, 01:41 AM
:) You saviour !!! Give that man a pat on the back and 3 gold stars !!!

Regards

Dave K.

ole_ersoy
3rd January 2007, 06:07 AM
I updated my yum configuration file.

Then did
rm -fr /var/cache/yum/*

And it works!!!

Thanks!!!

jamesrw
1st February 2007, 06:07 PM
brilliant!

fire_chrome
3rd February 2007, 06:06 PM
primary.xml.gz 100% |=========================| 1.8 MB 03:01
http://zeniv.linux.org.uk/pub/distributions/fedora/linux/extras/6/i386/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
primary.xml.gz 100% |=========================| 1.8 MB 03:08
http://ftp-stud.fht-esslingen.de/pub/fedora/linux/extras/6/i386/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
ftp://ftp.free.fr/mirrors/fedora.redhat.com/fedora/linux/extras/6/i386/repodata/primary.xml.gz: [Errno 4] IOError: [Errno ftp error] (111, 'Connection refused')
Trying other mirror.
ftp://mirror.newnanutilities.org/pub/fedora/linux/extras/6/i386/repodata/primary.xml.gz: [Errno 4] IOError: [Errno ftp error] (111, 'Connection refused')
Trying other mirror.
primary.xml.gz 100% |=========================| 1.8 MB 00:48
http://ftp.gui.uva.es/sites/fedora.redhat.com/extras/6/i386/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
primary.xml.gz 100% |=========================| 1.8 MB 00:56
http://download.fedora.redhat.com/pub/fedora/linux/extras/6/i386/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
primary.xml.gz 100% |=========================| 1.8 MB 00:48
http://sunsite.informatik.rwth-aachen.de/ftp/pub/linux/fedora-extras/6/i386/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
primary.xml.gz 100% |=========================| 1.8 MB 02:15
http://ftp1.skynet.cz/pub/linux/fedora/extras/6/i386/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
ftp://ftp.wsisiz.edu.pl/pub/linux/fedora/linux/extras/6/i386/repodata/primary.xml.gz: [Errno 4] IOError: [Errno ftp error] (111, 'Connection refused')
Trying other mirror.
primary.xml.gz 100% |=========================| 1.8 MB 00:49
http://ftp.rhd.ru/pub/fedora/linux/extras/6/i386/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
http://sunsite.mff.cuni.cz/pub/fedora-extras/6/i386/repodata/primary.xml.gz: [Errno 12] Timeout: <urlopen error timed out>
Trying other mirror.
ftp://ftp.uninett.no/pub/linux/fedora/extras/6/i386/repodata/primary.xml.gz: [Errno 4] IOError: [Errno ftp error] (111, 'Connection refused')
Trying other mirror.
primary.xml.gz 100% |=========================| 1.8 MB 01:06
http://mirror.linux.duke.edu/pub/fedora/linux/extras/6/i386/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
primary.xml.gz 100% |=========================| 1.8 MB 03:19
http://fr.rpmfind.net/linux/fedora/extras/6/i386/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum



i have change the config file but it still happen. so any solution? seriusly noob here ^_^

linuxfool
5th April 2007, 09:53 AM
I think scottmutz has the solution! Thanks scott!
gedit /etc/yum.conf
then add the line
http_caching=packages
My yum.conf now shows:
[main]
# next line (re http_caching) added by LJ to fix Error1 Metadata doesn't match ... on 6/14/06
http_caching=packages
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
metadata_expire=1800

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d

worked for me like a breeze after adding the line in /etc/yum.conf .

yonex
13th June 2008, 08:47 AM
I just add [http_caching=packages] to my /etc/yum.conf then run `yum clean metadata`, after that I can update by yum again. :p

El_BrandO
4th July 2008, 10:55 PM
Adding http_caching=packages to my yum.conf file and THEN running yum clear metadata fixed the problem for me. Running Fedora 9.

D0LLAR
9th March 2009, 12:34 PM
scottmuz solutions worked for me on fedora 10... after a morning of head banging till i foud this post..
cheerz!