Package refuses to uninstall

Hi,

I’m a bit new to openSUSE and I’m more comfortable with Ubuntu’s package management. That said, I’m having trouble removing an RPM. I’m trying to remove uShare and it’s being stubborn.

zypper rm ushare                  
Loading repository data...                                 
Reading installed packages...                              
Resolving package dependencies...                          

The following package is going to be REMOVED:
  ushare                                     

1 package to remove.
After the operation, 123.0 KiB will be freed.
Continue? [y/n/?] (y): y                     
**Removing ushare-1.1a-3.1 [error]
Removal of (31793)ushare-1.1a-3.1.i586(@System) failed:
Error: Subprocess failed. Error: RPM failed: error: %preun(ushare-1.1a-3.1.i586) scriptlet failed, exit status 7**


Abort, retry, ignore? [a/r/i] (a): a
Problem occured during or after installation or removal of packages:
Installation aborted by user

I’ve also tried doing an “rpm -e” but that didn’t work either. Any suggestions?

When trying this with rpm -e, what error message do you get - the same
one?

Jim


Jim Henderson
openSUSE Forums Moderator

Yup, unfortunately :frowning:

rpm -e ushare-1.1a-3.1
error: %preun(ushare-1.1a-3.1.i586) scriptlet failed, exit status 7

doubt it will work but did you try Yast?

This appears to be a Redhat RPM??

Yeah, I tried it with the GUI too. It didn’t work.

I don’t think it is. I got it from the OBS software search?

On Wed, 16 Dec 2009 04:46:01 +0000, isaacj87 wrote:

> gogalthorp;2088559 Wrote:
>> doubt it will work but did you try Yast?
>>
>> This appears to be a Redhat RPM??
>
> Yeah, I tried it with the GUI too. It didn’t work.
>
> I don’t think it is. I got it from the OBS software search?

You can try using rpm -e --force - that should allow it to uninstall even
though the script is failing - but because the script is failing you
might end up with some cruft left behind.

Jim


Jim Henderson
openSUSE Forums Moderator

I tried that too. It gives me this message:

sudo rpm -e --force ushare-1.1a-3.1
rpm: only installation, upgrading, rmsource and rmspec may be forced

On Wed, 16 Dec 2009 16:06:03 +0000, isaacj87 wrote:

> Code:
> --------------------
> sudo rpm -e --force ushare-1.1a-3.1
> rpm: only installation, upgrading, rmsource and rmspec may be forced
>
> --------------------

Try:

rpm -e --noscripts

Should have the desired effect. I forgot that force couldn’t be used
there.

Jim


Jim Henderson
openSUSE Forums Moderator

Perfect :slight_smile:

Thanks Jim!