PDA

View Full Version : yum - unable to open url


npaul
2006-08-03, 01:59 PM CDT
hi, i'm new to fedora. I just installed fedora fc5. I'm having problems with yum commands like the following:
yum update
yum install gcc

When I do yum update I get the following message:
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv vvvvvvvvvvvvvvvvvvvvvvv
[root@pdsdfc5 ~]# yum update
Loading "installonlyn" plugin
Setting up Update Process
Setting up repositories
core [1/5]
http://download.fedora.redhat.com/pub/fedora/linux/core/5/i386/os/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-2, 'Name or service not known')>
Trying other mirror.
Cannot open/read repomd.xml file for repository: core
failure: repodata/repomd.xml from core: [Errno 256] No more mirrors to try.
Error: failure: repodata/repomd.xml from core: [Errno 256] No more mirrors to try.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^



It seems like it's having problems getting to the network from the terminal. But I do have a network connection on this machine. That how I'm able to post this message.

my fedora-core.repo looks like the following:
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv vvvvvvvvvvvvvvvvvvvvvvv
[core]
name=Fedora Core $releasever - $basearch
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/
#baseurl=file:///root/RPMS
mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-core-$releasever
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

[core-debuginfo]
name=Fedora Core $releasever - $basearch - Debug
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/debug/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

[core-source]
name=Fedora Core $releasever - Source
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/source/SRPMS/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


Can anyone help me on where to start with this problem???



Thanks,
npaul

Seve
2006-08-03, 02:23 PM CDT
Hello:
The message you are getting sometimes is normal as the repos are busy or down etc. Usually, if you wait a few minutes and try again, you will likely not see it.

In the meantime, you may want to try
yum clean all
then
yum -y update yum
and then try your regular yum update etc.

Seve

npaul
2006-08-03, 02:40 PM CDT
i did 'yum clean'
then when i tried 'yum -y update yum', i get the following similar to before:
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv vvvv
[root@pdsdfc5 ~]# yum -y update yum
Loading "installonlyn" plugin
Setting up Update Process
Setting up repositories
core [1/5]
http://download.fedora.redhat.com/pub/fedora/linux/core/5/i386/os/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-2, 'Name or service not known')>
Trying other mirror.
Cannot open/read repomd.xml file for repository: core
failure: repodata/repomd.xml from core: [Errno 256] No more mirrors to try.
Error: failure: repodata/repomd.xml from core: [Errno 256] No more mirrors to try.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Here's some more info to my problem.... I noticed that if I try to get the above URL from a browser like mozilla, it's able to open the file. But from a termial it's not able to get thru:
the following is what i get when i do a 'wget <above url>'
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv vvvvvv
[root@pdsdfc5 ~]# wget http://download.fedora.redhat.com/pub/fedora/linux/core/5/i386/os/repodata/repomd.xml repomd.xml
Error parsing proxy URL http://:8080/: Invalid host name.
Error parsing proxy URL http://:8080/: Invalid host name.

FINISHED --16:32:11--
Downloaded: 0 bytes in 0 files
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Seve
2006-08-03, 03:22 PM CDT
Hello:
It looks like you have modified your /etc/yum.repos.d/fedora-core.repo ?
my fedora-core.repo looks like the following
[core-debuginfo]
name=Fedora Core $releasever - $basearch - Debug
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/debug/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

[core-source]
name=Fedora Core $releasever - Source
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/source/SRPMS/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY


As far as I am aware this is the default?
[core]
name=Fedora Core $releasever - $basearch
#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
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

[core-debuginfo]
name=Fedora Core $releasever - $basearch - Debug
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/debug/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

[core-source]
name=Fedora Core $releasever - Source
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/source/SRPMS/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

Try setting the enabled=1 to enabled=0 for both [core-source] and [core-debuginfo] save, exit and try yum again.
Seve

npaul
2006-08-07, 09:53 AM CDT
thanks for your help. i'm sitting behind a proxy and had to set up the proxy variables according in the .bashrc file and /etc/yum.conf files.