PDA

View Full Version : Freshing install of Fedora 9, can't use yum



OffbeatPatriot
16th June 2008, 01:07 AM
I just installed Fedora 9 and I keep getting errors about being unable to retrieve metadata from the repository, when I switch to root and enter yum update I get the following.


[root@localhost jarl]# yum update
Loaded plugins: refresh-packagekit
Could not retrieve mirrorlist http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-9&arch=x86_64 error was
[Errno 4] IOError: <urlopen error (110, 'Connection timed out')>
Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again


This is what's in my etc/yum.repos.d/fedora.repo


[fedora]
name=Fedora $releasever - $basearch
failovermethod=priority
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

[fedora-debuginfo]
name=Fedora $releasever - $basearch - Debug
failovermethod=priority
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/releases/$releasever/Everything/$basearch/debug/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-debug-$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

[fedora-source]
name=Fedora $releasever - Source
failovermethod=priority
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/releases/$releasever/Everything/source/SRPMS/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-source-$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

Seve
16th June 2008, 03:14 AM
Hello:
Your link seems to work fine here

Assuming you have a good connection to the internet.

Try
yum clean all
yum check-update

if that doesn't work, then try and post the output of
dig mirrors.cat.pdx.edu

Seve

forkbomb
16th June 2008, 03:50 AM
Can you confirm LAN and WAN connectivity? Trying pinging from the box to wherever.

If you're posting this from the same machine with the repo problem, and have internet connectivity working, then your yum cache may be messed up. Problems like this usually indicate:
1) No connection
2) yum's local cache, database, or metadata are borked
3) the mirror is down either temporarily or permanently

OffbeatPatriot
16th June 2008, 07:54 AM
I am in fact posting on the same computer I have the problem with.

This is the result of dig mirrors.cat.pdx.edu


; <<>> DiG 9.5.0b2 <<>> mirrors.cat.pdx.edu
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 6564
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 3, ADDITIONAL: 2

;; QUESTION SECTION:
;mirrors.cat.pdx.edu. IN A

;; ANSWER SECTION:
mirrors.cat.pdx.edu. 8982 IN CNAME opal.cat.pdx.edu.
opal.cat.pdx.edu. 8983 IN A 131.252.208.96

;; AUTHORITY SECTION:
cat.pdx.edu. 910 IN NS walt.ee.pdx.edu.
cat.pdx.edu. 910 IN NS dns0.pdx.edu.
cat.pdx.edu. 910 IN NS phloem.uoregon.edu.

;; ADDITIONAL SECTION:
walt.ee.pdx.edu. 7766 IN A 131.252.208.38
dns0.pdx.edu. 12582 IN A 131.252.120.128

;; Query time: 52 msec
;; SERVER: 192.168.0.1#53(192.168.0.1)
;; WHEN: Sun Jun 15 23:40:04 2008
;; MSG SIZE rcvd: 174


This is the result of yum clean all and yum check-update


Loaded plugins: refresh-packagekit
fedora | 2.4 kB 00:00
primary.sqlite.bz2 | 7.6 MB 00:11
updates | 2.3 kB 00:00
primary.sqlite.bz2 | 1.6 MB 00:02

NetworkManager.x86_64 1:0.7.0-0.9.4.svn3675. updates
NetworkManager-glib.x86_64 1:0.7.0-0.9.4.svn3675. updates
NetworkManager-gnome.x86_64 1:0.7.0-0.9.4.svn3675. updates
PackageKit.x86_64 0.1.12-13.20080522.fc9 updates
PackageKit-libs.x86_64 0.1.12-13.20080522.fc9 updates
and a whole lot of other something something updates.

Seve
16th June 2008, 08:01 AM
Hello:
From what you have posted it would appear that yum is working correctly. [unless I have misread something] ?

Go ahead and try

yum update

Seve

OffbeatPatriot
16th June 2008, 08:35 AM
Yes yes, it is indeed working now.

OffbeatPatriot
17th June 2008, 12:58 AM
Grr, yum clean all actually didn't fix the problem right away. I was going to post again in this topic because yum stopped working again, then it worked so I didn't post here, then it stopped working, now it works again. Also whenever it does work it's real slow and usually times out or fails to connect to one or two mirrors before finally downloading a package.

One thing I've been doing is removing that pound sign that's in front of baseurl under [fedora], putting it back in, and occasionally putting a pound in front of mirrorlist. I thought this might be doing something but it's probably just an illusion because yum seems so sporadic and I've yet to find a configuration of pound signs that makes yum consistently work.

Is there just something funny going on with yum right now?