homebridge/homebridge-config-ui-x

Can't uninstall HB Service

philipyoungg opened this issue · 3 comments

Describe The Bug

I'm migrating my homebridge to docker. I wanted to uninstall hb-service but got issue.

The 'hb-service uninstall' command is not available when Homebridge is running as a system package

Logs

No response

Config

No response

Homebridge UI Version

4.53.0

Homebridge Version

1.7.0

Node.js Version

18.13.0

Operating System

Ubuntu / Debian (or a variant)

Environment Info

  • Using Docker?
  • Using Hyper-V?
  • Using hb-service?

Raspberry Pi Model

None

Hi @philipyoungg does this comment help at all? I know it's not a direct solution, but maybe it can help you understand how you have homebridge running so that it might be clearer how to properly uninstall/remove hb-service?

#1573 (comment)

Sorry for the late reply. I didn't get notification on Github.

I honestly don't remember how I had it installed in Ubuntu.

I tried following https://github.com/homebridge/homebridge-config-ui-x/wiki/How-To-Swap-From-Standalone-Mode-to-Service-Mode but

  • Remove the homebridge-config-ui-x service:
    • doesn't work because I don't think it was installed as standalone back when I tried doing it.
  • Remove the homebridge service:
    • this part works.
  • sudo hb-service install --user homebridge --port 8080 -U /var/lib/homebridge
    • this part doesn't work. Still the same error as The 'hb-service install' command is not available when Homebridge is running as a system package.

Thanks, uninstalled by following https://github.com/homebridge/homebridge-apt-pkg

Got the clue after doing when running hb-service status

Which spits out This hb-service command is provided by Homebridge APT Package