[cups] get a new copy of a network printers configuration

Bob cups-a5729 at listemail.net
Fri Nov 30 17:29:30 PST 2018


** Reply to message from Brian Potkin <claremont102 at gmail.com> on Sat, 01 Dec
2018 00:14:49 +0000

> On Fri 30 Nov 2018 at 15:41:13 -0800, Bob wrote:
> 
> > ** Reply to message from Brian Potkin <claremont102 at gmail.com> on Fri, 30 Nov
> > 2018 23:14:21 +0000
> 
> [...]
>  
> > > I am more than a little confused. :)
> > > 
> > > Would you post the outputs of
> > > 
> > > 1. lpstat -e
> > > 2. dpkg -l cups
> > > 3. dpkg -l cups-browsed
> > 
> > robert at MARS:~$ lpstat -e
> > HP_Color_LaserJet_MFP_M277dw
> > HP_Color_LaserJet_MFP_M277dw_BC46DE_
> > HP_Color_LaserJet_MFP_M277dw_fax
> 
> This is what CUPS itself sees as being available printers. I understand
> the first and third lines. The second line I am less sure of but it is
> not the cause of your issue. Did you at one time connect the printer by
> USB?

Not on this computer.  It may have been connected to my desktop computer when I
first got the printer but wireless is why I bought it.


> > robert at MARS:~$ dpkg -l cups
> > Desired=Unknown/Install/Remove/Purge/Hold
> > | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
> > |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
> > ||/ Name                   Version          Architecture     Description
> > +++-======================-================-================-=================================================
> > ii  cups                   2.2.8-5ubuntu1   amd64            Common UNIX
> > Printing System(tm) - PPD/driver supp
> > 
> > robert at MARS:~$ dpkg -l cups-browsed
> > Desired=Unknown/Install/Remove/Purge/Hold
> > | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
> > |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
> > ||/ Name                   Version          Architecture     Description
> > +++-======================-================-================-=================================================
> > ii  cups-browsed           1.21.3-1         amd64            OpenPrinting CUPS
> > Filters - cups-browsed
> > robert at MARS:~$ 
> > 
> > 
> > > when run from a terminal? Would you also post what is displayed in the
> > > firefox print dialog?
> > 
> > Print to file
> > HP_Color_LaserJet_MFP_M277dw
> > HP_Color_LaserJet_MFP_M277dw_BC46DE_
> > HP_Color_LaserJet_MFP_M277dw_fax
> > print
> 
> The first three entries are local print queues created by cups-browsed.
> "print" is the same as "HP_Color_LaserJet_MFP_M277dw" and is discovered
> by the GTK print dialog independently of cups-browsed and CUPS.
> 
> What follows is a bit of a stab in the dark.
> 
> Restart the cups-browsed service with
> 
>   systemctl restart cups-browsed
> 
> and *immediately* look at the outputs of 'lpstat -a'  and 'lpstat -e'.
> Do you see your printer there in both outputs as you have recorded above
> for 'lpstat -e'? If so, run the two commands again after a couple of
> minutes. Does any output change?


robert at MARS:~$ lpstat -a
HP_Color_LaserJet_MFP_M277dw accepting requests since Fri 30 Nov 2018 02:21:40
PM PST
HP_Color_LaserJet_MFP_M277dw_BC46DE_ accepting requests since Fri 30 Nov 2018
12:40:54 PM PST
HP_Color_LaserJet_MFP_M277dw_fax accepting requests since Mon 29 Oct 2018
12:46:21 PM PDT

robert at MARS:~$ lpstat -e
HP_Color_LaserJet_MFP_M277dw
HP_Color_LaserJet_MFP_M277dw_BC46DE_
HP_Color_LaserJet_MFP_M277dw_fax

robert at MARS:~$ systemctl restart cups-browsed

robert at MARS:~$ lpstat -a
HP_Color_LaserJet_MFP_M277dw accepting requests since Fri 30 Nov 2018 02:21:40
PM PST
HP_Color_LaserJet_MFP_M277dw_BC46DE_ accepting requests since Fri 30 Nov 2018
04:54:53 PM PST
HP_Color_LaserJet_MFP_M277dw_fax accepting requests since Mon 29 Oct 2018
12:46:21 PM PDT

robert at MARS:~$ lpstat -e
HP_Color_LaserJet_MFP_M277dw
HP_Color_LaserJet_MFP_M277dw_BC46DE_
HP_Color_LaserJet_MFP_M277dw_fax

The only change I see here is the time on the middle entry

3 or 4 minutes kater

robert at MARS:~$ lpstat -a
HP_Color_LaserJet_MFP_M277dw accepting requests since Fri 30 Nov 2018 02:21:40
PM PST
HP_Color_LaserJet_MFP_M277dw_fax accepting requests since Mon 29 Oct 2018
12:46:21 PM PDT

robert at MARS:~$ lpstat -e
HP_Color_LaserJet_MFP_M277dw
HP_Color_LaserJet_MFP_M277dw_BC46DE_
HP_Color_LaserJet_MFP_M277dw_fax

Now the middle entry is gone

about 10 minutes later

robert at MARS:~$ lpstat -a
HP_Color_LaserJet_MFP_M277dw accepting requests since Fri 30 Nov 2018 02:21:40
PM PST
HP_Color_LaserJet_MFP_M277dw_fax accepting requests since Mon 29 Oct 2018
12:46:21 PM PDT

robert at MARS:~$ lpstat -e
HP_Color_LaserJet_MFP_M277dw
HP_Color_LaserJet_MFP_M277dw_BC46DE_
HP_Color_LaserJet_MFP_M277dw_fax

-- 
Robert Blair


More information about the cups mailing list