PDA

View Full Version : FC7 Yum not updating



Colin Wilding
27th October 2007, 05:53 PM
For some weeks now yum has not been offering me any updates. After I updated (late) from FC6 to FC7 it updated a lot of things, but now the updates have dried up altogether.

I've looked around for people with similar problems, and tried the following, all to no avail:


1. yum clean all
2. manually deleting the contents of /var/cache/yum
3. rm /var/lib/rpm/__db*
followed by
rpm --rebuilddb

I have disabled all but the essential repos. Here is the output of repolist:


# yum -d 15 repolist
Loading "installonlyn" plugin
Running "config" handler for "installonlyn" plugin
Yum Version: 3.2.0
COMMAND: yum -d 15 repolist
Installroot: /
repo id repo name status
fedora Fedora 7 - i386 enabled
updates Fedora 7 - i386 - Updates enabled


This is what I get when I run yum list updates:


# yum -d 15 list updates
Loading "installonlyn" plugin
Running "config" handler for "installonlyn" plugin
Yum Version: 3.2.0
COMMAND: yum -d 15 list updates
Installroot: /
Ext Commands:

updates
Building updates object
Reading Local RPMDB
Setting up Package Sacks
skipping reposetup, pkgsack exists
putting libbeagle in complex update
putting bcel in simple update
putting pm-utils in complex update
putting beagle in complex update
putting jakarta-commons-collections in simple update
putting pm-utils in complex update
putting pm-utils in complex update
putting log4j in simple update
putting xerces-j2 in simple update
putting junit in simple update
putting beagle in complex update
putting glibc in complex update
putting libbeagle in complex update
putting bsh in simple update
putting beagle in complex update
putting tomcat5-servlet-2.4-api in simple update
putting java_cup in simple update
putting openssl in complex update
putting pm-utils in complex update
putting beagle in complex update
putting perl-Test-Simple in simple update
putting jdom in simple update
putting bsf in simple update
putting tomcat5-jsp-2.0-api in simple update
putting libbeagle in complex update
putting perl-Test-Harness in simple update
putting libbeagle in complex update
putting kernel in complex update
putting xalan-j2 in simple update
putting jakarta-commons-logging in simple update
processing libbeagle
processing pm-utils
processing beagle
processing pm-utils
processing pm-utils
processing beagle
processing glibc.i686
processing libbeagle
processing beagle
processing openssl
processing pm-utils
processing beagle
processing libbeagle
processing libbeagle
processing kernel.i686

That's it - it stops there.
There could be some conflicts because I have installed some things from livna and jpackage (can't remember what) but I would expect yum to tell me rather than just stop.

There is also a problem with yumex which may be related - if I try to enable or disable any repos it stalls with an error message ending in


sqlite3.ProgrammingError: Cannot operate on a closed database.

Any ideas would be much appreciated. Can I re-install yum? Would that help?
I suppose I could just wait a bit and upgrade to FC8, but I would prefer to know what was going wrong.

Thanks in advance
Colin Wilding

JohnVV
27th October 2007, 07:53 PM
that is odd it should
in /etc/yum.repos.d/fedora.repo
are these lines the same



[fedora]
name=Fedora $releasever - $basearch
#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

Colin Wilding
27th October 2007, 10:16 PM
Thanks for looking at this.

The lines in fedora.repo are exactly the same as those.

Seve
27th October 2007, 11:18 PM
Hello:
It may be that there have not been any updated packages for your installation.
Or do you know of a package that has been updated and is not appearing on your update list?

What happens when you run

yum list | grep updates

Seve

Colin Wilding
27th October 2007, 11:51 PM
$ yum list | grep updates
yum-updatesd.noarch 3.2.0-1.fc7 installed
yum-refresh-updatesd.noarch 1.1.4-1.fc7 fedora

It's been weeks - there are definitely updates. And a laptop I upgraded to FC7 at the same time had lots of updates after mine stopped.
I do get updates on livna and jpackage when I enable them, but nothing on fedora or updates.
I've just run synaptic and it says I have some broken packages. I'm going to see what I can do about fixing/removing them. We'll see if that helps.

Colin Wilding
28th October 2007, 03:52 PM
Hmmmm...

I've removed and/or re-installed all the broken packages except two: java-1.5.0-gcj and java-1.5.0-sun-compat.

These are both showing 'unsatisfied dependencies'. I can't remove and re-install them without doing the same for tens of other packages, including the whole of openoffice (which seems to be working fine). But synaptic will not even think of running an update until I have fixed *all* broken packages.

I suspect that these were broken when I installed a version of the JRE direct from Sun in order to get Java applets working in Firefox. Grrr.

yum is still offering no updates from the Fedora repos. It wants to update velocity from jpackage but cannot because there are conflicts. (Grrr)^2.

So now I have two questions:

1. Is yum's lack of updates related to the broken packages, or are these independent problems?

2. Can I fix the broken packages without removing and re-installing them and all the dependent packages?

The 'unsatisfied dependencies' are things that should exist but don't, rather than conflicts, so in theory I ought to be able to provide the missing pieces. But I suspect that this would require running a forced install, and I am reluctant to do that as I am no expert and I am wary of breaking the system altogether.

Colin Wilding
29th October 2007, 01:40 AM
Ok, I've removed and re-installed over 80 packages. Synaptic still shows java-1.5.0-gcj as broken even though I have re-installed it.

I'm pretty sure that's not causing the problem with Yum, though. Yum seems to be unable to see anything in the 'updates' repository. For example, in http://download.fedora.redhat.com/pub/fedora/linux/updates/7/i386/ the latest kernel is kernel-2.6.22.9-91.fc7.i686.rpm, but when I ask yum to list the available versions of the kernel I get this:


# yum list kernel
Loading "installonlyn" plugin
Installed Packages
kernel.i686 2.6.21-1.3194.fc7 installed
Available Packages
kernel.i586 2.6.21-1.3194.fc7 fedora

...and this is with the following repos:


# yum repolist
Loading "installonlyn" plugin
repo id repo name status
fedora Fedora 7 - i386 enabled
updates Fedora 7 - i386 - Updates enabled

Any idea why Yum should ignore a whole repo?

Colin Wilding
29th October 2007, 11:27 PM
I have it now.

I edited fedora-updates.repo so that the local version of the repository would be called 'xupdates' instead of 'updates' - hence the downloaded info would go into a completely new directory.

It's working fine now.

Must have been something wrong with the original 'updates' directory - although you would have thought that deleting all the directories earlier on would have done the trick.