[NTLUG:Discuss] RPM craziness

Bryan J. Smith b.j.smith at ieee.org
Fri Oct 22 16:11:30 CDT 2004


First off, "rpm -q package*" does _not_ wildcard the database.
It wildcards against a file in the _directory_ your are running the command in.
I.e., note the "package-ver.i386.rpm" is not found in the RPM database because it would only be "package-ver".
Use "rpm -q | grep -i package" instead.

Secondly, until improvements are made to YUM, I consider APT from Fedora Extras (Fedora.US), to be far more reliable.
Consider grabbing it from there.
Yes, even for RHL9, they 
Even have Fedora Legacy updates in their RHL9 repositories at Fedora.US.
You can also use APT and YUM on the same system, since they both use the same RPM database on a system.

-- 
Bryan J. Smith (currently mobile)
b.j.smith at ieee.org

-----Original Message-----
From:  Wayne Dahl 
Date:  04-10-22 14:45
To:  NTLUG 
Subj:  [NTLUG:Discuss] RPM craziness

Ok, this is driving me crazy.  I have attempted to update my RH 9.0 box
using yum and it got a little less than halfway into the update and
hung.  And this is after letting it run all night long.  This was a
fresh install of RH 9.0 from CD's, then running yum to update the 9.0
packages (not to go to FC1).  

After having hung, I had to shut down the box (wife wanted to use the
Weenderz 98 this machine is a dual boot for) and now attempting to
finish the update via yum returns the following...

[root at newcomputer New]# yum update
Gathering header information file(s) from server(s)
Server: Red Hat Linux 9 - i386 - Base
Server: Fedora Legacy utilities for Red Hat Linux 9
Server: Red Hat Linux 9 - Updates
Finding updated packages
Downloading needed headers
Resolving dependencies
....Unable to satisfy dependencies
Package kdegraphics-devel needs kdegraphics = 3.1-4, this is not
available.
Package kdegraphics-devel needs kdegraphics = 3.1-5, this is not
available.

A query returns this...

[root at newcomputer New]# rpm -q kdegraphics*
package kdegraphics-3.1-5.i386.rpm is not installed
[root at newcomputer New]# rpm -q kdegraphics-3.1-4.i386.rpm
package kdegraphics-3.1-4.i386.rpm is not installed

So, it appears neither is installed, right?  So, I attempt to install
from the CD...

[root at newcomputer wayne]# rpm -ivh
/mnt/cdrom/RedHat/RPMS/kdegraphics-3.1-4.i386.rpm
warning: /mnt/cdrom/RedHat/RPMS/kdegraphics-3.1-4.i386.rpm: V3 DSA
signature: NOKEY, key ID db42a60e
Preparing...                ###########################################
[100%]
        package kdegraphics-3.1-4 is already installed

I attempt to upgrade to 3.1-5 and the following occurs...

[root at newcomputer New]# rpm -Uvh kdegraphics-3.1-5.i386.rpm
kdegraphics-devel-3.1-5.i386.rpm
warning: kdegraphics-3.1-5.i386.rpm: V3 DSA signature: NOKEY, key ID
db42a60e
Preparing...                ###########################################
[100%]
        package kdegraphics-devel-3.1-5 is already installed

Looks like it installed, right?  So I attempt yum update again...

[root at newcomputer New]# yum update
Gathering header information file(s) from server(s)
Server: Red Hat Linux 9 - i386 - Base
Server: Fedora Legacy utilities for Red Hat Linux 9
Server: Red Hat Linux 9 - Updates
Finding updated packages
Downloading needed headers
Resolving dependencies
....Unable to satisfy dependencies
Package kdegraphics-devel needs kdegraphics = 3.1-4, this is not
available.
Package kdegraphics-devel needs kdegraphics = 3.1-5, this is not
available.
Package redhat-config-printer-gui needs redhat-config-printer =
0.6.47-1, this is not available.

So I attempt to query for kdegraphics...

[root at newcomputer New]# rpm -q kdegraphics*
package kdegraphics-3.1-5.i386.rpm is not installed
package kdegraphics-devel-3.1-5.i386.rpm is not installed

So I figure the RPM database is hosed, right?  I attempt to rebuild the
database and this is what I get...

[root at newcomputer wayne]# rpm --rebuilddb
error: db4 error(16) from dbenv->remove: Device or resource busy

Now I don't get this error until it's been running for some time. 
Googling for this error came up with a recommendation to remove the
latest revision and reinstall from CD, then update the version...check
the response I get below...

[root at newcomputer New]# rpm -e kdegraphics-3.1-5.i386.rpm
kdegraphics-devel-3.1-5.i386.rpm
error: package kdegraphics-3.1-5.i386.rpm is not installed
error: package kdegraphics-devel-3.1-5.i386.rpm is not installed
[root at newcomputer New]# rpm -i
/mnt/cdrom/RedHat/RPMS/kdegraphics-3.1-4.i386.rpm
/mnt/cdrom/RedHat/RPMS/kdegraphics-devel-3.1-4.i386.rpm
warning: /mnt/cdrom/RedHat/RPMS/kdegraphics-3.1-4.i386.rpm: V3 DSA
signature: NOKEY, key ID db42a60e
        package kdegraphics-3.1-4 is already installed
        package kdegraphics-devel-3.1-5 (which is newer than
kdegraphics-devel-3.1-4) is already installed
        package kdegraphics-devel-3.1-4 is already installed
[root at newcomputer New]# rpm -e kdegraphics-devel-3.1-5.i386.rpm
error: package kdegraphics-devel-3.1-5.i386.rpm is not installed

So what the frell is going on?  It tells me 3.1-5 is installed, then
telle me it's NOT installed.  And I can't seem to fix the database. 
What is going on here and how do I fix it?

Thanks,





-- 
Wayne Dahl
Registered Linux User # 347549
No electrons were abused in any way by any Micro$oft 
product in the composition of this e-mail.


_______________________________________________
https://ntlug.org/mailman/listinfo/discuss



More information about the Discuss mailing list