Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #186052 > unrolled thread
| Started by | Gary Roach <gary719_list1@verizon.net> |
|---|---|
| First post | 2017-08-28 02:30 +0200 |
| Last post | 2017-09-01 23:20 +0200 |
| Articles | 8 — 4 participants |
Back to article view | Back to linux.debian.user
lp printing doesn't work Gary Roach <gary719_list1@verizon.net> - 2017-08-28 02:30 +0200
Re: lp printing doesn't work Dan Purgert <dan@djph.net> - 2017-08-29 12:10 +0200
Re: lp printing doesn't work Dan Purgert <dan@djph.net> - 2017-08-29 12:10 +0200
Re: lp printing doesn't work Brian <ad44@cityscape.co.uk> - 2017-08-29 15:10 +0200
Re: lp printing doesn't work Gary Roach <gary719_list1@verizon.net> - 2017-08-29 23:20 +0200
Re: lp printing doesn't work Brian <ad44@cityscape.co.uk> - 2017-08-30 14:30 +0200
Re: lp printing doesn't work Curt <curty@free.fr> - 2017-08-30 15:50 +0200
Re: lp printing doesn't work (Solved ... sort of) Gary Roach <gary719_list1@verizon.net> - 2017-09-01 23:20 +0200
| From | Gary Roach <gary719_list1@verizon.net> |
|---|---|
| Date | 2017-08-28 02:30 +0200 |
| Subject | lp printing doesn't work |
| Message-ID | <ujg6e-6Od-23@gated-at.bofh.it> |
Hi all Debian Stretch KDE Desktop HP Officejet Pro 8600 printer Wireless connection For some reason, my lp print command doesn't work. My lpoptions file in /etc/cups/lpoptions is: > Default Officejet_Pro_8600_N911a media=DRAFT page-bottom=54 page-left=54 page-right=54 page-top=54 If I run lpoptions on the command line I get: copies=1 device-uri=socket://192.168.1.5:9100 finishings=3 fitplot=true job-cancel-after=10800 job-hold-until=no-hold job-priority=50 job-sheets=none,none marker-change-time=0 media=DRAFT number-up=1 page-bottom=54 page-left=54 page-right=54 page-top=54 printer-commands=AutoConfigure,Clean,PrintSelfTestPage printer-info='HP Officejet Pro 8600' printer-is-accepting-jobs=true printer-is-shared=false printer-location='Local Printer' printer-make-and-model='HP Officejet Pro 8600, hpcups 3.16.11' printer-state=3 printer-state-change-time=1503877259 printer-state-reasons=none printer-type=10522652 printer-uri-supported=ipp://localhost/printers/Officejet_Pro_8600_N911a A you can see, my printer is specifically called out. But if I run lp <file> I get: lp: Error - no default destination available. I've tried to reinstall cups_client but that didn't help. I have an almost identical system that is setup the same way and is not having the problem. Anyone have an idea what's causing this. Gary R.
[toc] | [next] | [standalone]
| From | Dan Purgert <dan@djph.net> |
|---|---|
| Date | 2017-08-29 12:10 +0200 |
| Message-ID | <ujLD4-1hQ-25@gated-at.bofh.it> |
| In reply to | #186052 |
Gary Roach wrote: > Hi all > > Debian Stretch > KDE Desktop > HP Officejet Pro 8600 printer > Wireless connection > > For some reason, my lp print command doesn't work. [...] > > If I run lpoptions on the command line I get: > > copies=1 device-uri=socket://192.168.1.5:9100 finishings=3 > fitplot=true job-cancel-after=10800 job-hold-until=no-hold > job-priority=50 job-sheets=none,none marker-change-time=0 media=DRAFT > number-up=1 page-bottom=54 page-left=54 page-right=54 page-top=54 > printer-commands=AutoConfigure,Clean,PrintSelfTestPage printer-info='HP > Officejet Pro 8600' printer-is-accepting-jobs=true > printer-is-shared=false printer-location='Local Printer' > printer-make-and-model='HP Officejet Pro 8600, hpcups 3.16.11' > printer-state=3 printer-state-change-time=1503877259 > printer-state-reasons=none printer-type=10522652 > printer-uri-supported=ipp://localhost/printers/Officejet_Pro_8600_N911a > > A you can see, my printer is specifically called out. But if I run lp ><file> I get: > > lp: Error - no default destination available. Perhaps you're missing an entry in /etc/printcap? Not 100% sure though, as I don't use cups for printing (but rather lprng). (hope this doesn't double-post, client crashed before ...) -- |_|O|_| Registered Linux user #585947 |_|_|O| Github: https://github.com/dpurgert |O|O|O| PGP: 05CA 9A50 3F2E 1335 4DC5 4AEE 8E11 DDF3 1279 A281
[toc] | [prev] | [next] | [standalone]
| From | Dan Purgert <dan@djph.net> |
|---|---|
| Date | 2017-08-29 12:10 +0200 |
| Message-ID | <ujLD4-1hQ-27@gated-at.bofh.it> |
| In reply to | #186052 |
Gary Roach wrote: > Hi all > > Debian Stretch > KDE Desktop > HP Officejet Pro 8600 printer > Wireless connection > > For some reason, my lp print command doesn't work. > > If I run lpoptions on the command line I get: > > copies=1 device-uri=socket://192.168.1.5:9100 finishings=3 > fitplot=true job-cancel-after=10800 job-hold-until=no-hold > job-priority=50 job-sheets=none,none marker-change-time=0 media=DRAFT > number-up=1 page-bottom=54 page-left=54 page-right=54 page-top=54 > printer-commands=AutoConfigure,Clean,PrintSelfTestPage printer-info='HP > Officejet Pro 8600' printer-is-accepting-jobs=true > printer-is-shared=false printer-location='Local Printer' > printer-make-and-model='HP Officejet Pro 8600, hpcups 3.16.11' > printer-state=3 printer-state-change-time=1503877259 > printer-state-reasons=none printer-type=10522652 > printer-uri-supported=ipp://localhost/printers/Officejet_Pro_8600_N911a > > A you can see, my printer is specifically called out. But if I run lp ><file> I get: > > lp: Error - no default destination available. Is it perhaps a difference in /etc/printcap (or whatever cups uses for handling `lp')? I just use LPRng on my box, so not 100% sure how cups handles it. -- |_|O|_| Registered Linux user #585947 |_|_|O| Github: https://github.com/dpurgert |O|O|O| PGP: 05CA 9A50 3F2E 1335 4DC5 4AEE 8E11 DDF3 1279 A281
[toc] | [prev] | [next] | [standalone]
| From | Brian <ad44@cityscape.co.uk> |
|---|---|
| Date | 2017-08-29 15:10 +0200 |
| Message-ID | <ujOrg-33K-25@gated-at.bofh.it> |
| In reply to | #186052 |
On Sun 27 Aug 2017 at 17:19:51 -0700, Gary Roach wrote: > Debian Stretch > KDE Desktop > HP Officejet Pro 8600 printer > Wireless connection > > For some reason, my lp print command doesn't work. My lpoptions file in > /etc/cups/lpoptions is: > > >Default Officejet_Pro_8600_N911a media=DRAFT page-bottom=54 page-left=54 page-right=54 page-top=54 This is the system's file, not yours. > If I run lpoptions on the command line I get: Run as a user? > copies=1 device-uri=socket://192.168.1.5:9100 finishings=3 fitplot=true > job-cancel-after=10800 job-hold-until=no-hold job-priority=50 > job-sheets=none,none marker-change-time=0 media=DRAFT number-up=1 > page-bottom=54 page-left=54 page-right=54 page-top=54 > printer-commands=AutoConfigure,Clean,PrintSelfTestPage printer-info='HP > Officejet Pro 8600' printer-is-accepting-jobs=true printer-is-shared=false > printer-location='Local Printer' printer-make-and-model='HP Officejet Pro > 8600, hpcups 3.16.11' printer-state=3 printer-state-change-time=1503877259 > printer-state-reasons=none printer-type=10522652 > printer-uri-supported=ipp://localhost/printers/Officejet_Pro_8600_N911a This display is for a default printer. In your case it would be expected to be the system default. > A you can see, my printer is specifically called out. But if I run lp <file> > I get: > > lp: Error - no default destination available. Contradicts what is above. > I've tried to reinstall cups_client but that didn't help. > > I have an almost identical system that is setup the same way and is not > having the problem. > > Anyone have an idea what's causing this. Not a clue! I do not experience it myself. What does 'lpstat -t' give? Does 'lp -d Officejet_Pro_8600_N911a <file>' print? You could compare logs for the "good" and "bad" systems: 'strace lp <file>'. Both systems have the same cupsd.conf and both run cups-browsed? -- Brian.
[toc] | [prev] | [next] | [standalone]
| From | Gary Roach <gary719_list1@verizon.net> |
|---|---|
| Date | 2017-08-29 23:20 +0200 |
| Message-ID | <ujW5t-7PJ-7@gated-at.bofh.it> |
| In reply to | #186131 |
On 08/29/2017 06:02 AM, Brian wrote: > On Sun 27 Aug 2017 at 17:19:51 -0700, Gary Roach wrote: > >> Debian Stretch >> KDE Desktop >> HP Officejet Pro 8600 printer >> Wireless connection >> >> For some reason, my lp print command doesn't work. My lpoptions file in >> /etc/cups/lpoptions is: >> >>> Default Officejet_Pro_8600_N911a media=DRAFT page-bottom=54 page-left=54 page-right=54 page-top=54 > > This is the system's file, not yours. > >> If I run lpoptions on the command line I get: > > Run as a user? > >> copies=1 device-uri=socket://192.168.1.5:9100 finishings=3 fitplot=true >> job-cancel-after=10800 job-hold-until=no-hold job-priority=50 >> job-sheets=none,none marker-change-time=0 media=DRAFT number-up=1 >> page-bottom=54 page-left=54 page-right=54 page-top=54 >> printer-commands=AutoConfigure,Clean,PrintSelfTestPage printer-info='HP >> Officejet Pro 8600' printer-is-accepting-jobs=true printer-is-shared=false >> printer-location='Local Printer' printer-make-and-model='HP Officejet Pro >> 8600, hpcups 3.16.11' printer-state=3 printer-state-change-time=1503877259 >> printer-state-reasons=none printer-type=10522652 >> printer-uri-supported=ipp://localhost/printers/Officejet_Pro_8600_N911a > > This display is for a default printer. In your case it would be expected > to be the system default. > >> A you can see, my printer is specifically called out. But if I run lp <file> >> I get: >> >> lp: Error - no default destination available. > > Contradicts what is above. > >> I've tried to reinstall cups_client but that didn't help. >> >> I have an almost identical system that is setup the same way and is not >> having the problem. >> >> Anyone have an idea what's causing this. > > Not a clue! I do not experience it myself. What does 'lpstat -t' give? > Does 'lp -d Officejet_Pro_8600_N911a <file>' print? You could compare > logs for the "good" and "bad" systems: 'strace lp <file>'. Both systems > have the same cupsd.conf and both run cups-browsed? > Thank you for the response lpstat -t gives: scheduler is running system default destination: Officejet_Pro_8600_N911a device for Officejet_Pro_8600_N911a: socket://192.168.1.5:9100 Officejet_Pro_8600_N911a accepting requests since Mon 28 Aug 2017 05:24:28 PM PDT printer Officejet_Pro_8600_N911a is idle. enabled since Mon 28 Aug 2017 05:24:28 PM PDT Yes 'lp -d Officejet_Pro_8600_N911a <file>' prints. Just lp <file> gives: lp:Error - no default destination aviilable running lpoptions print out, lists the proper url and name of the printer. I have a virtual machine - also Debian Stretch - that acts the exact same way. I have another computer with Stretch installed that works fine. Vary confused. Gary R
[toc] | [prev] | [next] | [standalone]
| From | Brian <ad44@cityscape.co.uk> |
|---|---|
| Date | 2017-08-30 14:30 +0200 |
| Message-ID | <ukai6-8hx-33@gated-at.bofh.it> |
| In reply to | #186160 |
On Tue 29 Aug 2017 at 14:14:52 -0700, Gary Roach wrote: > On 08/29/2017 06:02 AM, Brian wrote: > >On Sun 27 Aug 2017 at 17:19:51 -0700, Gary Roach wrote: [Snip] > >>Anyone have an idea what's causing this. > > > >Not a clue! I do not experience it myself. What does 'lpstat -t' give? > >Does 'lp -d Officejet_Pro_8600_N911a <file>' print? You could compare > >logs for the "good" and "bad" systems: 'strace lp <file>'. Both systems > >have the same cupsd.conf and both run cups-browsed? > > > Thank you for the response > > lpstat -t gives: > scheduler is running > system default destination: Officejet_Pro_8600_N911a 'lpstat -d' gives this line too? > device for Officejet_Pro_8600_N911a: socket://192.168.1.5:9100 > Officejet_Pro_8600_N911a accepting requests since Mon 28 Aug 2017 05:24:28 > PM PDT > printer Officejet_Pro_8600_N911a is idle. enabled since Mon 28 Aug 2017 > 05:24:28 PM PDT > > Yes 'lp -d Officejet_Pro_8600_N911a <file>' prints. > Just lp <file> gives: lp:Error - no default destination aviilable > > running lpoptions print out, lists the proper url and name of the printer. > > I have a virtual machine - also Debian Stretch - that acts the exact same > way. > > I have another computer with Stretch installed that works fine. > > Vary confused. That makes two of us. Try setting a per-user default queue, which overrides the system-level setting in /etc/cups/lpoptions. The per-user default is stored in ~/.cups/lpoptions with 'lpoptions -d'. There is also a PRINTER variable (see lp(1)) which can be used instead. It overrides ~/.cups/lpoptions. -- Brian.
[toc] | [prev] | [next] | [standalone]
| From | Curt <curty@free.fr> |
|---|---|
| Date | 2017-08-30 15:50 +0200 |
| Message-ID | <ukbxw-uZ-17@gated-at.bofh.it> |
| In reply to | #186177 |
On 2017-08-30, Brian <ad44@cityscape.co.uk> wrote: >> >> Vary confused. > > That makes two of us. > > Try setting a per-user default queue, which overrides the system-level > setting in /etc/cups/lpoptions. The per-user default is stored in > ~/.cups/lpoptions with 'lpoptions -d'. There is also a PRINTER variable > (see lp(1)) which can be used instead. It overrides ~/.cups/lpoptions. > There's also LPDEST? I was going to say check your PRINTER and LPDEST environment variables, as they take precedence over whatever is set (if anything) by the lpoptions and lpadmin commands. However I was unsure whether the error message corresponded. lpstat -p gives all spooler destinations. -- "The world breaks everyone and afterward many are strong in the broken places. But those that will not break it kills. It kills the very good and the very gentle and the very brave impartially. If you are none of these you can be sure it will kill you too but there will be no special hurry." *A Farewell to Arms*
[toc] | [prev] | [next] | [standalone]
| From | Gary Roach <gary719_list1@verizon.net> |
|---|---|
| Date | 2017-09-01 23:20 +0200 |
| Subject | Re: lp printing doesn't work (Solved ... sort of) |
| Message-ID | <ul1w6-288-5@gated-at.bofh.it> |
| In reply to | #186183 |
On 08/30/2017 06:46 AM, Curt wrote: > On 2017-08-30, Brian <ad44@cityscape.co.uk> wrote: >>> >>> Vary confused. >> >> That makes two of us. >> >> Try setting a per-user default queue, which overrides the system-level >> setting in /etc/cups/lpoptions. The per-user default is stored in >> ~/.cups/lpoptions with 'lpoptions -d'. There is also a PRINTER variable >> (see lp(1)) which can be used instead. It overrides ~/.cups/lpoptions. >> > > There's also LPDEST? I was going to say check your PRINTER and LPDEST > environment variables, as they take precedence over whatever is set (if > anything) by the lpoptions and lpadmin commands. However I was unsure > whether the error message corresponded. > > lpstat -p gives all spooler destinations. > > Well I guess I have solved this. Not sure why. I originally pasted the Default <printer> -o <options> into lpoptions from another lpoptions file. When I. instead, ran lpoptions -d <printer> and then pasted in the -o options, things started to work. Haven't a clue as to why this made a difference. The file ended up looking the same. Thanks for all of the help. Gary R.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web