[kwlug-disc] RPM won't install, won't uninstall
Oksana Goertzen
ogoertzen at gmail.com
Fri May 13 11:58:57 EDT 2011
On 13 May 2011 11:30, Chris Frey <cdfrey at foursquare.net> wrote:
> 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
>
>
>
Here's the results I get from the above:
Servername:~ # rpm -qa |grep lin_tape
lin_taped-1.50.0-1
Servername:~ # rpm --erase lin_tape
error: package lin_tape is not installed
I think I may have gotten it to remove it though with
rpm -e --nodeps lin_tape
Servername:# uname -r
2.6.32.36-0.5-default
Servername:# rpm -qs lin_tape
normal /etc/init.d/lin_tape
normal
/lib/modules/2.6.32.36-0.5-default/kernel/drivers/scsi/lin_tape.ko
normal /usr/share/doc/packages/lin_tape
normal /usr/share/doc/packages/lin_tape/COPYING
normal /usr/share/doc/packages/lin_tape/COPYING.LIB
normal /usr/share/doc/packages/lin_tape/lin_tape_359X.ReadMe
normal /usr/share/doc/packages/lin_tape/lin_tape_Ultrium.ReadMe
Servername:# lin_taped status
lin_taped is running, pid 26737
:) Oksana
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://kwlug.org/pipermail/kwlug-disc_kwlug.org/attachments/20110513/dfd24a7e/attachment.htm>
More information about the kwlug-disc
mailing list