View Full Version : Please Help, Why is my YUM not working??
jgdumont
11th April 2006, 09:25 PM
Hi,
For over a week i have been unable to get Yum or Yumex to do the job.
The in FC5 providet update or ad & remove software tools are olso not working.
I keep getting errors like :
[root@laptop jos]# yum -y update
Loading "installonlyn" plugin
Setting up Update Process
Setting up repositories
livna [1/5]
http://rpm.livna.org/fedora/5/i386/repodata/repomd.xml: [Errno 12] Timeout: <urlopen error timed out>
Trying other mirror.
http://livna.cat.pdx.edu/fedora/5/i386/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (97, 'Adresfamilie niet ondersteund door protocol')>
Trying other mirror.
http://wftp.tu-chemnitz.de/pub/linux/livna/fedora/5/i386/repodata/repomd.xml: [Errno 12] Timeout: <urlopen error timed out>
Trying other mirror.
http://ftp-stud.fht-esslingen.de/pub/Mirrors/rpm.livna.org/fedora/5/i386/repodata/repomd.xml: [Errno 12] Timeout: <urlopen error timed out>
Trying other mirror.
Cannot open/read repomd.xml file for repository: livna
failure: repodata/repomd.xml from livna: [Errno 256] No more mirrors to try.
Error: failure: repodata/repomd.xml from livna: [Errno 256] No more mirrors to try.
On other Computers On whitch I installed FC5 it is working fine
jcliburn
11th April 2006, 09:34 PM
Are you behind a proxy?
tomcat
11th April 2006, 11:44 PM
Firewall enabled? SELinux enabled? Check if some of those set to "disabled" might help. And run "yum clean all" before you restart.
jgdumont
12th April 2006, 06:55 AM
No I'm not behind a proxy, and have SElinux unabled.
The firewall is still enabled, I will try if Unabling it does the job.
jgdumont
12th April 2006, 08:07 PM
Disabeling the firewall had no effect
I did copy the yum.conf file and the whole Yum.repos.d folder from a computer whitout problems to my laptop. S
till the same. I can't figure out why It doesn't work.
mcnees
13th April 2006, 02:07 AM
If you're pulling packages from rawhide (the development branch), then it's because you've updated to the new fedora-release rpm. Re-install the fedore-release from core, and everything should work fine.
B
u-noneinc-s
13th April 2006, 02:20 AM
Have you tried "without" livna to see if the stock repos will work? How did you install the livna repo?
jcliburn
13th April 2006, 02:22 AM
Do you have network connectivity? Click this link. http://rpm.livna.org/fedora/5/i386/repodata/repomd.xml. What happens?
Firewing1
13th April 2006, 02:39 AM
Are you connected to the Internet? What NIC are you using?
Firewing1
jgdumont
13th April 2006, 07:15 AM
answer to mcnees:
I Don't think that I'm pulling packages from rawhide. Are You sugesting an complete re-installation of fc5?. I realy dont won't to start all over again. :eek:
answer to U-moneic-s:
Yes, I treid it whitout he livna repo's. I also treid whit only the core repo anabled.
jcliburn / Firewing1:
I have good netwerk connectivity. I can use the internet as usual. What happens when I click the link I have to try later, when I get home from work.
My NIC is the Intel 2200BG chipset.
Thanks for all your reactions so far :)
neilloffhagen
13th April 2006, 08:35 AM
No, it wasnb't a suggestion to re-install FC5, but to run the fedora-release-5-5.noarch.rpm to reset your yum repos. You can get it from the mirrors. Here's a link to one in Europe:
ftp://ftp.uni-klu.ac.at/linux/fedora/linux/core/5/i386/os/Fedora/RPMS/fedora-release-5-5.noarch.rpm
Just download and install it and then see if yum works.
Neil.
jgdumont
13th April 2006, 08:41 AM
No, it wasnb't a suggestion to re-install FC5, but to run the fedora-release-5-5.noarch.rpm to reset your yum repos. You can get it from the mirrors. Here's a link to one in Europe:
ftp://ftp.uni-klu.ac.at/linux/fedora/linux/core/5/i386/os/Fedora/RPMS/fedora-release-5-5.noarch.rpm
Just download and install it and then see if yum works.
Neil.
Thanks, I wil try this as soon I'm at home.
jgdumont
13th April 2006, 10:29 PM
Do you have network connectivity? Click this link. http://rpm.livna.org/fedora/5/i386/repodata/repomd.xml. What happens?
When I click the link I can see the XML data in an webpage. So that's not the problem.
I also did re-install the Yum repo's as neilloffhagen sugested. Whit NO result at all. :(
This is the result from an Yum update:
Loading "installonlyn" plugin
Setting up Update Process
Setting up repositories
core [1/5]
Cannot find a valid baseurl for repo: core
Error: Cannot find a valid baseurl for repo: core
Any more ideas? :confused: :confused:
u-noneinc-s
13th April 2006, 11:25 PM
Compare your core repo to mine and if it's different, post them all (or the relative ones anyway). If it's the
same, you have a strange problem indeed.
I have read that core 5 has changed the way it handles repos. I don't know what that means, but I think it
has to do with the way they are installed (I don't remember). But I think this still applies...There should be a
blank line (enter) at the bottom of each repo.
mark@spongie 18 /etc/yum.repos.d =>m fedora-core.repo
[core]
name=Fedora Core $releasever - $basearch
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$ba
search/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/$bas
earch/debug/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GP
G-KEY
[core-source]
name=Fedora Core $releasever - Source
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/sour
ce/SRPMS/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GP
G-KEY
It wouldn't hurt to post your yum config too.
More questions. Did it ever work? Was this a fresh install or an upgrade?
I upgraded from 3 to 5 but before I did anything, I copied a friends yum config and repos.d and replaced
mine even before I did the upgrade just because I read so many FC5 yum problems on this forum.
Firewing1
13th April 2006, 11:28 PM
Yes -- If you're trying to do a core update via yum it's not a good idea -- I'd format & fresh install...
Firewing1
u-noneinc-s
13th April 2006, 11:39 PM
Firewing1, I believe he has 5 installed but no working yum. I was assuming he did a CD/DVD upgrade or a fresh install and
not a yum upgrade, but it's a good point.
Personally, I did an upgrade through CDs.
jgdumont
14th April 2006, 07:39 AM
I indeed have FC% installed and not working Yum
It was an fresch install end in the beginnig it did not work, after a while it workt for some time. Then Suddely it stopt working.
I didi do the following now, whit some strange results.
I removed all files from the /etc/yum.repo.d/ folder. Than I did a
rpm -ihv --force http://rpm.livna.org/fedora/5/i386/livna-release-5-4.noarch.rpm
Now yum works just fine. (of corce only whit the packagesf rom livna).
Later today I will try what happens whe I coppy the repo-files from another pc to mine.
u-noneinc-s
14th April 2006, 08:00 AM
Good new. At least your making progress. In the future, when you get "trying other mirrors" messages, that usually means
the mirrors temporarily down or are very busy. On more than 1 occassion I have sat here and watched extras try several
different mirrors before it finally found a good one. (maybe 7 or 8 mirrors?). And that's not counting the times it's taken a
very long time for yumex to load the repos. I know it's searching mirrors, it just doesn't say so in the output.
Whenever that happens, wait a few minutes and try again.
When yum couldn't find a valid baseurl for repo: core, you didn't happen to uncomment the baseurl line in that repo did
you? In another thread, someone suggested that uncommenting the baseurl line prevents yum from trying the mirrors.
Firewing1
14th April 2006, 03:59 PM
You could also force a install of the fedora-release RPM the same way you did Livna to get the .repo's back...
Firewing1
jgdumont
14th April 2006, 08:54 PM
This is what I can reproduce everythime.
I delete all the repo's in /etc/yum.repos.d
than I rpm -ihv --force http://rpm.livna.org/fedora/5/i386/...-5-4.noarch.rpm
Now the Livna repo's work fine. When I put the Fedora repos (rpm -ihv --force /home/jos/Downloads/fedora-release-5-5.noarch.rpm).
Now Nothing works anymore. And I have to remove and re-install the Livna Repos to at least get thém to work.
The same happens when emty the /etc/yum.repos.d and only re-install the fedora repo's.
Then the Core repo seems to work. When I than ad the livna repo's. Yum doesn't work annymore.
It's like these repo's dont wont to work together.
This is my yum.conf
[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
metadata_expire=1800
u-noneinc-s
15th April 2006, 03:00 AM
Have you tried installing WITHOUT the --force switch. First reinstall the fedora release. test it, then install livna without the
force. I don't know if it will make any difference, but hey, what have you got to lose?
Or create the repos 1 by 1 with vi or gedit.
vi fedora-core.repo and enter the info
[core]
name=Fedora Core $releasever - $basearch
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$ba
search/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/$bas
earch/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/sour
ce/SRPMS/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY
and do the same for the rest.
I'd be happy to post mine for you to copy, I use freshrpms and dries but have livna installed too. with stock +
livna enabled and fresh and dries disabled, it worked fine.
(unless someone knows how to upload them)
jgdumont
15th April 2006, 08:35 PM
When I don't use the --force option. The installation stops. "package already installed"
I Will try you other sugestion.
u-noneinc-s
15th April 2006, 09:24 PM
OK, I see the --force in your previous post, I'll assume that is because installation stopped. I
nstead of installing on top of an existing repo, try this.
mv /etc/yum.repos.d /etc/yum.repos.d.old (You can probably just rm -rf it, since it doesn't work anyway, but if you mv it
you'll have something to compare it to when your done).
Next mkdir /etc/yum.repos.d (I don't know if installing the repos will create the dir) then install the fedora release and test it.
If it works, next install your livna and test it again. Let us know how it goes
I didn't "INSTALL" my repos, but copied them from a friend, and I added fresh and dries as per SMFinleys notes, but this
should "just work". Then I installed livna (rpm -i) and edited it so enabled=0.
best of luck
jgdumont
15th April 2006, 09:55 PM
I tried all of this, whitout any change. The wierd thing is that sometimes (lets say 1 in 25 ore more times) the core ore livna repos do work. Yesterday I even could update from livna.But a update (or in my case an install) is not possible if one of the repo's fails.
I realy dont now what to try next.
u-noneinc-s
15th April 2006, 10:24 PM
But a update (or in my case an install) is not possible if one of the repo's fails.
This is true in ALL cases. Problem repos have to be disabled, but in your case, well it seems you just have
problem after problem.
Is your problem that one time core will work and the next time it can't find a valid url for core or was that only
once, and usually your errors are "trying other mirrors"?
If you have yumex, you could setup 2 or 3 profiles. One for core, extras and updates, and one for livna and
extras and maybe one for all. You could even do one with just core and updates (updates will probably need
core for possible dependencies, and core and extras for extras and dependencies.
And if you have problems with any of those, with a click you can disable the problem repo and "refresh"
I basically only use the stock repos, and occassionally check the others to see what's available.
jgdumont
16th April 2006, 10:19 PM
Most of the time I get the message that It can't find a valid base url. Even when I try the repos each at a time (I am using yumex, but are also trying Yum in the console). Sometimes I can see the "trying other mirror" message. But this happens very rarely. As I said earlier, in random cases it seems to work. But it mostly doesn't
u-noneinc-s
16th April 2006, 10:33 PM
The only other sugestion I can make is to check core, extras and updates repos and make sure the baseurl line(s) are
commented out (#baseurl...) and the mirror lines are not. I would guess that is the way they get installed, but like I said,
mine came from a friend so I'm not sure how they look from "installing" them.
I personally have never seen the "can't find valid baseurl" message and being far less than an expert, I don't know if it
should be looking for a valid baseurl. I would suspect that mine does not look for baseurl since that line is commented
out. On the other hand, I see the mirrors errors quite often, but I have yet to "fail" because of it.
Truely sorry you are having so much trouble.
jgdumont
17th April 2006, 03:06 PM
I'm quite chore that my repos are ok. It has to be something ells. Maybe something whit my connection.
Maybe it's a bug in Yum.
I think, when I have some time left. I'm going to do a complete re install of fedora. This is getting no ware.
Tank's very much anyway. I really appreciate Your help.
Firewing1
18th April 2006, 12:49 AM
No problem, let us know how the new install goes.
Firewing1
thought
21st April 2006, 09:10 PM
try uncommenting any commented-out base url lines
jgdumont
26th April 2006, 08:31 AM
Hi, I'm back again.
I first did install ubuntu linux. Although it is a very nice distro, it is a lot more buggy. After trying a few days to get an internet connection I installed Fedora again yesterday. In fedora my nic works out of the box. After this fresh install yum and yumex works just fine. (I'm using a copy of my repos.d from the prior installation, so the repo's were not the problem. I hope it will keep working now.
Thanks to everyone who tried to help me.
u-noneinc-s
26th April 2006, 07:34 PM
As bart Simpson would say...Kewel. (Just plain kewel was too short to post)
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.