LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   yum does not work (https://www.linuxquestions.org/questions/fedora-35/yum-does-not-work-521772/)

pbaumgar 01-22-2007 01:32 PM

yum does not work
 
I'm running 2.6.18-1.2869.fc6. When I issue the yum command I get this:

[pbaumgar@mrhat ~]$ yum update
Loading "installonlyn" plugin

Could not find any working storages.
[pbaumgar@mrhat ~]$


Any ideas?

b0uncer 01-22-2007 01:42 PM

You should have some reposities configured in /etc/yum.d/ if I remember the path correctly. They are basically text files, one file per one reposity ('storage'), containing some information like URLs for mirrors. There is plenty of information on how to add new reposities, and probably configuring old ones too (the easiest method is to download an rpm that adds some reposities for you), on the net so go ahead; I'd search for an rpm for Fedora Core 6 reposities. Download and after manual installation you should be fine.

If files do exist, check out they are accessible (permissions) and contain correct information (i.e. you can ping the addresses).

pbaumgar 01-22-2007 02:10 PM

I already have several files in /etc/yum.repos.d/ :

[pbaumgar@mrhat yum.repos.d]$ ls -l
total 32
-rw-r--r-- 1 root root 1051 Jan 22 14:49 fedora-core.repo
-rw-r--r-- 1 root root 1747 Jan 22 14:54 fedora-development.repo
-rw-r--r-- 1 root root 1487 Jan 22 14:54 fedora-extras-development.repo
-rw-r--r-- 1 root root 978 Jan 22 14:50 fedora-extras.repo
-rw-r--r-- 1 root root 517 Oct 15 14:07 fedora-legacy.repo
-rw-r--r-- 1 root root 1036 Jan 22 14:49 fedora-updates.repo
-rw-r--r-- 1 root root 1109 Jan 22 14:55 fedora-updates-testing.repo


They all look similar to this (pointing to download.fedora.redhat.com) :

[core]
name=Fedora Core $releasever - $basearch
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=core-$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

[core-debuginfo]
name=Fedora Core $releasever - $basearch - Debug
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/debug/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=core-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

[core-source]
name=Fedora Core $releasever - Source
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/source/SRPMS/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=core-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

pbaumgar 01-22-2007 03:18 PM

Also, here 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

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d

LarryDoliver 01-25-2007 11:48 PM

are you running it as root or via sudo?

decrepit 01-26-2007 01:05 AM

you could try commenting out the baseurl, then yum should try the mirror lists.
Like so.
name=Fedora Core $releasever - $basearch
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=core-$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

mail510403 01-26-2007 03:48 AM

If you are running FC6 x86_64, I strongly recommend against doing yum update.

For me, it results in nothing but a totaly destabilized system with impossible to fix dependency problems, multiple versions of the same thing, both x86_64 and i386 versions of stuff, etc. This is for a default install with no additional repositories. Basically, the system becomes a disaster.

Junior Hacker 01-26-2007 05:23 AM

Don't be scaring people like that mail510403

I have Fedora 6 x86_64 and do my updates via main menu/system/software updater which is also YUM, I got an error with Frysk update, removed the check mark next to it, and completed updates. Then via command line issued these two commands to take care of Frysk:

yum remove frysk

yum install frysk

Fully updated as I write.

Junior Hacker 01-26-2007 05:53 AM

Also

There has been reports of a bug in yum itself of the CD/DVD installation, you may want to update that single package first if you prefer updating via command line.

maestro52 01-26-2007 03:42 PM

I am also having strange problems with YUM!
 
I hope you will forgive me if I should have created my own thread, but I am thinking my problems might be related.

Anyway, I upgraded from FC5 to FC6 by installing the FC6 Release and then used YUM and except for the download speed being much slower than it should have been (I have a 2048 kbps connection and YUM downloaded at an average of 620 kbps) Yum downloaded and installed with no errors or problems. Oh, I did have to erase a couple rpms to take care of 3 dependencies, but that was it.

After I rebooted and went to yumex to see if there were any other updates for FC6 as is usually the case after a new install it took nearly 2 hours for Yumex to function and that included having to reboot 4 times. In the first attempt it tried to get all updates from FC5 mirrors. In the rest of the attempts it used the FC6 mirrors but it constantly froze. It was as if I was using a 14 KBPS telephone connection! It finally worked, but it was extremely slow.

Now, because I do not leave my computer on when I go to bed, I do all my updating manually. Fedora typically has new updates and such almost every day. But YUM in the terminal and YUMEX both are impossible. I can download almost 20 times faster from RPM.Pbone.net but I have to know what is available.

Does anyone know what is wrong with YUM?

maestro52 01-26-2007 04:00 PM

Sorry! I forgot something.
 
I am still havin gproblems with YUM but I forgot to mention something I perhaps ignorantly neglected to think of.

When YUMEX started the first time, it would go through the plugins and then start to do it's search routine, but would post a claim that "The cache version 7 needed to be updated to version 9" and it would repeat that 4 times through the repos being searched. Now it says, "sqlite cache needs updating", goes through through the primary part of the repos search and then freezes. I have no idea what is wrong. Does anyone know??


All times are GMT -5. The time now is 11:02 AM.