How to Completely Disable the ‘dbus-broker’ Service in Ubuntu Server

The dbus-broker is a high-performance implementation of the D-Bus message bus specification, designed to eventually replace the traditional dbus-daemon. In specific legacy environments or when troubleshooting IPC (Inter-Process Communication) issues, system administrators may need to disable the broker and revert to the classic daemon. This guide explains how to completely disable and mask the dbus-broker service.

Prerequisites

You must have root or sudo privileges on your Ubuntu Server. Note that disabling D-Bus entirely will break systemd and most IPC communications; this guide disables the broker implementation specifically.

Disable and Mask the Service

Stop the Running Service

If the broker is currently active, stop it using systemctl:
sudo systemctl stop dbus-broker.service

Disable the Service

Prevent the broker from starting automatically at boot:
sudo systemctl disable dbus-broker.service

Mask the Service

To ensure it cannot be started by socket activation or other dependencies, mask the service:
sudo systemctl mask dbus-broker.service

Verify the Configuration

Run systemctl status dbus-broker.service to confirm the service is masked and inactive. Ensure that the traditional dbus.service is running normally to maintain system stability and IPC functionality.

Get the best tech tips delivered straight to your inbox.

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