When I delete a printer it immediately reappears.

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
begtognen
Level 3
Level 3
Posts: 100
Joined: Mon Aug 29, 2016 4:33 am

When I delete a printer it immediately reappears.

Post by begtognen »

OS: Linux Mint 20.2, XFCE

I own two HP printers, A and B.

I never added B - B added itself. When I try to delete B, it immediately adds itself again.

A is the only printer I ever use, so I have no use for B. (Other people use B, or I'd just unplug it.) Any ideas on how to get rid of B?

Thanks for your help.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
AndyMH
Level 21
Level 21
Posts: 13736
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: When I delete a printer it immediately reappears.

Post by AndyMH »

Turn off cupsbrowsed.

Code: Select all

sudo systemctl mask cups-browsed
If that doesn't fix it, turn it back on with:

Code: Select all

sudo systemctl unmask cups-browsed
sudo systemctl start cups-browsed
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
begtognen
Level 3
Level 3
Posts: 100
Joined: Mon Aug 29, 2016 4:33 am

Re: When I delete a printer it immediately reappears.

Post by begtognen »

Andy, thanks for your help. I didn't have any luck - is there anything else I can try?
User avatar
AndyMH
Level 21
Level 21
Posts: 13736
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: When I delete a printer it immediately reappears.

Post by AndyMH »

USB or network printer and what make/model?
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
pdc_2
Level 10
Level 10
Posts: 3019
Joined: Mon May 11, 2009 1:21 am

Re: When I delete a printer it immediately reappears.

Post by pdc_2 »

someone reported success with

Code: Select all

sudo systemctl stop cups-browsed
and then

Code: Select all

sudo systemctl disable cups-browsed
from post #9 here viewtopic.php?f=51&t=359725
begtognen
Level 3
Level 3
Posts: 100
Joined: Mon Aug 29, 2016 4:33 am

Re: When I delete a printer it immediately reappears.

Post by begtognen »

Hi Andy,

The network printer I want to use: HP Smart Tank Plus.
The network printer I'd like to delete: HP OfficeJet Pro.

Thanks, pdc_2 - I tried the link you gave, but had no luck.

Sage
User avatar
AndyMH
Level 21
Level 21
Posts: 13736
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: When I delete a printer it immediately reappears.

Post by AndyMH »

Can't help further, my printers are networked and stopping/masking cups-browsed has always worked for me since LM18 (first LM to use systemd). Maybe something specific to HP (mine are Brother) or some other network printer service running?
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
begtognen
Level 3
Level 3
Posts: 100
Joined: Mon Aug 29, 2016 4:33 am

Re: When I delete a printer it immediately reappears.

Post by begtognen »

Hi Andy - Thanks for trying, I appreciate your time.
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: When I delete a printer it immediately reappears.

Post by brian_p »

You do not want auto-discovery of printers. Dead easy!

Code: Select all

apt purge cups-browsed
Reboot.
--
Brian.
pdc_2
Level 10
Level 10
Posts: 3019
Joined: Mon May 11, 2009 1:21 am

Re: When I delete a printer it immediately reappears.

Post by pdc_2 »

so if you are still out there begtogen:

when you said
I tried the link you gave, but had no luck.
..... I wondered if you pasted the two commands into a terminal?

Code: Select all

sudo systemctl stop cups-browsed

Code: Select all

sudo systemctl disable cups-browsed
Locked

Return to “Printers & Scanners”