So I was getting this error while trying to uninstall CP, I plan to reinstall. I know I probably deleted something I wasn't supposed to.
Code
Removing openmediavault-couchpotato ...
Purging configuration files for openmediavault-couchpotato ...
userdel: couchpotato mail spool (/var/mail/couchpotato) not found
userdel: /home/couchpotato not owned by couchpotato, not removing
dpkg: error processing openmediavault-couchpotato (--purge):
subprocess installed post-removal script returned error exit status 12
Processing triggers for openmediavault ...
Restarting engine daemon ...
Errors were encountered while processing:
openmediavault-couchpotato
So I tried to add user which I seen on another post. http://forum.openmediavault.or…ot-uninstall-Couchpotato/
Then I got this error when I try to enable CP after installing it.
Code
Error #4000:
exception 'OMVException' with message 'Failed to execute command 'omv-mkconf couchpotato 2>&1': fatal: could not create work tree dir '/opt/couchpotato'.: Permission denied' in /usr/share/openmediavault/engined/module/couchpotato.inc:55
Stack trace:
#0 /usr/share/openmediavault/engined/rpc/config.inc(180): OMVModuleCouchpotato->applyConfig()
#1 [internal function]: OMVRpcServiceConfig->applyChanges(Array, Array)
#2 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
#3 /usr/share/php/openmediavault/rpcservice.inc(158): OMVRpcServiceAbstract->callMethod('applyChanges', Array, Array)
#4 /usr/share/openmediavault/engined/rpc/config.inc(224): OMVRpcServiceAbstract->callMethodBg('applyChanges', Array, Array)
#5 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array, Array)
#6 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
#7 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('applyChangesBg', Array, Array)
#8 /usr/sbin/omv-engined(500): OMVRpc::exec('Config', 'applyChangesBg', Array, Array, 1)
#9 {main}
Alles anzeigen
Now I get this if I try to uninstall it
Code
Error #4000:
exception 'OMVException' with message 'Failed to execute command 'export LANG=C; apt-get --yes --auto-remove --purge remove openmediavault-couchpotato 2>&1': Reading package lists...
Building dependency tree...
Reading state information...
The following packages will be REMOVED:
openmediavault-couchpotato*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 54.3 kB disk space will be freed.
(Reading database ...
30996 files and directories currently installed.)
Removing openmediavault-couchpotato ...
Purging configuration files for openmediavault-couchpotato ...
userdel: couchpotato mail spool (/var/mail/couchpotato) not found
userdel: /home/couchpotato not owned by couchpotato, not removing
dpkg: error processing openmediavault-couchpotato (--purge):
subprocess installed post-removal script returned error exit status 12
Processing triggers for openmediavault ...
Restarting engine daemon ...
Errors were encountered while processing:
openmediavault-couchpotato
Creating index of upgradeable packages ...
Creating index of openmediavault plugins ...
E: Sub-process /usr/bin/dpkg returned an error code (1)' in /usr/share/openmediavault/engined/rpc/pluginmgmt.inc:170
Stack trace:
#0 [internal function]: OMVRpcServicePluginMgmt->remove(Array, Array)
#1 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
#2 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('remove', Array, Array)
#3 /usr/sbin/omv-engined(500): OMVRpc::exec('Plugin', 'remove', Array, Array, 1)
#4 {main}
Alles anzeigen
I can get back to the first errors by doing.
Code
rm -f /var/lib/dpkg/info/openmediavault-couchpotato.postrm
apt-get purge openmediavault-couchpotato
rm -rf /opt/couchpotato /var/opt/couchpotato
I don't want to reinstall OMV again like I've been doing every time I get errors and try fixing them myself in ssh.