Re: Yum Keeps Giving Error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Michael Schwendt wrote:
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@localhost livna]$ ls
cachecookie packages primary.sqlite repomd.xml

[Abhishek@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@localhost livna]$ grep 17e08 repomd.xml
<checksum type="sha">17e08a77c8f23a55739894509335d8a707eec618</checksum>

Good, too.
[Abhishek@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@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.

I guess it works this way but not without disabling freshrpms .I changed my ip address to another one ( i am using static ips)..Now how to remove the freshrpms repo?? [Abhishek@localhost ds]$ wget --server http://mirror.atrpms.net/livna/fedora/8/i386/repodata/primary.sqlite.bz2 --22:27:07-- 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...
 HTTP/1.1 200 OK
 Date: Tue, 04 Mar 2008 12:58:14 GMT
 Server: Apache/2.2.3 (Red Hat)
 Last-Modified: Sun, 02 Mar 2008 18:11:30 GMT
 ETag: "ed0055-43e19-4477833599880"
 Accept-Ranges: bytes
 Content-Type: application/x-bzip2
 Content-length: 278041
 Connection: Keep-Alive
 Age: 100744
Length: 278,041 (272K) [application/x-bzip2]

100%[====================================>] 278,041 9.67K/s ETA 00:00

22:27:42 (7.92 KB/s) - `primary.sqlite.bz2' saved [278041/278041]
-----------------------------------------------------------------------------------------
[Abhishek@localhost ds]$ stat primary.sqlite.bz2 | grep Mod
Modify: 2008-03-02 23:41:30.000000000 +0530
-----------------------------------------------------------------------------------------
sudo yum --disablerepo=freshrpms install firefox picasaLoading "fastestmirror" plugin
Loading mirror speeds from cached hostfile
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
--> Processing Dependency: gecko-libs = 1.8.1.10 for package: devhelp
--> Processing Dependency: gecko-libs = 1.8.1.10 for package: epiphany
--> Processing Dependency: gecko-libs = 1.8.1.10 for package: yelp
--> Processing Dependency: gecko-libs = 1.8.1.10 for package: epiphany-extensions
--> Processing Dependency: gecko-libs = 1.8.1.10 for package: liferea
--> Processing Dependency: firefox = 2.0.0.10-3.fc8 for package: firefox-devel
---> Package picasa.i386 0:2.2.2820-5 set to be updated
---> Package firefox.i386 0:2.0.0.12-1.fc8 set to be updated
--> Running transaction check
---> Package epiphany.i386 0:2.20.2-3.fc8 set to be updated
---> Package epiphany-extensions.i386 0:2.20.1-5.fc8 set to be updated
---> Package firefox-devel.i386 0:2.0.0.12-1.fc8 set to be updated
---> Package yelp.i386 0:2.20.0-7.fc8 set to be updated
---> Package liferea.i386 0:1.4.11-2.fc8 set to be updated
---> Package devhelp.i386 0:0.16.1-5.fc8 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
picasa                  i386       2.2.2820-5       google             21 M
Updating:
firefox                 i386       2.0.0.12-1.fc8   updates            21 M
Updating for dependencies:
devhelp                 i386       0.16.1-5.fc8     updates           198 k
epiphany                i386       2.20.2-3.fc8     updates           5.4 M
epiphany-extensions     i386       2.20.1-5.fc8     updates           833 k
firefox-devel           i386       2.0.0.12-1.fc8   updates           3.5 M
liferea                 i386       1.4.11-2.fc8     updates           978 k
yelp                    i386       2.20.0-7.fc8     updates           710 k

Transaction Summary
=============================================================================
Install 1 Package(s) Update 7 Package(s) Remove 0 Package(s)
Total download size: 53 M
Is this ok [y/N]: n


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux