Results 1 to 8 of 8

Thread: Can't remove printer

  1. #1
    Join Date
    Aug 2006
    Location
    Stockholm, Sweden
    Beans
    Hidden!

    Can't remove printer

    Running Ubuntu 18.04 LTS and have a problem.
    I can't delete a printer from Settings/Devices/Printers.
    When I click on Remove Printer it is gone but after clicking on some other Device entry (Mouse & Touchpad) and then click on Printers once more ... it is there again.
    Neither 'system-config-printer' or Cups (http://localhost:631/printers/) show the printer.
    Also /etc/cups/printers.conf doesn't show the printer.
    It is only shown in Settings/Devices/Printers or when I try to print something ... then the printer is an option.
    I also followed the recommendation in https://askubuntu.com/questions/1059...eeps-returning.
    How can I remove the printer?
    The Truth Is Out There

  2. #2
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    14,924
    Distro
    Kubuntu 20.04 Focal Fossa

    Re: Can't remove printer

    Open the file /etc/cups/printers.conf in an editor. You'll need to be root to edit this.

    Code:
    sudo nano /etc/cups/printers.conf
    Do you see a stanza for the printer you want to remove? Something like
    Code:
    <Printer Brother_HL_3170CDW_series>
    stuff
    </Printer>
    Try deleting that. First you have to stop the CUPS daemon with
    Code:
    sudo systemctl stop cups
    When you're done editing, run that same command substituting "start" for "stop".
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  3. #3
    Join Date
    Nov 2012
    Location
    Halloween Town
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Can't remove printer

    Thread moved to Hardware.

  4. #4
    Join Date
    Aug 2006
    Location
    Stockholm, Sweden
    Beans
    Hidden!

    Re: Can't remove printer

    The only printer I see is my Default Printer which is OK.
    Code:
    $ sudo cat  /etc/cups/printers.conf
    # Printer configuration file for CUPS v2.2.7
    # Written by cupsd
    # DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING
    <DefaultPrinter HP_LaserJet_M402dn>
    UUID urn:uuid:306d5f71-1973-3b44-4032-2dbc754daf29
    Info Anne Printer
    Location Head Office
    MakeModel HP LaserJet Pro M402-M403 Postscript (recommended)
    DeviceURI hp:/net/HP_LaserJet_M402dn?ip=192.168.1.7
    State Idle
    StateTime 1585486012
    ConfigTime 1585485358
    Type 8425684
    Accepting Yes
    Shared Yes
    JobSheets none none
    QuotaPeriod 0
    PageLimit 0
    KLimit 0
    OpPolicy default
    ErrorPolicy retry-job
    </DefaultPrinter>
    If I give the command '$ avahi-browse --all -t -r | grep -i 3813D4' then I get the wrong one I want to delete.
    Code:
    $ avahi-browse --all -t -r | grep -i 3813D4
    + enp4s0 IPv6 HP LaserJet M402dn (3813D4)                   UNIX Printer         local
    + enp4s0 IPv4 HP LaserJet M402dn (3813D4)                   UNIX Printer         local
    + enp4s0 IPv6 HP LaserJet M402dn (3813D4)                   PDL Printer          local
    + enp4s0 IPv4 HP LaserJet M402dn (3813D4)                   PDL Printer          local
    + enp4s0 IPv6 HP LaserJet M402dn (3813D4)                   Secure Internet Printer local
    + enp4s0 IPv4 HP LaserJet M402dn (3813D4)                   Secure Internet Printer local
    + enp4s0 IPv6 HP LaserJet M402dn (3813D4)                   Internet Printer     local
    + enp4s0 IPv4 HP LaserJet M402dn (3813D4)                   Internet Printer     local
    + enp4s0 IPv6 HP LaserJet M402dn (3813D4)                   _print-caps._tcp     local
    + enp4s0 IPv4 HP LaserJet M402dn (3813D4)                   _print-caps._tcp     local
    + enp4s0 IPv6 HP LaserJet M402dn (3813D4)                   _http-alt._tcp       local
    + enp4s0 IPv4 HP LaserJet M402dn (3813D4)                   _http-alt._tcp       local
    + enp4s0 IPv6 HP LaserJet M402dn (3813D4)                   Web Site             local
    + enp4s0 IPv4 HP LaserJet M402dn (3813D4)                   Web Site             local
    + enp4s0 IPv6 HP LaserJet M402dn (3813D4)                   _privet._tcp         local
    + enp4s0 IPv4 HP LaserJet M402dn (3813D4)                   _privet._tcp         local
    = enp4s0 IPv6 HP LaserJet M402dn (3813D4)                   UNIX Printer         local
       txt = ["TBCP=T" "Binary=T" "Transparent=T" "note=Annes rum" "adminurl=http://printer.local." "priority=50" "product=(HP LaserJet M402dn)" "ty=HP LaserJet M402dn" "rp=RAW" "qtotal=1" "txtvers=1" "UUID=50484336-4836-3030-3538-48ba4e3813d4"]
    = enp4s0 IPv4 HP LaserJet M402dn (3813D4)                   UNIX Printer         local
       txt = ["TBCP=T" "Binary=T" "Transparent=T" "note=Annes rum" "adminurl=http://printer.local." "priority=50" "product=(HP LaserJet M402dn)" "ty=HP LaserJet M402dn" "rp=RAW" "qtotal=1" "txtvers=1" "UUID=50484336-4836-3030-3538-48ba4e3813d4"]
    = enp4s0 IPv6 HP LaserJet M402dn (3813D4)                   PDL Printer          local
       txt = ["TBCP=T" "Binary=T" "Transparent=T" "note=Annes rum" "adminurl=http://printer.local." "priority=40" "product=(HP LaserJet M402dn)" "ty=HP LaserJet M402dn" "qtotal=1" "txtvers=1" "UUID=50484336-4836-3030-3538-48ba4e3813d4"]
    = enp4s0 IPv4 HP LaserJet M402dn (3813D4)                   PDL Printer          local
       txt = ["TBCP=T" "Binary=T" "Transparent=T" "note=Annes rum" "adminurl=http://printer.local." "priority=40" "product=(HP LaserJet M402dn)" "ty=HP LaserJet M402dn" "qtotal=1" "txtvers=1" "UUID=50484336-4836-3030-3538-48ba4e3813d4"]
    = enp4s0 IPv6 HP LaserJet M402dn (3813D4)                   Secure Internet Printer local
       txt = ["mopria_certified=1.2" "mac=xx:xx:xx:xx:xx:xx" "usb_MDL=HP LaserJet M402dn" "usb_MFG=Hewlett-Packard" "TLS=1.2" "PaperMax=legal-A4" "kind=document,envelope,photo" "UUID=50484336-4836-3030-3538-48ba4e3813d4" "Fax=F" "Scan=F" "Duplex=T" "Color=F" "note=Annes rum" "adminurl=https://printer.local./hp/device/info_config_AirPrint.html?tab=Networking&menu=AirPrintStatus" "priority=10" "product=(HP LaserJet M402dn)" "ty=HP LaserJet M402dn" "URF=V1.4,CP99,W8,OB10,PQ3-4-5,DM1,IS1,MT1-2-3-5,RS600" "rp=ipp/print" "pdl=image/urf,application/pdf,application/postscript,application/vnd.hp-PCL,application/vnd.hp-PCLXL,application/PCLm,application/octet-stream,image/jpeg" "qtotal=1" "txtvers=1"]
    = enp4s0 IPv4 HP LaserJet M402dn (3813D4)                   Secure Internet Printer local
       txt = ["mopria_certified=1.2" "mac=xx:xx:xx:xx:xx:xx" "usb_MDL=HP LaserJet M402dn" "usb_MFG=Hewlett-Packard" "TLS=1.2" "PaperMax=legal-A4" "kind=document,envelope,photo" "UUID=50484336-4836-3030-3538-48ba4e3813d4" "Fax=F" "Scan=F" "Duplex=T" "Color=F" "note=Annes rum" "adminurl=https://printer.local./hp/device/info_config_AirPrint.html?tab=Networking&menu=AirPrintStatus" "priority=10" "product=(HP LaserJet M402dn)" "ty=HP LaserJet M402dn" "URF=V1.4,CP99,W8,OB10,PQ3-4-5,DM1,IS1,MT1-2-3-5,RS600" "rp=ipp/print" "pdl=image/urf,application/pdf,application/postscript,application/vnd.hp-PCL,application/vnd.hp-PCLXL,application/PCLm,application/octet-stream,image/jpeg" "qtotal=1" "txtvers=1"]
    = enp4s0 IPv6 HP LaserJet M402dn (3813D4)                   Internet Printer     local
       txt = ["mopria_certified=1.2" "mac=xx:xx:xx:xx:xx:xx" "usb_MDL=HP LaserJet M402dn" "usb_MFG=Hewlett-Packard" "TLS=1.2" "PaperMax=legal-A4" "kind=document,envelope,photo" "UUID=50484336-4836-3030-3538-48ba4e3813d4" "Fax=F" "Scan=F" "Duplex=T" "Color=F" "note=Annes rum" "adminurl=http://printer.local./hp/device/info_config_AirPrint.html?tab=Networking&menu=AirPrintStatus" "priority=10" "product=(HP LaserJet M402dn)" "ty=HP LaserJet M402dn" "URF=V1.4,CP99,W8,OB10,PQ3-4-5,DM1,IS1,MT1-2-3-5,RS600" "rp=ipp/print" "pdl=image/urf,application/pdf,application/postscript,application/vnd.hp-PCL,application/vnd.hp-PCLXL,application/PCLm,application/octet-stream,image/jpeg" "qtotal=1" "txtvers=1"]
    = enp4s0 IPv4 HP LaserJet M402dn (3813D4)                   Internet Printer     local
       txt = ["mopria_certified=1.2" "mac=xx:xx:xx:xx:xx:xx" "usb_MDL=HP LaserJet M402dn" "usb_MFG=Hewlett-Packard" "TLS=1.2" "PaperMax=legal-A4" "kind=document,envelope,photo" "UUID=50484336-4836-3030-3538-48ba4e3813d4" "Fax=F" "Scan=F" "Duplex=T" "Color=F" "note=Annes rum" "adminurl=http://printer.local./hp/device/info_config_AirPrint.html?tab=Networking&menu=AirPrintStatus" "priority=10" "product=(HP LaserJet M402dn)" "ty=HP LaserJet M402dn" "URF=V1.4,CP99,W8,OB10,PQ3-4-5,DM1,IS1,MT1-2-3-5,RS600" "rp=ipp/print" "pdl=image/urf,application/pdf,application/postscript,application/vnd.hp-PCL,application/vnd.hp-PCLXL,application/PCLm,application/octet-stream,image/jpeg" "qtotal=1" "txtvers=1"]
    = enp4s0 IPv6 HP LaserJet M402dn (3813D4)                   _print-caps._tcp     local
       txt = ["UUID=50484336-4836-3030-3538-48ba4e3813d4"]
    = enp4s0 IPv4 HP LaserJet M402dn (3813D4)                   _print-caps._tcp     local
       txt = ["UUID=50484336-4836-3030-3538-48ba4e3813d4"]
    = enp4s0 IPv6 HP LaserJet M402dn (3813D4)                   _http-alt._tcp       local
       txt = ["UUID=50484336-4836-3030-3538-48ba4e3813d4"]
    = enp4s0 IPv4 HP LaserJet M402dn (3813D4)                   _http-alt._tcp       local
       txt = ["UUID=50484336-4836-3030-3538-48ba4e3813d4"]
    = enp4s0 IPv6 HP LaserJet M402dn (3813D4)                   Web Site             local
       txt = ["UUID=50484336-4836-3030-3538-48ba4e3813d4"]
    = enp4s0 IPv4 HP LaserJet M402dn (3813D4)                   Web Site             local
       txt = ["UUID=50484336-4836-3030-3538-48ba4e3813d4"]
    = enp4s0 IPv6 HP LaserJet M402dn (3813D4)                   _privet._tcp         local
       txt = ["cs=offline" "id=" "type=printer" "url=https://www.google.com/cloudprint" "ty=HP LaserJet M402dn (3813D4)" "UUID=50484336-4836-3030-3538-48ba4e3813d4" "txtvers=1"]
    = enp4s0 IPv4 HP LaserJet M402dn (3813D4)                   _privet._tcp         local
       txt = ["cs=offline" "id=" "type=printer" "url=https://www.google.com/cloudprint" "ty=HP LaserJet M402dn (3813D4)" "UUID=50484336-4836-3030-3538-48ba4e3813d4" "txtvers=1"]
    I will also attache a screenshot from Settings/Devices/Printers
    Attached Images Attached Images
    The Truth Is Out There

  5. #5
    brian_p is offline Chocolate-Covered Ubuntu Beans
    Join Date
    Apr 2008
    Location
    UK
    Beans
    1,384

    Re: Can't remove printer

    Quote Originally Posted by zkab View Post
    Running Ubuntu 18.04 LTS and have a problem.
    I can't delete a printer from Settings/Devices/Printers.
    How big a problem is this? Does it prevent your printing from any application? What is shown in the print dialogs of applications you use? Please give the outputs of
    Code:
    lpstat -a
    and
    Code:
    lpstat -l -e
    Neither 'system-config-printer' or Cups (http://localhost:631/printers/) show the printer.
    That's a bug in s-c-p. localhost:631/printers/ shows only local print queues.
    Also /etc/cups/printers.conf doesn't show the printer.
    /etc/cups/printers.conf shows local print queues only. What you see enumerated is not a local print queue but a printer.

    It is only shown in Settings/Devices/Printers or when I try to print something ... then the printer is an option.
    I also followed the recommendation in https://askubuntu.com/questions/1059...eeps-returning.
    How can I remove the printer?
    You can't, not without crippling your printing system. Why not remove the other entry?
    Brian.

  6. #6
    Join Date
    Aug 2006
    Location
    Stockholm, Sweden
    Beans
    Hidden!

    Re: Can't remove printer

    Code:
    forsete@balder:~$ lpstat -a
    HP accepting requests since tis 31 mar 2020 10:51:46
    forsete@balder:~$ lpstat -l -e
    HP permanent ipp://localhost/printers/HP hp:/net/HP_LaserJet_M402dn?hostname=printer.local
    HP_LaserJet_M402dn network none ipps://HP%20LaserJet%20M402dn._ipps._tcp.local/
    Attached is print dialogs.
    I suspect that the printer I want to delete is the HPePrint ... https://printer.local./hp/device/inf...menu=DevStatus
    and I can't print on it only maintain it.
    Attached Images Attached Images
    Last edited by slickymaster; March 31st, 2020 at 11:14 AM. Reason: code tags
    The Truth Is Out There

  7. #7
    brian_p is offline Chocolate-Covered Ubuntu Beans
    Join Date
    Apr 2008
    Location
    UK
    Beans
    1,384

    Re: Can't remove printer

    Thanks for the outputs.

    Quote Originally Posted by zkab View Post
    Code:
    forsete@balder:~$ lpstat -a
    HP accepting requests since tis 31 mar 2020 10:51:46
    forsete@balder:~$ lpstat -l -e
    HP permanent ipp://localhost/printers/HP hp:/net/HP_LaserJet_M402dn?hostname=printer.local
    HP_LaserJet_M402dn network none ipps://HP%20LaserJet%20M402dn._ipps._tcp.local/
    HP is a print queue established automatically by cups-browsed. HP_LaserJet_M402dn is the actual printer, discovered by CUPS from the printer's Bonjour (DNS-SD) broadcasts.

    Attached is print dialogs.
    I suspect that the printer I want to delete is the HPePrint ... https://printer.local./hp/device/inf...menu=DevStatus
    and I can't print on it only maintain it.
    cups-browsed is not required software. You can remove it with
    Code:
    systemctl purge cups-browsed
    and let CUPS handle everything.
    Brian.

  8. #8
    Join Date
    Aug 2006
    Location
    Stockholm, Sweden
    Beans
    Hidden!

    Re: Can't remove printer

    OK ... now I understand.
    Thanks !
    The Truth Is Out There

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •