Skip to content

Local printers also created as remote printers on the same machine #1531

@brianjmurrell

Description

@brianjmurrell

Describe the bug
I have added an HP network printer (port 9100) to cups using hp-setup. That works fine. But I get duplicate printers with my hostname appended that I don't really need or want. It just creates confusion. I.e.

$ lpstat -t
scheduler is running
no system default destination
device for HP_LaserJet_M1522nf_MFP_fax_network: hpfax:/net/HP_LaserJet_M1522nf_MFP?ip=10.75.22.235
device for HP_LaserJet_M1522nf_MFP_network: hp:/net/HP_LaserJet_M1522nf_MFP?ip=10.75.22.235
HP_LaserJet_M1522nf_MFP_fax_network accepting requests since Thu 02 Apr 2026 02:21:47 PM EDT
HP_LaserJet_M1522nf_MFP_network accepting requests since Tue 07 Apr 2026 05:24:11 PM EDT
printer HP_LaserJet_M1522nf_MFP_fax_network is idle.  enabled since Thu 02 Apr 2026 02:21:47 PM EDT
printer HP_LaserJet_M1522nf_MFP_network is idle.  enabled since Tue 07 Apr 2026 05:24:11 PM EDT
$ lpstat -e
HP_LaserJet_M1522nf_MFP_fax_network
HP_LaserJet_M1522nf_MFP_fax_network_pc
HP_LaserJet_M1522nf_MFP_network
Printer_in_Dad_s_Office_using_the_Network_pc

The above *_pc printers are the duplicates being automatically added as "remote" printers.

To Reproduce
Steps to reproduce the behavior:

  1. Add a real HP network printer using port 9100
  2. Observe that a duplicate print queue is created for it

Expected behavior
No duplicate print queue should be created.

System Information:

  • OS and its version: Fedora 43
  • Application N/A
  • CUPS version 2.4.16

Additional context
I've already disabled cups-browsed to eliminate that as being the culprit.

The duplicate printers are not created if I set Browsing Off in /etc/cups/cupsd.conf but I do want this machine to automatically add print queues for remote printers on other hosts in the network.

$ avahi-browse -rt _ipp._tcp
+ pc_bridge IPv6 HP_LaserJet_M1522nf_MFP_fax_network @ pc      _ipp._tcp            local
+ pc_bridge IPv6 Printer in Dad's Office, using the Network @ pc _ipp._tcp            local
+ pc_bridge IPv6 AirPrint HP_LaserJet_M1522nf_MFP @ pc         _ipp._tcp            local
= pc_bridge IPv6 HP_LaserJet_M1522nf_MFP_fax_network @ pc      _ipp._tcp            local
   hostname = [pc.local]
   address = [10.75.22.1]
   port = [631]
   txt = ["printer-type=0x100E" "Color=T" "mopria-certified=1.3" "URF=V1.4,CP1,W8,PQ4,SRGB24,RS300,FN3" "TLS=1.2" "UUID=4cf6dbcd-83b6-36c6-7ffe-5830dee3176e" "pdl=application/pdf,application/postscript,image/jpeg,image/png,image/pwg-raster,image/urf" "product=(HP Fax2)" "priority=0" "note=" "adminurl=https://pc.local.:631/printers/HP_LaserJet_M1522nf_MFP_fax_network" "ty=HP Fax2 hpcups" "rp=printers/HP_LaserJet_M1522nf_MFP_fax_network" "qtotal=1" "txtvers=1"]
= pc_bridge IPv6 AirPrint HP_LaserJet_M1522nf_MFP @ pc         _ipp._tcp            local
   hostname = [pc.local]
   address = [10.75.22.1]
   port = [631]
   txt = ["pdl=application/octet-stream,application/pdf,application/postscript,application/vnd.cups-raster,image/gif,image/jpeg,image/png,image/tiff,image/urf,text/html,text/plain,application/vnd.adobe-reader-postscript,application/vnd.cups-command" "printer-type=0x829044" "printer-state=3" "product=(GPL Ghostscript)" "note=Hewlett-Packard HP LaserJet M1522nf MFP" "rp=printers/HP_LaserJet_M1522nf_MFP" "URF=none" "Transparent=T" "qtotal=1" "txtvers=1"]
= pc_bridge IPv6 Printer in Dad's Office, using the Network @ pc _ipp._tcp            local
   hostname = [pc.local]
   address = [10.75.22.1]
   port = [631]
   txt = ["printer-type=0x809046" "Copies=T" "mopria-certified=1.3" "URF=V1.4,CP1,W8,PQ4,RS1200,FN3" "TLS=1.2" "UUID=0eadd2c8-926f-3f41-6471-821fb6959254" "pdl=application/pdf,application/postscript,image/jpeg,image/png,image/pwg-raster,image/urf" "product=(Hewlett-Packard HP LaserJet M1522nf MFP)" "priority=0" "note=Dad's Office" "adminurl=https://pc.local.:631/printers/HP_LaserJet_M1522nf_MFP_network" "ty=HP LaserJet M1522 MFP Series Postscript (recommended)" "rp=printers/HP_LaserJet_M1522nf_MFP_network" "qtotal=1" "txtvers=1"]

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinginvestigatingInvestigating the issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions