How to Stop Ubuntu Linux from Automatically Searching for Printers

The Avahi Network Discovery Problem

Modern versions of Ubuntu Linux are designed to be user-friendly, and one way they achieve this is through automatic network discovery. A service called `avahi-daemon` constantly runs in the background, scanning your local Wi-Fi or Ethernet network for shared devices, specifically network printers. While this means you can often print to a Wi-Fi printer without manually installing drivers, it can be highly annoying in a corporate environment or a dorm room. The background scanning can consume system resources, generate unnecessary network traffic, and constantly populate your print dialog box with dozens of random printers belonging to other people that you have no intention of ever using.

How to Disable the CUPS Browsed Service

The specific service responsible for taking Avahi’s network discoveries and automatically adding them as available printers in Ubuntu is `cups-browsed`. You can safely disable this service to stop automatic printer generation.

1. Open your Terminal (you can press Ctrl + Alt + T).

2. To stop the service immediately during your current session, type the following command and press Enter:
sudo systemctl stop cups-browsed

3. Enter your administrator password when prompted.

4. To ensure the service does not start back up automatically the next time you reboot your computer, type this command and press Enter:
sudo systemctl disable cups-browsed

Once disabled, Ubuntu will stop automatically polling the network. Your print dialog will only show printers that you have explicitly and manually configured.

How to Disable Avahi Completely (Optional)

If you don’t use any network discovery features at all (such as finding local file shares or casting devices) and want to completely silence your machine on the local network, you can disable the core Avahi daemon itself.

In the terminal, run sudo systemctl stop avahi-daemon followed by sudo systemctl disable avahi-daemon. Be warned that disabling Avahi will completely break automatic discovery for all local network services, not just printers. Only do this if you prefer to manually configure IP addresses for all your network interactions and prioritize absolute network stealth.

Get the best tech tips delivered straight to your inbox.

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