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

Chris Frey cdfrey at foursquare.net
Fri May 13 11:30:59 EDT 2011


On Fri, May 13, 2011 at 10:30:37AM -0400, Oksana Goertzen wrote:
> 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

I usually erase using just the name that shows up in a 'rpm -qa'

	rpm -qa |grep lin_tape

So maybe:

	rpm --erase lin_tape

This might give the same error as below, though.


> 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

If you can find out what file it is expecting to see under /proc/modules,
you can place a dummy file there just for the packaging process.

You can use rpm2cpio to extract the contents of the rpm file, and
then look at the script to see what it is trying to do and failing at.

- Chris





More information about the kwlug-disc mailing list