How to Disable the Ubuntu ‘Debian-tor’ Service

The Hidden Onion Router Service

When you install the Tor Browser or the standalone Tor networking package on Ubuntu, the system often creates a background systemd service called debian-tor.service. This daemon is designed to run the Tor client silently in the background, continuously maintaining circuits through the Tor network. This is useful if you are running a hidden service (an Onion site) or if you have configured your system to route all background traffic through Tor by default.

However, for the vast majority of desktop users, this background daemon is entirely unnecessary and represents a significant security and performance liability. If you only use Tor occasionally by launching the Tor Browser application, the browser handles its own isolated connection just fine. Having a secondary, system-wide Tor daemon running 24/7 consumes RAM, keeps network sockets open, and draws unnecessary attention from your ISP or network administrator (since it constantly maintains connections to known Tor entry nodes, even when you aren’t actively browsing). If you only want to use Tor when you specifically open the browser, you must disable this persistent background service.

How to Disable the Debian-Tor Service

You can permanently prevent the system-wide Tor daemon from initializing using standard systemctl commands.

  1. Open your Ubuntu Terminal.
  2. To disable the service so it does not load during the boot sequence, run:
sudo systemctl disable debian-tor.service
  1. To ensure that automatic package updates or network manager scripts cannot accidentally trigger the service to start up in the background, you must mask it:
sudo systemctl mask debian-tor.service

The system will now completely ignore the background Tor service. (Note: This will not prevent the standalone Tor Browser application from functioning normally when you manually launch it).

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.