Score:2

How do I stop Cups from auto detecting printers?

cn flag

How do I stop Cups from detecting and installing printers automatically?

When I go to print, I only want to see the printers I have added manually.

When I remove auto detected network printers in the Cups browser page, they just reinstall, which is extremely annoying. Users should approve printers before they just get installed like this.

I have read posts from a couple years ago, but only saw possible work arounds. I'm looking for a proper solution.

I am using Ubuntu 20.04.

Thanks.

24601 avatar
in flag
[This reference](https://7thzero.com/blog/how-to-stop-ubuntu-20-04-from-auto-adding-network-printers) should help
cn flag
it is the avahi daemon that does that. See https://bugs.launchpad.net/ubuntu/+source/cups-filters/+bug/1753509/comments/11 for instance for -a- method
cn flag
@user68186 I skimmed that one and it might be still useful even if it is from 2013. The bugreport had an answer from 2019. Might be a better method to try 1st.
ar flag
@Rinzwind Even though the original accepted answer was from 2013, it was substantially edited in 2019. There is at least one other answer from 2020, though it may not be the best approach. Do you think adding the text from the comment #11 of the bug report as a new answer to the 2013 question will help?
Kevin Berry avatar
cn flag
Thank you everyone for your suggestions. The simple solution was the reference from 24601: systemctl stop cups-browsed, and systemctl disable cups-browsed. The unwanted network printers are gone from the Cups admin page and from settings and from document print menus. But if I go to add a printer, I can see the network printers still. This is exactly what I wanted! This problem was really an annoyance. Thanks again!
br flag
Good to have a solution - but it turns out stopping detection of printers was not your objective. And, incidentally, if cups-browsed is unneeded, why not `apt purge cups-browsed`? It is of no value to you. Why carry it forever on your machine?
Kevin Berry avatar
cn flag
Hi Brian_p. Stopping the auto installation was my objective. Auto detection is still working. If I click Add a Printer in Cups Admin panel, I see the network printers, which is exactly what I want. If I knew more about the cups-browsed service, I might feel it's safe to purge it, but in practice, I do enable irritating services occasionally when I need them for something and then disable them again.
br flag
@Kevin Berry Thank you for the explanation. You have chosen a correct technical solution. Personally, I think auto-installation is of benefit to many users, but I understand and sympathise with your view. My argument against your view has been silenced by hiding my answer.
ph flag
https://askubuntu.com/a/1436064/456438
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.