When I try to remove Plex Media Server it fails to remove the plexmediaserver package. I've also tried to remove it via "rpm -e" but that fails also. Im not sure how to proceed further...
It complains that a systemctl is not found. If I'm correct systemctl is not available. If I check "/var/tmp" there are no files.
<code>
[root@clearos /]# yum remove plexmediaserver
Failed to set locale, defaulting to C
Loaded plugins: clearcenter-marketplace, fastestmirror
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package plexmediaserver.x86_64 0:0.9.12.2.1124-e797a3e will be erased
--> Processing Dependency: plexmediaserver for package: 1:app-plex-core-1.0.4-1.v6.noarch
--> Running transaction check
---> Package app-plex-core.noarch 1:1.0.4-1.v6 will be erased
--> Processing Dependency: app-plex-core = 1:1.0.4-1.v6 for package: 1:app-plex-1.0.4-1.v6.noarch
--> Running transaction check
---> Package app-plex.noarch 1:1.0.4-1.v6 will be erased
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================================================================
Removing:
plexmediaserver x86_64 0.9.12.2.1124-e797a3e @/plexmediaserver-0.9.12.2.1124-e797a3e.x86_64 281 M
Removing for dependencies:
app-plex noarch 1:1.0.4-1.v6 @private-clearcenter-plex 44 k
app-plex-core noarch 1:1.0.4-1.v6 @private-clearcenter-plex 28 k
Transaction Summary
=============================================================================================================================================================================
Remove 3 Package(s)
Installed size: 281 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Erasing : 1:app-plex-1.0.4-1.v6.noarch 1/3
Erasing : 1:app-plex-core-1.0.4-1.v6.noarch 2/3
Error in PREUN scriptlet in rpm package plexmediaserver
Stopping PlexMediaServer: [ OK ]
Stopped PlexMediaServer[ OK ]
/var/tmp/rpm-tmp.xmS9Yh: line 30: systemctl: command not found
/var/tmp/rpm-tmp.xmS9Yh: line 31: systemctl: command not found
/var/tmp/rpm-tmp.xmS9Yh: line 35: systemctl: command not found
error: %preun(plexmediaserver-0.9.12.2.1124-e797a3e.x86_64) scriptlet failed, exit status 127
plexmediaserver-0.9.12.2.1124-e797a3e.x86_64 was supposed to be removed but is not!
Verifying : plexmediaserver-0.9.12.2.1124-e797a3e.x86_64 1/3
Verifying : 1:app-plex-1.0.4-1.v6.noarch 2/3
Verifying : 1:app-plex-core-1.0.4-1.v6.noarch 3/3
Dependency Removed:
app-plex.noarch 1:1.0.4-1.v6 app-plex-core.noarch 1:1.0.4-1.v6
Failed:
plexmediaserver.x86_64 0:0.9.12.2.1124-e797a3e
Complete!
</code>
It complains that a systemctl is not found. If I'm correct systemctl is not available. If I check "/var/tmp" there are no files.
<code>
[root@clearos /]# yum remove plexmediaserver
Failed to set locale, defaulting to C
Loaded plugins: clearcenter-marketplace, fastestmirror
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package plexmediaserver.x86_64 0:0.9.12.2.1124-e797a3e will be erased
--> Processing Dependency: plexmediaserver for package: 1:app-plex-core-1.0.4-1.v6.noarch
--> Running transaction check
---> Package app-plex-core.noarch 1:1.0.4-1.v6 will be erased
--> Processing Dependency: app-plex-core = 1:1.0.4-1.v6 for package: 1:app-plex-1.0.4-1.v6.noarch
--> Running transaction check
---> Package app-plex.noarch 1:1.0.4-1.v6 will be erased
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================================================================
Removing:
plexmediaserver x86_64 0.9.12.2.1124-e797a3e @/plexmediaserver-0.9.12.2.1124-e797a3e.x86_64 281 M
Removing for dependencies:
app-plex noarch 1:1.0.4-1.v6 @private-clearcenter-plex 44 k
app-plex-core noarch 1:1.0.4-1.v6 @private-clearcenter-plex 28 k
Transaction Summary
=============================================================================================================================================================================
Remove 3 Package(s)
Installed size: 281 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Erasing : 1:app-plex-1.0.4-1.v6.noarch 1/3
Erasing : 1:app-plex-core-1.0.4-1.v6.noarch 2/3
Error in PREUN scriptlet in rpm package plexmediaserver
Stopping PlexMediaServer: [ OK ]
Stopped PlexMediaServer[ OK ]
/var/tmp/rpm-tmp.xmS9Yh: line 30: systemctl: command not found
/var/tmp/rpm-tmp.xmS9Yh: line 31: systemctl: command not found
/var/tmp/rpm-tmp.xmS9Yh: line 35: systemctl: command not found
error: %preun(plexmediaserver-0.9.12.2.1124-e797a3e.x86_64) scriptlet failed, exit status 127
plexmediaserver-0.9.12.2.1124-e797a3e.x86_64 was supposed to be removed but is not!
Verifying : plexmediaserver-0.9.12.2.1124-e797a3e.x86_64 1/3
Verifying : 1:app-plex-1.0.4-1.v6.noarch 2/3
Verifying : 1:app-plex-core-1.0.4-1.v6.noarch 3/3
Dependency Removed:
app-plex.noarch 1:1.0.4-1.v6 app-plex-core.noarch 1:1.0.4-1.v6
Failed:
plexmediaserver.x86_64 0:0.9.12.2.1124-e797a3e
Complete!
</code>
Share this post:
Responses (4)
-
Accepted Answer
-
Accepted Answer
Hi Ben,
I'm doing some testing in a VM. This is the output when I update version 0.9.11.16.958 to 0.9.12.0.1071.
[root@enterprise /]# ENABLE_BETA=True yum upgrade plexmediaserver
Failed to set locale, defaulting to C
Loaded plugins: clearcenter-marketplace, fastestmirror
Setting up Upgrade Process
ClearCenter Marketplace: fetching repositories...
Loading mirror speeds from cached hostfile
* clearos: ftp.nluug.nl
* clearos-addons: ftp.nluug.nl
* clearos-extras: ftp.nluug.nl
* clearos-updates: ftp.nluug.nl
* contribs: download4.clearsdn.com
* private-clearcenter-dyndns: download4.clearsdn.com:80
* private-clearcenter-dyndns-testing: download4.clearsdn.com:80
* private-clearcenter-plex: download4.clearsdn.com:80
* private-clearcenter-plex-testing: download4.clearsdn.com:80
Resolving Dependencies
--> Running transaction check
---> Package plexmediaserver.x86_64 0:0.9.11.16.958-80f1748 will be updated
---> Package plexmediaserver.x86_64 0:0.9.12.0.1071-7b11cfc will be an update
--> Finished Dependency Resolution
Dependencies Resolved
===========================================================================================================================================================
Package Arch Version Repository Size
===========================================================================================================================================================
Updating:
plexmediaserver x86_64 0.9.12.0.1071-7b11cfc private-clearcenter-plex-testing 120 M
Transaction Summary
===========================================================================================================================================================
Upgrade 1 Package(s)
Total download size: 120 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : plexmediaserver-0.9.12.0.1071-7b11cfc.x86_64 1/2
Stopping PlexMediaServer: [ OK ]
Stopped PlexMediaServer[ OK ]
/var/tmp/rpm-tmp.CNEyn7: line 21: systemctl: command not found
/var/tmp/rpm-tmp.CNEyn7: line 22: systemctl: command not found
/var/tmp/rpm-tmp.CNEyn7: line 26: systemctl: command not found
Cleanup : plexmediaserver-0.9.11.16.958-80f1748.x86_64 2/2
Verifying : plexmediaserver-0.9.12.0.1071-7b11cfc.x86_64 1/2
Verifying : plexmediaserver-0.9.11.16.958-80f1748.x86_64 2/2
Updated:
plexmediaserver.x86_64 0:0.9.12.0.1071-7b11cfc
Complete!
when i try to remove then this is the output:
[root@enterprise /]# yum remove plexmediaserver
Failed to set locale, defaulting to C
Loaded plugins: clearcenter-marketplace, fastestmirror
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package plexmediaserver.x86_64 0:0.9.12.0.1071-7b11cfc will be erased
--> Processing Dependency: plexmediaserver for package: 1:app-plex-core-1.0.4-1.v6.noarch
--> Running transaction check
---> Package app-plex-core.noarch 1:1.0.4-1.v6 will be erased
--> Processing Dependency: app-plex-core = 1:1.0.4-1.v6 for package: 1:app-plex-1.0.4-1.v6.noarch
--> Running transaction check
---> Package app-plex.noarch 1:1.0.4-1.v6 will be erased
--> Finished Dependency Resolution
Dependencies Resolved
===========================================================================================================================================================
Package Arch Version Repository Size
===========================================================================================================================================================
Removing:
plexmediaserver x86_64 0.9.12.0.1071-7b11cfc @private-clearcenter-plex-testing 274 M
Removing for dependencies:
app-plex noarch 1:1.0.4-1.v6 @private-clearcenter-plex 44 k
app-plex-core noarch 1:1.0.4-1.v6 @private-clearcenter-plex 28 k
Transaction Summary
===========================================================================================================================================================
Remove 3 Package(s)
Installed size: 274 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Erasing : 1:app-plex-1.0.4-1.v6.noarch 1/3
Erasing : 1:app-plex-core-1.0.4-1.v6.noarch 2/3
Error in PREUN scriptlet in rpm package plexmediaserver
/var/tmp/rpm-tmp.HEwQup: line 30: systemctl: command not found
/var/tmp/rpm-tmp.HEwQup: line 31: systemctl: command not found
/var/tmp/rpm-tmp.HEwQup: line 35: systemctl: command not found
error: %preun(plexmediaserver-0.9.12.0.1071-7b11cfc.x86_64) scriptlet failed, exit status 127
plexmediaserver-0.9.12.0.1071-7b11cfc.x86_64 was supposed to be removed but is not!
Verifying : plexmediaserver-0.9.12.0.1071-7b11cfc.x86_64 1/3
Verifying : 1:app-plex-core-1.0.4-1.v6.noarch 2/3
Verifying : 1:app-plex-1.0.4-1.v6.noarch 3/3
Dependency Removed:
app-plex.noarch 1:1.0.4-1.v6 app-plex-core.noarch 1:1.0.4-1.v6
Failed:
plexmediaserver.x86_64 0:0.9.12.0.1071-7b11cfc
Complete!
When I try to remove with rpm -e this is the output:
[root@enterprise /]# rpm -e plexmediaserver
/var/tmp/rpm-tmp.lR3V3U: line 30: systemctl: command not found
/var/tmp/rpm-tmp.lR3V3U: line 31: systemctl: command not found
/var/tmp/rpm-tmp.lR3V3U: line 35: systemctl: command not found
error: %preun(plexmediaserver-0.9.12.0.1071-7b11cfc.x86_64) scriptlet failed, exit status 127
So there is definitely something wrong with the script. -
Accepted Answer
systemctl is part of systemd, but ClearOS 6 still uses Sysvinit. I'm not running Plex 0.9.12 (it's still in the testing repo). If it's bailing just because of the systemctl commands, it's harmless...since, you can see the uninstall script stopped the daemons using init scripts.
Now, how to un-install...does this work:
rpm -e plexmediaserver
B
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »