Ubuntu – How to disable network printer discovery in Ubuntu 18.04

18.04gnomenetworkingprinting

There are several open questions regarding older Ubuntu versions but none provide a working answer. Here are the steps I tried:

  1. I disabled discovery in cups-browsed configuration
  2. I disabled the whole service
  3. I removed the service
  4. I completely disabled avahi.

The last step worked but as I'm using avahi for other network discovery services, I don't want to remove it. Steps 1-3 work in CUPS itself, somehow Gnome is adding the printers, though. So what I'm looking for is the Gnome setting to disable printer discovery.

Best Answer

Answering my own question, the only solution I found so far is disabling avahi:

sudo systemctl stop avahi-daemon.service
sudo systemctl disable avahi-daemon.service
sudo systemctl stop avahi-daemon.socket
sudo systemctl disable avahi-daemon.socket

I would love a better solution of course.