The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

If you can read me, I'm broken!

Views: 10,222β€…    Votes:  2β€…
Tags: gnome   printing   hardware  
Link: πŸ” See Original Answer on Ask Ubuntu ⧉ πŸ”—

URL: https://askubuntu.com/q/1187761
Title: How do I get rid of a ghost printer in Gnome?
ID: /2019/11/10/How-do-I-get-rid-of-a-ghost-printer-in-Gnome_
Created: November 10, 2019    Edited:  November 10, 2019
Upload: September 15, 2024    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false


I had a similar problem:

printer list.png

The bottom printer is from an older installation. I edited the file:

$ sudo -H gedit /etc/cups/printers.conf

# Printer configuration file for CUPS v2.1.3
# Written by cupsd
# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING

<DefaultPrinter DCP-7065DN>
UUID urn:uuid:1a785efb-bce4-35dd-7e44-c4fd53bb429a
Info Brother DCP-7065DN
  (... SNIP ...)
</DefaultPrinter>

<Printer DCP7065DN>
UUID urn:uuid:46e866c1-3ab2-324b-65fd-30d2fee77f85
Info DCP7065DN
  (... SNIP ...)
</Printer>

So I deleted the second entry…

<Printer DCP7065DN>
UUID urn:uuid:46e866c1-3ab2-324b-65fd-30d2fee77f85
Info DCP7065DN
  (... SNIP ...)
</Printer>

… and saved the file.

A reboot is necessary for changes to take effect.


There is also a printer definition file in /etc/cups/ppd:

printer ppd.png

So I removed this file too:

$ ll /etc/cups/ppd

total 28
drwxr-xr-x 2 root lp  4096 Aug 10  2018 ./
drwxr-xr-x 5 root lp  4096 Nov 10 09:59 ../
-rw-r----- 1 root lp  8191 Aug 10  2018 DCP-7065DN.ppd
-rw-r----- 1 root lp 10537 Aug  7  2018 DCP7065DN.ppd

$cat /etc/cups/ppd/DCP7065DN.ppd

*PPD-Adobe: "4.3"
*%================================================
*%	Copyright Brother Industries,Ltd 2006-2008
*%	"Brother DCP7065DN for CUPS"
*%================================================
  (... SNIP ...)
*UIConstraints:	*InputSlot MANUAL	*Duplex DuplexTumble
*UIConstraints:	*InputSlot MANUAL	*Duplex DuplexNoTumble

$ sudo rm -f /etc/cups/ppd/DCP7065DN.ppd
⇧ How should I setup Tuned-adm? Prevent sleep if CPU usage is high  β‡©