10

My local CUPS server is confused about the name of the printer I use. It has two names: hpext and hpext@vm-cups. I can never predict which one is going to work, and if I use the wrong one, jobs just sit in its queue indefinitely.

There are no printers listed in /etc/cupsd/cupsd.conf; instead I have the line

BrowsePoll cups.eecs.tufts.edu

This server lists only hpext and not hpext@vm-cups.
I'm thinking that somehow my local server is confused, and if I can delete the printer from its memory, all will be well. But nowhere in the documentation can I find a command to delete a printer, and the DELETE PRINTER button on the stupid web interface has no effect.

What can I do?

Norman Ramsey
  • 645
  • 2
  • 10
  • 24

3 Answers3

28

lpadmin helps you to manage cups' printers

Try

man lpadmin

I believe what you need is

lpadmin -x
warren
  • 17,829
  • 23
  • 82
  • 134
5
  1. On web, enter http://localhost:631/printers/
  2. Click on printer to be deleted.
  3. Select Delete Printer in Administration drop-down list.
  4. Confirm Delete Printer by clicking on it.
renonsz
  • 151
  • 1
  • 2
  • After pressing "Delete Printer" (step 4) I got an error "Forbidden". I needed to use Luciano Facchinelli's solution - `lpstat -s` to find the printer name, then `sudo lpadmin -x [printer name from lpstat -s]` – walnut_salami May 30 '21 at 05:35
  • doing this makes the printer immedately appear again. this is no use. – Yanick Rochon Jul 14 '21 at 23:37
1

The other way around this would be to turn off automatic browsing of Network Printers and just add the one printer you want manually. I think the reason the Delete button "has no effect" is that CUPS is getting a broadcast/notification that a "new" printer is available on the network.

Addition: If you don't want to lose those printers you already have, add them to your local CUPS instead of relying on broadcast.

Adam Baxter
  • 228
  • 2
  • 9