Cannot uninstall Couchpotato

    • OMV 2.x
    • Resolved
    • Cannot uninstall Couchpotato

      Hi all, I have a problem with Couchpotato. In my dashboard it has a red dot, and most of the time it stops running automatically. To fix this, I wanted to uninstall Couchpotato and reinstall it. While trying to do so I get the following error message (in webgui and in SSH):

      Source Code

      1. Error #4000:
      2. 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...
      3. Building dependency tree...
      4. Reading state information...
      5. The following packages will be REMOVED:
      6. openmediavault-couchpotato*
      7. 0 upgraded, 0 newly installed, 1 to remove and 2 not upgraded.
      8. After this operation, 54.3 kB disk space will be freed.
      9. (Reading database ...
      10. 35747 files and directories currently installed.)
      11. Removing openmediavault-couchpotato ...
      12. chown: invalid user: `couchpotato'
      13. invoke-rc.d: initscript couchpotato, action "stop" failed.
      14. dpkg: error processing openmediavault-couchpotato (--purge):
      15. subprocess installed pre-removal script returned error exit status 1
      16. Processing triggers for openmediavault ...
      17. Restarting engine daemon ...
      18. Errors were encountered while processing:
      19. openmediavault-couchpotato
      20. Creating index of upgradeable packages ...
      21. Creating index of openmediavault plugins ...
      22. E: Sub-process /usr/bin/dpkg returned an error code (1)' in /usr/share/openmediavault/engined/rpc/pluginmgmt.inc:170
      23. Stack trace:
      24. #0 [internal function]: OMVRpcServicePluginMgmt->remove(Array, Array)
      25. #1 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
      26. #2 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('remove', Array, Array)
      27. #3 /usr/sbin/omv-engined(500): OMVRpc::exec('Plugin', 'remove', Array, Array, 1)
      28. #4 {main}
      Display All


      I'm running 2.1.20 (stone burner), Linux 3.2.0.-4AMD64 kernel. Does anybody have an idea how to fix my couchpotato installation?
    • Try installing over the top of the existing version apt-get install openmediavault-couchpotato If that goes well and you still wish to uninstall, do apt-get remove --purge openmediavault-couchpotato
      [IMG:http://widgets.trakt.tv/users/1f5d0f5ed67f98ed9d06d9849b42dd0e/watched/banner@1x.jpg]
      What I am watching/watched on my Popcorn Hour media player
      omv 2.1.1 stoneburner | 64 bit | omvextrasorg 1.29
      MySQL (Percona) | Newznab | Sonarr | CP | HP | NZBget | YAMJ | CUPS
    • jhmiller wrote:

      Try installing over the top of the existing version <code class="inlineCode">apt-get install openmediavault-couchpotato</code> If that goes well and you still wish to uninstall, do <code class="inlineCode">apt-get remove --purge openmediavault-couchpotato</code>


      I tried that (with --reinstall, otherwise it wouldn't work) and got:

      Source Code

      1. root@vault:~# apt-get --reinstall install openmediavault-couchpotato
      2. Reading package lists... Done
      3. Building dependency tree
      4. Reading state information... Done
      5. 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 2 not upgraded.
      6. Need to get 17.3 kB of archives.
      7. After this operation, 0 B of additional disk space will be used.
      8. WARNING: The following packages cannot be authenticated!
      9. openmediavault-couchpotato
      10. Install these packages without verification [y/N]? y
      11. Get:1 http://dh2k.omv-extras.org/debian/ stoneburner-miller/main openmediavault- couchpotato all 1.0.3 [17.3 kB]
      12. Fetched 17.3 kB in 0s (240 kB/s)
      13. Selecting previously unselected package openmediavault-couchpotato.
      14. (Reading database ... 35750 files and directories currently installed.)
      15. Preparing to replace openmediavault-couchpotato 1.0.3 (using .../openmediavault- couchpotato_1.0.3_all.deb) ...
      16. chown: invalid user: `couchpotato'
      17. invoke-rc.d: initscript couchpotato, action "stop" failed.
      18. dpkg: warning: subprocess old pre-removal script returned error exit status 1
      19. dpkg: trying script from the new package instead ...
      20. chown: invalid user: `couchpotato'
      21. invoke-rc.d: initscript couchpotato, action "stop" failed.
      22. dpkg: error processing /var/cache/apt/archives/openmediavault-couchpotato_1.0.3_ all.deb (--unpack):
      23. subprocess new pre-removal script returned error exit status 1
      24. Processing triggers for openmediavault ...
      25. Restarting engine daemon ...
      26. Errors were encountered while processing:
      27. /var/cache/apt/archives/openmediavault-couchpotato_1.0.3_all.deb
      28. Creating index of upgradeable packages ...
      29. Creating index of openmediavault plugins ...
      30. E: Sub-process /usr/bin/dpkg returned an error code (1)
      Display All


      The remove command give the same error code.
    • It looks like it is missing the couchpotato user so try adding it and the reinstalling

      Source Code

      1. adduser --quiet \
      2. --system \
      3. --group \
      4. --no-create-home \
      5. --disabled-password \
      6. couchpotato
      [IMG:http://widgets.trakt.tv/users/1f5d0f5ed67f98ed9d06d9849b42dd0e/watched/banner@1x.jpg]
      What I am watching/watched on my Popcorn Hour media player
      omv 2.1.1 stoneburner | 64 bit | omvextrasorg 1.29
      MySQL (Percona) | Newznab | Sonarr | CP | HP | NZBget | YAMJ | CUPS
    • jhmiller wrote:

      It looks like it is missing the couchpotato user so try adding it and the reinstalling

      Source Code (6 lines)


      I added the user with

      Source Code

      1. --quiet --system --group --no-create-home --disabled-password couchpotato
      and also tried

      Source Code

      1. adduser --quiet \--system \--group \--no-create-home \--disabled-password \couchpotato
      trough putty.

      Then I did

      Source Code

      1. apt-get --reinstall install openmediavault-couchpotato
      followed by

      Source Code

      1. apt-get remove --purge openmediavault-couchpotato
      . The last command still gives the error below:


      Source Code

      1. root@vault:~# adduser --quiet --system --group --no-create-home --disabled-password couchpotato
      2. root@vault:~# apt-get remove --purge openmediavault-couchpotato Reading package lists... Done
      3. Building dependency tree
      4. Reading state information... Done
      5. The following packages will be REMOVED:
      6. openmediavault-couchpotato*
      7. 0 upgraded, 0 newly installed, 1 to remove and 2 not upgraded.
      8. After this operation, 0 B of additional disk space will be used.
      9. Do you want to continue [Y/n]? y
      10. (Reading database ... 35733 files and directories currently installed.)
      11. Removing openmediavault-couchpotato ...
      12. Purging configuration files for openmediavault-couchpotato ...
      13. userdel: couchpotato mail spool (/var/mail/couchpotato) not found
      14. userdel: /home/couchpotato not owned by couchpotato, not removing
      15. dpkg: error processing openmediavault-couchpotato (--purge):
      16. subprocess installed post-removal script returned error exit status 12
      17. Errors were encountered while processing:
      18. openmediavault-couchpotato
      19. Creating index of upgradeable packages ...
      20. Creating index of openmediavault plugins ...
      21. E: Sub-process /usr/bin/dpkg returned an error code (1)
      Display All


      When I try uninstalling from the OMW webinterface I get this error message:

      Source Code

      1. Error #4000:
      2. 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...
      3. Building dependency tree...
      4. Reading state information...
      5. The following packages will be REMOVED:
      6. openmediavault-couchpotato*
      7. 0 upgraded, 0 newly installed, 1 to remove and 2 not upgraded.
      8. After this operation, 54.3 kB disk space will be freed.
      9. (Reading database ...
      10. 35747 files and directories currently installed.)
      11. Removing openmediavault-couchpotato ...
      12. Purging configuration files for openmediavault-couchpotato ...
      13. userdel: couchpotato mail spool (/var/mail/couchpotato) not found
      14. userdel: /home/couchpotato not owned by couchpotato, not removing
      15. dpkg: error processing openmediavault-couchpotato (--purge):
      16. subprocess installed post-removal script returned error exit status 12
      17. Processing triggers for openmediavault ...
      18. Restarting engine daemon ...
      19. Errors were encountered while processing:
      20. openmediavault-couchpotato
      21. Creating index of upgradeable packages ...
      22. Creating index of openmediavault plugins ...
      23. E: Sub-process /usr/bin/dpkg returned an error code (1)' in /usr/share/openmediavault/engined/rpc/pluginmgmt.inc:170
      24. Stack trace:
      25. #0 [internal function]: OMVRpcServicePluginMgmt->remove(Array, Array)
      26. #1 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
      27. #2 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('remove', Array, Array)
      28. #3 /usr/sbin/omv-engined(500): OMVRpc::exec('Plugin', 'remove', Array, Array, 1)
      29. #4 {main}
      Display All


      Any ideas? Thanks for the help so far!
    • If you can't remove a plugin from the command line, the web interface won't work either.

      Try:

      rm -f /var/lib/dpkg/info/openmediavault-couchpotato.postrm
      apt-get purge openmediavault-couchpotato
      rm -rf /opt/couchpotato /var/opt/couchpotato
      omv 4.1.15 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.13
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!