Not able to uninstall Realplayer

When i try to uninstall realplayer user softwre management module

It says that it cannot do so due to following reasons

“Subprocess failed. Error: RPM failed: prerm called with unknown argument `0’
error: %preun(realplay-11.0.2.1744-1.i386) scriptlet failed, exit status 1”

OS : Opensuse 11.2
Player Version : RealPlayer11GOLD

I do not see any RealPlayer in the standard repos. From where did you install? From a repository? Just installed an RPM? Using YaST > Software manager?

And the deinstall: you use YaST > software manager? It is there in the llist and you clicked for Removal? When not then how?

su - terminal
rpm -e <packagename>

Got the player /rpm from here
https://player.helixcommunity.org/

But the player was not upto the mark.hence tried to uninstall using the software package manager ( YaST > Software manager).When it reies to uninstall,it fails and says

“Subprocess failed. Error: RPM failed: prerm called with unknown argument `0’
error: %preun(realplay-11.0.2.1744-1.i386) scriptlet failed, exit status 1”

Will try that out and provide feedback on the same

It’ll be something like

rpm -e RealPlayer
or
rpm -e realplayer
or
rpm -e realplay

result is the same,guess UI(YAST/Software package management) uses the same code

linux-ur8q:/home/admin # rpm -e realplay
prerm called with unknown argument `0'
error: %preun(realplay-11.0.2.1744-1.i386) scriptlet failed, exit status 1
linux-ur8q:/home/admin # 

Try

rpm -e realplay --force

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Same for me a long time ago, go to yast -> software management and
search for realplayer, then delete manually all the files the rpm
contains, and then install vlc or mplayer intead of realplayer


VampirD

Microsoft Windows is like air conditioning
Stops working when you open a window.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/

iEYEARECAAYFAkwyKDcACgkQJQ+0ABWtaVmflwCgpV6jCqvRln7r4PjtZYJcAB4s
xtMAn1dXW+/rP1HmLaDzMdiIdNameKxT
=ZShM
-----END PGP SIGNATURE-----

@VampirD
Thanks - Interesting - Might help the OP

I don’t use it either - obviously…
SMplayer for me

On 2010-07-05 06:36 GMT vazhavandan wrote:

>
> When i try to uninstall realplayer user softwre management module
>
> It says that it cannot do so due to following reasons
>
> "Subprocess failed. Error: RPM failed: prerm called with unknown
> argument `0’

error: %preun(realplay-11.0.2.1744-1.i386) scriptlet failed, exit
status 1"

The rpm package is bad, it contains a script to be run before
installation and another before uninstall, that fails, and aborts the
process.

The 1st thing is to find that script, then find out why it failed, then
run it or modify it in a way that it succeeds, manually, and finally
run the rpm command in a way that it ignores the script (ie, the
–noscript option).

The “PREUN” script is


#!/bin/sh
# prerm script for Helix and RealPlayer
#
# see: dh_installdeb(1)

set -e

# summary of how this script can be called:
#        * <prerm> `remove'
#        * &lt;old-prerm&gt; `upgrade' <new-version>
#        * <new-prerm> `failed-upgrade' &lt;old-version&gt;
#        * &lt;conflictor's-prerm&gt; `remove' `in-favour' &lt;package&gt;
&lt;new-version&gt;
#        * &lt;deconfigured's-prerm&gt; `deconfigure' `in-favour'
#          &lt;package-being-installed&gt; &lt;version&gt; `removing'
#          <conflicting-package> <version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package


case "$1" in
remove|upgrade|deconfigure)
echo "prerm..."
if  -x /opt/real/RealPlayer/postinst/postuninst.sh ] ; then
/opt/real/RealPlayer/postinst/postuninst.sh
fi
;;

failed-upgrade)
;;

*)
echo "prerm called with unknown argument \`$1'" &gt;&2
exit 1
;;
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.



exit 0


Do you recognize the error message above? :slight_smile:

So you have to run the script
“/opt/real/RealPlayer/postinst/postuninst.sh”, then uninstall the rpm
with --noscripts.

Warning: I have not tested this. But I had the same problem installing
it, and solved it this way thanks to David Haller on the mail list.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” GM (Minas Tirith))

It worked,now there is no realplayer folder under “opt” folder :slight_smile: :-

linux-ur8q:/opt/real/RealPlayer/postinst # ./postuninst.sh
Uninstalling .mo locale files...
Succeeded.
uninstalling application icons resource...
uninstalling document icons resource...
Succeeded.
linux-ur8q:/opt/real/RealPlayer/postinst # cd..
linux-ur8q:/opt/real/RealPlayer # cd..
linux-ur8q:/opt/real # cd..
linux-ur8q:/opt # cd..
linux-ur8q:/ # rpm -e realplay --force --noscripts
rpm: only installation, upgrading, rmsource and rmspec may be forced
linux-ur8q:/ # rpm -e realplay --noscripts
linux-ur8q:/ #

I wanted to do that,but i wanted to remove any if at all any variables registered and other settings etc:

I do use gnome mplayer,guess both gnome mplayer and smplayer use mplayer engine.
But i installed realplayer thinking that it would support real media better

My gnome-mplayer plays .rm files but with .rmvb it throws a wobbly a bit, but it still plays (some error about ‘Failed to open VDPAU backend libvdpau_nvidia.so’

I am using gnome-mplayer 0.9.9 on openSUSE 11.2 ,but i don’t have this problem.I get similar library files missing pop ups in mplayer though

You may need to change the audio settings in the gnome-mplayer preferences(Ctrl+P)

On 2010-07-06 04:16 GMT vazhavandan wrote:

>
> It worked,now there is no realplayer folder under “opt” folder :slight_smile: :-

Ah, I’m glad it worked :slight_smile:


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” GM (Elessar))

Thanks. The suggestion of “–noscripts” worked. But I did it in a long noob way, I deleted all the RealPlayer directories manually and then ran RPM --noscripts to remove the package.

Thanks again.

On 2010-07-10 03:16 GMT suse-immigrant wrote:

>
> Thanks. The suggestion of “–noscripts” worked. But I did it in a long
> noob way, I deleted all the RealPlayer directories manually and then
> ran RPM --noscripts to remove the package.

Ugh!

I assume you first run the script at
“/opt/real/RealPlayer/postinst/postuninst.sh”? This one is supossed to
remove start links and associations.

Next time, first run the rpm command, then see if there are files to
remove manually. Saves time and effort :slight_smile:


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” GM (Elessar))

I wasn’t able to fix the install of Real but I did install Helix and grabbed the codecs from /opt/real/RealPlayer and can play my Nokia created .3gp files with Helix now. Cheating I know but arf!