PDA

View Full Version : yum - dead in the water?



MThomas
5th February 2007, 08:16 PM
Hi friends,
I am relatively new to fedora core and to yum. It worked great until ot stopped! :(
I checked the log and found that it had not been touched since January 26th. Here are the last entries:

Jan 23 11:13:15 Installed: wine.i386 0.9.29-1.fc6
Jan 25 10:46:48 Installed: gstm.i386 1.2-5.fc6
Jan 26 10:11:45 Installed: glib-devel.i386 1:1.2.10-26.fc6
Jan 26 10:11:51 Installed: gtk+-devel.i386 1:1.2.10-55.fc6
Here is what happens when I run yum:

yum update yum
Loading "installonlyn" plugin
Setting up Update Process
Setting up repositories
livna 100% |=========================| 1.1 kB 00:00
core 100% |=========================| 1.1 kB 00:00
After the last line it just sits there for a long time and nothing happens. There is no network activity.
I cleared the cache and tried again.
Same thing.
Any ideas?

Thanks in advance.

Thomas

sdowney717
5th February 2007, 08:36 PM
can you run the add remove software package manager?
Or does it just sit there, if it cant eventually connect, it will give you an error.
If you are on dialup, it will be real slow.

marcrblevins
5th February 2007, 08:39 PM
Its working for me.

When it kinda hangs, I press Control C to make it go to the next.

Can you:
su -
cd /etc/yum.repos.d
grep enable *

MThomas
5th February 2007, 08:54 PM
The "Software Updater" just sits there as well with a window entitled "Retrieving Update Information". It doesn't even update the window so when you switch to a different desktop you get a blank window.
And here is what grep finds in /etc/yum.repos.d:

yum.repos.d]# grep enable *
fedora-core.repo:enabled=1
fedora-core.repo:enabled=0
fedora-core.repo:enabled=0
fedora-development.repo:enabled=0
fedora-development.repo:enabled=0
fedora-development.repo:enabled=0
fedora-extras-development.repo:enabled=0
fedora-extras-development.repo:enabled=0
fedora-extras-development.repo:enabled=0
fedora-extras.repo:enabled=1
fedora-extras.repo:enabled=0
fedora-extras.repo:enabled=0
fedora-legacy.repo:enabled=0
fedora-legacy.repo:enabled=0
fedora-updates.repo:enabled=1
fedora-updates.repo:enabled=0
fedora-updates.repo:enabled=0
fedora-updates-testing.repo:enabled=0
fedora-updates-testing.repo:enabled=0
fedora-updates-testing.repo:enabled=0
livna-devel.repo:enabled=0
livna-devel.repo:enabled=0
livna-devel.repo:enabled=0
livna.repo:enabled=1
livna.repo:enabled=0
livna.repo:enabled=0
livna-testing.repo:enabled=0
livna-testing.repo:enabled=0
livna-testing.repo:enabled=0

MThomas
5th February 2007, 08:56 PM
Sorry . . .
I forgot to mention that I am running this on superfast internet pipe. I work for an isp.
:-)

sideways
5th February 2007, 09:50 PM
It looks like fedora updates or extras can't be accessed, usually if you rerun later it will be ok.

When yum locks up at a later stage it can be due to a corrupt database, in that case you can reset everything as follows


yum clean all
rm -f /var/lib/rpm/__db.*
rpm --rebuilddb


The last step will take a few minutes.

But I wouldn't expect this to fix your problem with accessing the online repositories.
My updates and extras repositories are set like this



[Updates]
name=Fedora Core $releasever - $basearch - Updates
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/$basearch/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-fc$releasever&arch=$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora




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

MThomas
5th February 2007, 10:26 PM
I ran:

yum clean all
and removed the db files (if they were actually there):

rm -f /var/lib/rpm/__db.*
I then ran:

rpm --rebuilddb
And here is a listing of ...

ls -la /var/lib/rpm/*
-rw-r--r-- 1 rpm rpm 5345280 Jan 26 10:11 /var/lib/rpm/Basenames
-rw-r--r-- 1 rpm rpm 12288 Jan 23 10:53 /var/lib/rpm/Conflictname
-rw-r--r-- 1 rpm rpm 1183744 Jan 26 10:11 /var/lib/rpm/Dirnames
-rw-r--r-- 1 rpm rpm 5267456 Jan 26 10:11 /var/lib/rpm/Filemd5s
-rw-r--r-- 1 rpm rpm 24576 Jan 26 10:11 /var/lib/rpm/Group
-rw-r--r-- 1 rpm rpm 16384 Jan 26 10:11 /var/lib/rpm/Installtid
-rw-r--r-- 1 rpm rpm 49152 Jan 26 10:11 /var/lib/rpm/Name
-rw-r--r-- 1 rpm rpm 27598848 Jan 26 10:11 /var/lib/rpm/Packages
-rw-r--r-- 1 rpm rpm 331776 Jan 26 10:11 /var/lib/rpm/Providename
-rw-r--r-- 1 rpm rpm 147456 Jan 26 10:11 /var/lib/rpm/Provideversion
-rw-r--r-- 1 rpm rpm 12288 Jan 11 15:58 /var/lib/rpm/Pubkeys
-rw-r--r-- 1 rpm rpm 401408 Jan 26 10:11 /var/lib/rpm/Requirename
-rw-r--r-- 1 rpm rpm 208896 Jan 26 10:11 /var/lib/rpm/Requireversion
-rw-r--r-- 1 rpm rpm 86016 Jan 26 10:11 /var/lib/rpm/Sha1header
-rw-r--r-- 1 rpm rpm 49152 Jan 26 10:11 /var/lib/rpm/Sigmd5
-rw-r--r-- 1 rpm rpm 12288 Jan 23 10:59 /var/lib/rpm/Triggername

I expected it to create a new __*.db file.

sideways
5th February 2007, 10:33 PM
No, it will create the __db.00* files when you do your next yum update or install (or just run yum check-update to not actually install anything)

edit

er... actually, I may be wrong about that, how long did rpm --rebuilddb take?

edit2

ok, I was right originally, had to test it on my own system to confirm :)

MThomas
5th February 2007, 11:39 PM
Hi Sideways,
I tried all that but it still does not work.
Here are the contents of my /etc/yum.repos.d/:

yum.repos.d]# ll
total 88
drwxr-xr-x 2 root root 4096 Feb 5 16:18 backtom
-rw-r--r-- 1 root root 1054 Feb 5 16:31 fedora-core.repo
-rw-r--r-- 1 root root 1750 Feb 5 16:31 fedora-development.repo
-rw-r--r-- 1 root root 1490 Feb 5 16:31 fedora-extras-development.repo
-rw-r--r-- 1 root root 981 Feb 5 16:31 fedora-extras.repo
-rw-r--r-- 1 root root 517 Feb 5 16:31 fedora-legacy.repo
-rw-r--r-- 1 root root 1039 Feb 5 16:31 fedora-updates.repo
-rw-r--r-- 1 root root 1112 Feb 5 16:31 fedora-updates-testing.repo
-rw-r--r-- 1 root root 1904 Feb 5 16:31 livna-devel.repo
-rw-r--r-- 1 root root 1808 Feb 5 16:31 livna.repo
-rw-r--r-- 1 root root 2003 Feb 5 16:31 livna-testing.repo
Should I nuke some of those repositories?

sideways
5th February 2007, 11:46 PM
What's backtom can you list it's contents? Maybe move it to a tmp folder and try again

Also, can you even see the urls listed in the extras and updates repos, try typing this in a terminal


firefox http://download.fedora.redhat.com/pub/fedora/linux/extras/$releasever/$basearch/

and


firefox http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/$basearch/

This should bring up the repository pages in your firefox browser