Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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


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?

share|improve this question
did you take a look at lpadmin's man page?.. lpadmin helps you to manage cups' printers – Luciano Facchinelli Aug 16 '11 at 20:59
@Luciano: dammit, lpadmin -x was there the whole time. Please write an answer so I can upvote and accept. – Norman Ramsey Aug 18 '11 at 2:09
Alright, done ! – Luciano Facchinelli Aug 18 '11 at 15:25
up vote 15 down vote accepted

lpadmin helps you to manage cups' printers


man lpadmin

I believe what you need is

lpadmin -x
share|improve this answer
@warren: good edits; thanks – Norman Ramsey Aug 19 '11 at 5:00
@warren: thanks – Luciano Facchinelli Aug 19 '11 at 14:48
Maybe it's useful to list the printers before removing: lpstats -s – Jaime M. May 30 '15 at 17:56

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.

share|improve this answer
I don't want to lose the color printer, the high-speed copier, etc. – Norman Ramsey Aug 18 '11 at 2:09

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.