0

Cannot uninstall Nextdns CLI

Hi.

I am on Unifi 4.1.13 and 9.0.138 with the Nextdns cli installed. I want to remove it but when I run the uninstall command , I get the “ cannot uninstall”.

What do I have to do to completely uninstall the Cli?

Thanks

7 replies

null
    • Tony_B
    • 3 days ago
    • Reported - view

    I have the same exact issue. Were you able to resolve?

    • abod
    • 2 days ago
    • Reported - view

    Unfortunately , I haven’t. The only thing I can think of is, it’s because I’m on the EA firmware. 

      • Qasim
      • 4 hrs ago
      • Reported - view

       what the difference between EA and CA

      • Tony_B
      • 3 hrs ago
      • Reported - view

       this is happening on network version 9 + i'm on CA with the same issue.

      • Tony_B
      • 2 hrs ago
      • Reported - view

       manual uninstall worked:

      Manual Uninstallation

      If the script fails to uninstall, you can manually remove NextDNS. This involves stopping the service, removing the executable, and cleaning up related files.

      • Stop the NextDNS service:

        Bash

        sudo systemctl stop nextdns
      • Disable the NextDNS service:

        Bash

        sudo systemctl disable nextdns
      • Remove the NextDNS executable:

        The default installation location shown in your output is /usr/bin/nextdns.

        Bash

        sudo rm /usr/bin/nextdns

        Note: If NextDNS was installed in a different location, adjust the command accordingly. You can try which nextdns to confirm the executable's path if it's still in your PATH.

      • Remove the systemd service file:

        The systemd service file is typically located at /etc/systemd/system/nextdns.service.

        Bash

        sudo rm /etc/systemd/system/nextdns.service
      • Reload systemd manager configuration:

        Bash

        sudo systemctl daemon-reload
      • Remove the NextDNS configuration directory:

        The configuration is usually stored in /etc/nextdns.

        Bash

        sudo rm -r /etc/nextdns
      • Clean up any remaining apt lists (optional but recommended):

        Since the error suggested an apt issue, it's good practice to clean apt's lists.

        Bash

        sudo apt clean
        sudo apt update
    • Qasim
    • 4 hrs ago
    • Reported - view

    What the reason is not uninstall

      • Tony_B
      • 3 hrs ago
      • Reported - view

       in debug mode:
       

      E: Unable to locate package nextdns

      ERROR: uninstall: exit 0

Content aside

  • 2 hrs agoLast active
  • 7Replies
  • 120Views
  • 3 Following