LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   New install and have trouble yum update (http://www.linuxquestions.org/questions/linux-software-2/new-install-and-have-trouble-yum-update-319316/)

lmanwarren 05-02-2005 09:31 AM

New install and have trouble yum update
 
Did a fresh install of fedora 3 and want to set up yum and get the error at the bottom question is how can I fix it.I have done other installs and never got this why now.
[root@localhost ~]# gedit /etc/yum.repos.d/dag.repo
I/O warning : failed to load external entity "/root/.gnome2/gedit-metadata.xml"
[root@localhost ~]# gedit /etc/yum.repos.d/freshrpms.repo
[root@localhost ~]# rpm --import http://dag.wieers.com/packages/RPM-GPG-KEY.dag. txt
[root@localhost ~]# rpm --import http://freshrpms.net/packages/RPM-GPG-KEY.txt
[root@localhost ~]# rpm --import /usr/share/doc/fedora-release-*/*GPG-KEY*
[root@localhost ~]# yum update
Setting up Update Process
Setting up Repo: core
repomd.xml 100% |=========================| 951 B 00:00
Setting up Repo: dag
repomd.xml 100% |=========================| 1.1 kB 00:00
Setting up Repo: base
repomd.xml 100% |=========================| 1.1 kB 00:00
Setting up Repo: updates
repomd.xml 100% |=========================| 951 B 00:00
Setting up Repo: updates-released
repomd.xml 100% |=========================| 951 B 00:00
Setting up Repo: freshrpms
repomd.xml 100% |=========================| 951 B 00:00
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 830 kB 00:45
MD Read : ################################################## 2622/2622
core : ################################################## 2622/2622
primary.xml.gz 100% |=========================| 822 kB 00:03
MD Read : ################################################## 2216/2216
dag : ################################################## 2216/2216
primary.xml.gz 100% |=========================| 797 kB 00:02
MD Read : ################################################## 2623/2623
base : ################################################## 2622/2622
primary.xml.gz 100% |=========================| 347 kB 00:15
MD Read : ################################################## 896/896
updates : ################################################## 896/896
primary.xml.gz 100% |=========================| 349 kB 00:01
MD Read : ################################################## 872/872
updates-re: ################################################## 872/872
primary.xml.gz 100% |=========================| 150 kB 00:12
http://ayo.freshrpms.net/fedora/linu...rimary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
Error: failure: repodata/primary.xml.gz from freshrpms: [Errno 256] No more mirr ors to try.
[root@localhost ~]# yum install apt
Setting up Install Process
Setting up Repo: core
repomd.xml 100% |=========================| 951 B 00:00
Setting up Repo: dag
repomd.xml 100% |=========================| 1.1 kB 00:00
Setting up Repo: base
repomd.xml 100% |=========================| 1.1 kB 00:00
Setting up Repo: updates
repomd.xml 100% |=========================| 951 B 00:00
Setting up Repo: updates-released
repomd.xml 100% |=========================| 951 B 00:00
Setting up Repo: freshrpms
repomd.xml 100% |=========================| 951 B 00:00
Reading repository metadata in from local files
core : ################################################## 2622/2622
dag : ################################################## 2216/2216
base : ################################################## 2622/2622
updates : ################################################## 896/896
updates-re: ################################################## 872/872
primary.xml.gz 100% |=========================| 150 kB 00:04
http://ayo.freshrpms.net/fedora/linu...rimary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
Error: failure: repodata/primary.xml.gz from freshrpms: [Errno 256] No more mirr ors to try.
[root@localhost ~]#

homey 05-02-2005 09:57 AM

Here's what mine look like.
I import the keys with these commands:
Code:

rpm --import /usr/share/rhn/RPM-GPG-KEY-fedora
rpm --import http://download.fedora.redhat.com/pu...-Fedora-Extras

# cat /etc/yum.repos.d/fedora.repo
Code:

[base]
name=Fedora Core $releasever - $basearch - Base
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/
mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-core-$releasever
enabled=1
gpgcheck=1

[updates-released]
name=Fedora Core $releasever - $basearch - Released Updates
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/$basearch/
mirrorlist=http://fedora.redhat.com/download/mirrors/updates-released-fc$releasever
enabled=1
gpgcheck=1

# cat /etc/yum.repos.d/fedora-extras.repo
Code:

[extras]
name=Fedora Extras - $releasever - $basearch
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/$releasever/$basearch/
enabled=1
gpgcheck=1


ShaneK 05-02-2005 10:15 AM

Does your /etc/yum.repos.d/freshrpms.repo file look like this?

# $Id: freshrpms.repo 2478 2004-11-11 22:44:01Z dude $
[freshrpms]
name=Fedora Core $releasever - $basearch - Freshrpms
#baseurl=http://ayo.freshrpms.net/fedora/linux/$releasever/$basearch/freshrpms/
mirrorlist=http://ayo.freshrpms.net/fedora/linux/$releasever/mirrors-freshrpms
enabled=1
gpgcheck=1

It seems to me that YUM isn't too happy with freshrpms. If you have the same file that I am using, maybe you just need to try again. (you probably have) Every once in a while, I'll get an error, but I can't remember if that was it. It looks like everything else you are doing is correct.

Something else that may help: This file: /var/cache/yum/freshrpms/repomd.xml may not be matching up with what is being downloaded. Here's what the file looks like on my box:

<?xml version="1.0" encoding="UTF-8"?>
<repomd xmlns="http://linux.duke.edu/metadata/repo">
<data type="other">
<location href="repodata/other.xml.gz"/>
<checksum type="sha">f88a3eb07c8c631266e8201c73a1837db9d85f1f</checksum>
<timestamp>1113755555</timestamp>
<open-checksum type="sha">290667dfd3df3e94a55a72eb3c26dd3b2a542091</open-checksum>
</data>
<data type="filelists">
<location href="repodata/filelists.xml.gz"/>
<checksum type="sha">f754a1a798b7a72af675076c982eb127c14a3b09</checksum>
<timestamp>1113755555</timestamp>
<open-checksum type="sha">240a3b2527bc3c00164859aa86618fdfbdf8affc</open-checksum>
</data>
<data type="primary">
<location href="repodata/primary.xml.gz"/>
<checksum type="sha">77e7486e223a8a0a98bfed84588b8c438392239b</checksum>
<timestamp>1113755555</timestamp>
<open-checksum type="sha">ec263a070bc4ce47fb26a95dfaa70b0b81914868</open-checksum>
</data>
</repomd>

My line of thought here is that yum looks in either this file or some other checksum sort of file and isn't finding the correct checksum from what you're downloading.

Perhaps you need to remove anything involved with freshrpms, and reinstall the freshrpm repository related files. You probably wouldn't need to reimport the gpg key, but it wouldn't hurt, either.

Good luck.

ShaneK 05-02-2005 03:23 PM

Have a look at this thread:

http://www.linuxquestions.org/questi...hreadid=318934

Intimidator 05-03-2005 12:22 AM

http://forum.lowyat.net/lofiversion/...p/t143337.html


All times are GMT -5. The time now is 03:46 PM.