[kwlug-disc] RPM won't install, won't uninstall

Oksana Goertzen ogoertzen at gmail.com
Fri May 13 10:30:37 EDT 2011


Hello Everyone,

I'm troubleshooting a problem with a system here.
I have an rpm that won't uninstall and won't install.
It's a module that needs to be compiled for the current
kernel.  The one that exists is for an earlier kernel.

Servername:/software/lintape # rpm -Uvh
/usr/src/packages/RPMS/x86_64/lin_tape-1.50.0-1.x86_64.rpm
Preparing...                ###########################################
[100%]
    package lin_tape-1.50.0-1.x86_64 is already installed

Servername:/software/lintape # rpm -e
/usr/src/packages/RPMS/x86_64/lin_tape-1.50.0-1.x86_64.rpm
error: package /usr/src/packages/RPMS/x86_64/lin_tape-1.50.0-1.x86_64.rpm is
not installed

Servername:/software/lintape # rpm -Uvh --force
/usr/src/packages/RPMS/x86_64/lin_tape-1.50.0-1.x86_64.rpm
Preparing...                ###########################################
[100%]
Shutting down lin_tape: lin_taped is not running!

ERROR: Module lin_tape does not exist in /proc/modules
error: %pre(lin_tape-1.50.0-1.x86_64) scriptlet failed, exit status 1
error:   install: %pre scriptlet failed (2), skipping lin_tape-1.50.0-1

Any suggestions would be appreciated!

Thanks, Oksana


=================

This is how it is to be installed:

*Steps to install lin_tape:*

1): Download lin_tape source code:

For example: lin_tape-1.40.0-1.src.rpm

2): Use the rpmbuild command to build the source code.

   #rpmbuild --rebuild lin_tape-1.40.0-1.src.rpm

The output of the command is very large. Near the end, the command output
looks like the following example:


   # rpmbuild --rebuildlin_tape-1.40.0-1.src.rpm |tee lin-install.log
   Installing lin_tape-1.40.0-1.src.rpm
   Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.53402
   ....
   Checking for unpackaged file(s): /usr/lib/rpm/check-files
   /var/tmp/lin_tape-1.40.0-1-root-root
   Wrote: /usr/src/packages/RPMS/x86_64/lin_tape-1.40.0-1.x86_64.rpm
   Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.91513
   ...
   + exit 0

In this output, notice the line:

   Wrote: /usr/src/packages/RPMS/x86_64/lin_tape-1.40.0-1.x86_64.rpm


The file that is named on this line,
/usr/src/packages/RPMS/x86_64/lin_tape-1.40.0-1.x86_64.rpm, is the build
package.

3): Run the following command to install the build package:

rpm -iv /usr/src/packages/RPMS/x86_64/lin_tape-1.40.0-1.x86_64.rpm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://kwlug.org/pipermail/kwlug-disc_kwlug.org/attachments/20110513/4ca9e545/attachment.htm>


More information about the kwlug-disc mailing list