Yum Keeps Giving Error

Michael Schwendt mschwendt at gmail.com
Mon Mar 3 19:05:14 UTC 2008


On Mon, 03 Mar 2008 23:56:48 +0530, Abhishek Rane wrote:

> > $ grep timestamp /var/cache/yum/livna/repomd.xml 
> >     <timestamp>1204481487</timestamp>
> >     <timestamp>1204481482</timestamp>
> >     <timestamp>1204481488</timestamp>
> >     <timestamp>1204481482</timestamp>
> >     <timestamp>1204481490</timestamp>
> >     <timestamp>1204481482</timestamp>
> >     <timestamp>1192366720</timestamp>
> >
> > Do you have a transparent proxy in the network?
> >
> > Can you debug a little bit and find out what "repomd.xml" file you
> > have in your /var/cache/yum/livna directory?
> > For example, fetch the metadata files manually and compare the
> > checksums stored within it?
> >
> > $ wget http://mirror.atrpms.net/livna/fedora/8/i386/repodata/repomd.xml
> > $ wget http://mirror.atrpms.net/livna/fedora/8/i386/repodata/primary.sqlite.bz2
> >
> > $ sha1sum primary.sqlite.bz2 
> > 17e08a77c8f23a55739894509335d8a707eec618  primary.sqlite.bz2
> >
> > That checksum should be listed in the repomd.xml file:
> >
> > $ grep 17e08 repomd.xml 
> >     <checksum type="sha">17e08a77c8f23a55739894509335d8a707eec618</checksum>
> >
> >   
> [Abhishek at localhost livna]$ ls
> cachecookie packages primary.sqlite repomd.xml
> 
> [Abhishek at localhost livna]$ grep timestamp repomd.xml
> <timestamp>1204449187</timestamp>
> <timestamp>1204449182</timestamp>
> <timestamp>1204449188</timestamp>
> <timestamp>1204449182</timestamp>
> <timestamp>1204449190</timestamp>
> <timestamp>1204449182</timestamp>
> <timestamp>1192366720</timestamp>

That is the latest.
 
> [Abhishek at localhost livna]$ grep 17e08 repomd.xml
> <checksum type="sha">17e08a77c8f23a55739894509335d8a707eec618</checksum>

Good, too.
 
> [Abhishek at localhost ~]$ wget 
> http://mirror.atrpms.net/livna/fedora/8/i386/repodata/primary.sqlite.bz2
> --23:50:01-- 
> http://mirror.atrpms.net/livna/fedora/8/i386/repodata/primary.sqlite.bz2
> => `primary.sqlite.bz2'
> Resolving mirror.atrpms.net... 130.133.35.16
> Connecting to mirror.atrpms.net|130.133.35.16|:80... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 273,424 (267K) [application/x-bzip2]

Should be:
Length: 278,041 (272K) [application/x-bzip2]

$ stat primary.sqlite.bz2 | grep Mod
Modify: 2008-03-02 10:13:10.000000000 +0100

See:
wget --server http://mirror.atrpms.net/livna/fedora/8/i386/repodata/primary.sqlite.bz2

> 100%[====================================>] 273,424 5.11K/s ETA 00:00
> 
> 23:50:37 (7.37 KB/s) - `primary.sqlite.bz2' saved [273424/273424]
> 
> [Abhishek at localhost ~]$ sha1sum primary.sqlite.bz2
> 883464cd0b58a064878e9969f07685ce41850149 primary.sqlite.bz2

For reasons to find out your network gives you an old file that is
inappropriate for the served repomd.xml file. Smells like a transparent
proxy.
 
> Should i overwrite the files primary.sqlite.bz2 and repomd.xml on the 
> previous ones stored in /var/cache/yum/livna ????

First you need a way to retrieve the latest metadata files.




More information about the fedora-list mailing list