Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #229688 > unrolled thread

Can't print: /var/spool/lpd

Started byriveravaldez <riveravaldezmail@gmail.com>
First post2020-12-12 01:40 +0100
Last post2020-12-19 18:00 +0100
Articles 7 — 3 participants

Back to article view | Back to linux.debian.user


Contents

  Can't print: /var/spool/lpd riveravaldez <riveravaldezmail@gmail.com> - 2020-12-12 01:40 +0100
    Re: Can't print: /var/spool/lpd riveravaldez <riveravaldezmail@gmail.com> - 2020-12-12 05:20 +0100
      Re: Can't print: /var/spool/lpd Greg Wooledge <wooledg@eeg.ccf.org> - 2020-12-14 14:40 +0100
        Re: Can't print: /var/spool/lpd riveravaldez <riveravaldezmail@gmail.com> - 2020-12-19 11:10 +0100
    Re: Can't print: /var/spool/lpd Brian <ad44@cityscape.co.uk> - 2020-12-12 13:50 +0100
      Re: Can't print: /var/spool/lpd riveravaldez <riveravaldezmail@gmail.com> - 2020-12-19 11:10 +0100
        Re: Can't print: /var/spool/lpd Brian <ad44@cityscape.co.uk> - 2020-12-19 18:00 +0100

#229688 — Can't print: /var/spool/lpd

Fromriveravaldez <riveravaldezmail@gmail.com>
Date2020-12-12 01:40 +0100
SubjectCan't print: /var/spool/lpd
Message-ID<Bl173-38C-3@gated-at.bofh.it>
Hi, I'm having an issue with a Brother HL-3150CDN printer on Debian Testing.

The printer functions with the drivers CUPS offers by default, but the
official Brother's drivers has some options that I need to work with
the equipment.

I was able to install these drivers some time ago, but now they didn't
seem to work.

The two file to install are:
hl3150cdnlpr-1.1.2-1.i386.deb
hl3150cdncupswrapper-1.1.4-0.i386.deb

Both for 32-bits, so, I did the:
$ sudo dpkg --add-architecture i386
$ sudo apt-get update

And then used apt-get to install them.
The packages get installed but didn't seem to send the data to the
printer at printing time.
Any idea how to diagnose this?

The only error I'd saw until now is when I install the lpr package:

$ sudo apt-get install ./hl3150cdnlpr-1.1.2-1.i386.deb
(...)
mkdir: no se puede crear el directorio «/var/spool/lpd/hl3150cdn»: No
existe el fichero o el directorio
chown: no se puede acceder a '/var/spool/lpd/hl3150cdn': No existe el
fichero o el directorio
chgrp: no se puede acceder a '/var/spool/lpd/hl3150cdn': No existe el
fichero o el directorio
chmod: no se puede acceder a '/var/spool/lpd/hl3150cdn': No existe el
fichero o el directorio

Any hint what could/should I do?

Thanks a lot in advance!

[toc] | [next] | [standalone]


#229690

Fromriveravaldez <riveravaldezmail@gmail.com>
Date2020-12-12 05:20 +0100
Message-ID<Bl4xX-5nf-1@gated-at.bofh.it>
In reply to#229688
On 12/11/20, riveravaldez <riveravaldezmail@gmail.com> wrote:
> (...)
> I was able to install these drivers some time ago, but now they didn't
> seem to work.
> (...)
> The packages get installed but didn't seem to send the data to the
> printer at printing time.
> Any idea how to diagnose this?
>
> The only error I'd saw until now is when I install the lpr package:
>
> $ sudo apt-get install ./hl3150cdnlpr-1.1.2-1.i386.deb
> (...)
> mkdir: no se puede crear el directorio «/var/spool/lpd/hl3150cdn»: No
> existe el fichero o el directorio
> chown: no se puede acceder a '/var/spool/lpd/hl3150cdn': No existe el
> fichero o el directorio
> chgrp: no se puede acceder a '/var/spool/lpd/hl3150cdn': No existe el
> fichero o el directorio
> chmod: no se puede acceder a '/var/spool/lpd/hl3150cdn': No existe el
> fichero o el directorio

Sorry, I should've translated the error messages:

mkdir: can't create folder «...»: Folder or file doesn't exist

And the others:
"no se puede acceder a" = "can't access to"
"No existe el fichero o el directorio" = "File or folder doesn't exist"

Also, the subject should be something more like "driver installation
errors", I guess.

Thanks a lot.

[toc] | [prev] | [next] | [standalone]


#229754

FromGreg Wooledge <wooledg@eeg.ccf.org>
Date2020-12-14 14:40 +0100
Message-ID<BlWeZ-4F4-3@gated-at.bofh.it>
In reply to#229690
On Sat, Dec 12, 2020 at 01:14:35AM -0300, riveravaldez wrote:
> > chmod: no se puede acceder a '/var/spool/lpd/hl3150cdn': No existe el
> > fichero o el directorio
> 
> Sorry, I should've translated the error messages:
> 
> mkdir: can't create folder «...»: Folder or file doesn't exist
> 
> And the others:
> "no se puede acceder a" = "can't access to"
> "No existe el fichero o el directorio" = "File or folder doesn't exist"

For future requests, you can get English messages by overriding the LANG
(or LC_ALL) variable.

LC_ALL=C apt-get whatever

or, if you're in a csh/tcsh shell, or if you're using sudo:

env LC_ALL=C apt-get whatever

This is better than translating yourself, because the exact wording of the
"C" locale messages is extremely well known, and will convey information
to those reading your mail.  In particular, there is a big difference
between the messages "Permission denied" (errno 13) and "Operation not
permitted" (errno 1).

[toc] | [prev] | [next] | [standalone]


#229834

Fromriveravaldez <riveravaldezmail@gmail.com>
Date2020-12-19 11:10 +0100
Message-ID<BnHlw-3UI-3@gated-at.bofh.it>
In reply to#229754
On 12/14/20, Greg Wooledge <wooledg@eeg.ccf.org> wrote:
>
> For future requests, you can get English messages by overriding the LANG
> (or LC_ALL) variable.
>
> LC_ALL=C apt-get whatever
>
> or, if you're in a csh/tcsh shell, or if you're using sudo:
>
> env LC_ALL=C apt-get whatever

Thanks A LOT, Greg!

Didn't knew that could be done. Very (very) useful!
I'm already using it.

Kind regards!

[toc] | [prev] | [next] | [standalone]


#229697

FromBrian <ad44@cityscape.co.uk>
Date2020-12-12 13:50 +0100
Message-ID<Blcvv-1Fk-3@gated-at.bofh.it>
In reply to#229688
On Fri 11 Dec 2020 at 21:33:42 -0300, riveravaldez wrote:

> Hi, I'm having an issue with a Brother HL-3150CDN printer on Debian Testing.

You do not say, so we will assume there is a USB connection. The device
probably does IPP-over-USB; you will want to read

  https://wiki.debian.org/CUPSDriverlessPrinting
 
> The printer functions with the drivers CUPS offers by default, but the
> official Brother's drivers has some options that I need to work with
> the equipment.

An interesting comment. Debian will have set uo a print queue for the
printer. Please give the output of

  lpoptions -p PRINT_Q_NAME -l

> I was able to install these drivers some time ago, but now they didn't
> seem to work.
> 
> The two file to install are:
> hl3150cdnlpr-1.1.2-1.i386.deb
> hl3150cdncupswrapper-1.1.4-0.i386.deb
> 
> Both for 32-bits, so, I did the:
> $ sudo dpkg --add-architecture i386
> $ sudo apt-get update
> 
> And then used apt-get to install them.
> The packages get installed but didn't seem to send the data to the
> printer at printing time.
> Any idea how to diagnose this?
> 
> The only error I'd saw until now is when I install the lpr package:
> 
> $ sudo apt-get install ./hl3150cdnlpr-1.1.2-1.i386.deb
> (...)
> mkdir: no se puede crear el directorio «/var/spool/lpd/hl3150cdn»: No
> existe el fichero o el directorio
> chown: no se puede acceder a '/var/spool/lpd/hl3150cdn': No existe el
> fichero o el directorio
> chgrp: no se puede acceder a '/var/spool/lpd/hl3150cdn': No existe el
> fichero o el directorio
> chmod: no se puede acceder a '/var/spool/lpd/hl3150cdn': No existe el
> fichero o el directorio

The installation of this package goes smoothly on my i386 machine.

-- 
Brian.

[toc] | [prev] | [next] | [standalone]


#229835

Fromriveravaldez <riveravaldezmail@gmail.com>
Date2020-12-19 11:10 +0100
Message-ID<BnHlw-3UI-9@gated-at.bofh.it>
In reply to#229697
On 12/12/20, Brian <ad44@cityscape.co.uk> wrote:
> On Fri 11 Dec 2020 at 21:33:42 -0300, riveravaldez wrote:
>
>> Hi, I'm having an issue with a Brother HL-3150CDN printer on Debian
>> Testing.
>
> You do not say, so we will assume there is a USB connection. The device
> probably does IPP-over-USB; you will want to read
>
>   https://wiki.debian.org/CUPSDriverlessPrinting

Thanks for your answer, Brian, certainly I'd forget to specify it:
The connection is not USB, it's a network connection (Ethernet), the printer
is connected to the router and through the router I have access to it from
various computers in the house.

In the 'Add Printer' page/step, CUPS offers me three options:
1. Brother HL-3150CDN series - IPP Everywhere
2. Brother HL-3150CDN seriesm fully driverless, cups-filters 1.28.6 (en)
3. Brother HL-3150CDN series CUPS (en)
The first and second work fine. The third one appears twice, and seems to be
generated by the installation of the official drivers from Brother (I tried both
options with similar result: the printer doesn't seems to receive the
job/printing order).

http://localhost:631/jobs/ once said:

processing since
Sat Dec 19 06:47:26 2020
"No se ha podido localizar la impresora "BRN30055CA838C7"."

Which means: "Couldn't find the printer "BR..."
But almost always just show the job as "completed".

>> The printer functions with the drivers CUPS offers by default, but the
>> official Brother's drivers has some options that I need to work with
>> the equipment.
>
> An interesting comment. Debian will have set uo a print queue for the
> printer. Please give the output of
>
>   lpoptions -p PRINT_Q_NAME -l

$ lpoptions -p Brother_HL-3150CDN_series -l
PageSize/Media Size: *A4 Letter Legal Executive A5 A6 B5 JISB5 JISB6
EnvDL EnvC5 Env10 EnvMonarch Br3x5 FanFoldGermanLegal EnvPRC5Rotated
Postcard EnvYou4 EnvChou3 210x270mm 195x270mm 184x260mm 197x273mm
Duplex/Two-Sided: DuplexTumble DuplexNoTumble *None
BRInputSlot/Paper Source: *AutoSelect Tray1 Manual
BRResolution/Print Quality: *600dpi 600x2400dpi
BRMonoColor/Color / Mono: *Auto FullColor Mono
BRMediaType/Media Type: *Plain Thin Thick Thicker BOND Env EnvThick
EnvThin Recycled Label Glossy PostCard
BRColorMatching/Color Mode: *Normal Vivid None
BRGray/Improve Gray Color: *OFF ON
BREnhanceBlkPrt/Enhance Black Printing: *OFF ON
BRTonerSaveMode/Toner Save Mode: OFF *ON
BRImproveOutput/Improve Print Output: *OFF BRLessPaperCurl BRFixIntensity
BRSkipBlank/Skip Blank Page: *OFF ON
BRBrightness/Brightness: -20 -19 -18 -17 -16 -15 -14 -13 -12 -11 -10
-9 -8 -7 -6 -5 -4 -3 -2 -1 *0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
17 18 19 20
BRContrast/Contrast: -20 -19 -18 -17 -16 -15 -14 -13 -12 -11 -10 -9 -8
-7 -6 -5 -4 -3 -2 -1 *0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
19 20
BRRed/Red: -20 -19 -18 -17 -16 -15 -14 -13 -12 -11 -10 -9 -8 -7 -6 -5
-4 -3 -2 -1 *0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
BRGreen/Green: -20 -19 -18 -17 -16 -15 -14 -13 -12 -11 -10 -9 -8 -7 -6
-5 -4 -3 -2 -1 *0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
BRBlue/Blue: -20 -19 -18 -17 -16 -15 -14 -13 -12 -11 -10 -9 -8 -7 -6
-5 -4 -3 -2 -1 *0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
BRSaturation/Saturation: -20 -19 -18 -17 -16 -15 -14 -13 -12 -11 -10
-9 -8 -7 -6 -5 -4 -3 -2 -1 *0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
17 18 19 20

>> I was able to install these drivers some time ago, but now they didn't
>> seem to work.
>>
>> The two file to install are:
>> hl3150cdnlpr-1.1.2-1.i386.deb
>> hl3150cdncupswrapper-1.1.4-0.i386.deb
>>
>> Both for 32-bits, so, I did the:
>> $ sudo dpkg --add-architecture i386
>> $ sudo apt-get update
>>
>> And then used apt-get to install them.
>> The packages get installed but didn't seem to send the data to the
>> printer at printing time.
>> Any idea how to diagnose this?
>>
>> The only error I'd saw until now is when I install the lpr package:
>>
>> $ sudo apt-get install ./hl3150cdnlpr-1.1.2-1.i386.deb
>> (...)
>> mkdir: no se puede crear el directorio «/var/spool/lpd/hl3150cdn»: No
>> existe el fichero o el directorio
>> chown: no se puede acceder a '/var/spool/lpd/hl3150cdn': No existe el
>> fichero o el directorio
>> chgrp: no se puede acceder a '/var/spool/lpd/hl3150cdn': No existe el
>> fichero o el directorio
>> chmod: no se puede acceder a '/var/spool/lpd/hl3150cdn': No existe el
>> fichero o el directorio
>
> The installation of this package goes smoothly on my i386 machine.

Well, here I have those errors. I've tried creating manually the folder:
/var/spool/lpd/hl3150cdn
Which I had to do as root.
Once the folder is created, I reinstalled the packages, and the errors didn't
appeared no more:

$ sudo apt-get install --reinstall ./hl3150cdnlpr-1.1.2-1.i386.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'hl3150cdnlpr:i386' instead of './hl3150cdnlpr-1.1.2-1.i386.deb'
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 11 not upgraded.
After this operation, 0 B of additional disk space will be used.
Get:1 /(...)/hl3150cdnlpr-1.1.2-1.i386.deb hl3150cdnlpr i386 1.1.2-1 [695 kB]
(Reading database ... 152529 files and directories currently installed.)
Preparing to unpack .../hl3150cdnlpr-1.1.2-1.i386.deb ...
Unpacking hl3150cdnlpr:i386 (1.1.2-1) over (1.1.2-1) ...
Setting up hl3150cdnlpr:i386 (1.1.2-1) ...

So, no errors. But:

$ sudo ls -a /var/spool/lpd/hl3150cdn/
.  ..

So, maybe the installation can't put anything there because the folder
was created
by root?

The other package (CUPS wrapper) shows no errors:

$ sudo apt-get install --reinstall ./hl3150cdncupswrapper-1.1.4-0.i386.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'hl3150cdncupswrapper:i386' instead of
'./hl3150cdncupswrapper-1.1.4-0.i386.deb'
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 11 not upgraded.
After this operation, 0 B of additional disk space will be used.
Get:1 /(...)/hl3150cdncupswrapper-1.1.4-0.i386.deb
hl3150cdncupswrapper i386 1.1.4-0 [13.6 kB]
(Reading database ... 152529 files and directories currently installed.)
Preparing to unpack .../hl3150cdncupswrapper-1.1.4-0.i386.deb ...
Restarting cups (via systemctl): cups.service.
Unpacking hl3150cdncupswrapper:i386 (1.1.4-0) over (1.1.4-0) ...
Setting up hl3150cdncupswrapper:i386 (1.1.4-0) ...
Restarting cups (via systemctl): cups.service.
lpadmin -p HL3150CDN -E -v
dnssd://Brother%20HL-3150CDN%20series._ipp._tcp.local/?uuid=e3248000-80ce-11db-8000-30055ca838c7
-P /usr/share/cups/model/Brother/brother_hl3150cdn_printer_en.ppd
lpadmin: Printer drivers are deprecated and will stop working in a
future version of CUPS.

And this is the output after both reinstallations and the printer re-added
(apparently without problems) in CUPS:

$ lpoptions -p Brother_HL-3150CDN_series -l
PageSize/Media Size: *A4 Letter Legal Executive A5 A6 B5 JISB5 JISB6
EnvDL EnvC5 Env10 EnvMonarch Br3x5 FanFoldGermanLegal EnvPRC5Rotated
Postcard EnvYou4 EnvChou3 210x270mm 195x270mm 184x260mm 197x273mm
Duplex/Two-Sided: DuplexTumble DuplexNoTumble *None
BRInputSlot/Paper Source: *AutoSelect Tray1 Manual
BRResolution/Print Quality: *600dpi 600x2400dpi
BRMonoColor/Color / Mono: *Auto FullColor Mono
BRMediaType/Media Type: *Plain Thin Thick Thicker BOND Env EnvThick
EnvThin Recycled Label Glossy PostCard
BRColorMatching/Color Mode: *Normal Vivid None
BRGray/Improve Gray Color: *OFF ON
BREnhanceBlkPrt/Enhance Black Printing: *OFF ON
BRTonerSaveMode/Toner Save Mode: OFF *ON
BRImproveOutput/Improve Print Output: *OFF BRLessPaperCurl BRFixIntensity
BRSkipBlank/Skip Blank Page: *OFF ON
BRBrightness/Brightness: -20 -19 -18 -17 -16 -15 -14 -13 -12 -11 -10
-9 -8 -7 -6 -5 -4 -3 -2 -1 *0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
17 18 19 20
BRContrast/Contrast: -20 -19 -18 -17 -16 -15 -14 -13 -12 -11 -10 -9 -8
-7 -6 -5 -4 -3 -2 -1 *0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
19 20
BRRed/Red: -20 -19 -18 -17 -16 -15 -14 -13 -12 -11 -10 -9 -8 -7 -6 -5
-4 -3 -2 -1 *0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
BRGreen/Green: -20 -19 -18 -17 -16 -15 -14 -13 -12 -11 -10 -9 -8 -7 -6
-5 -4 -3 -2 -1 *0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
BRBlue/Blue: -20 -19 -18 -17 -16 -15 -14 -13 -12 -11 -10 -9 -8 -7 -6
-5 -4 -3 -2 -1 *0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
BRSaturation/Saturation: -20 -19 -18 -17 -16 -15 -14 -13 -12 -11 -10
-9 -8 -7 -6 -5 -4 -3 -2 -1 *0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
17 18 19 20

But no matter the jobs appearing as "completed", the printer doesn't
activates and it doesn't print, so, any idea?

Thanks a lot, I'm still trying to figure this out...

[toc] | [prev] | [next] | [standalone]


#229844

FromBrian <ad44@cityscape.co.uk>
Date2020-12-19 18:00 +0100
Message-ID<BnNKi-7DR-11@gated-at.bofh.it>
In reply to#229835
On Sat 19 Dec 2020 at 07:05:24 -0300, riveravaldez wrote:

> On 12/12/20, Brian <ad44@cityscape.co.uk> wrote:
> > On Fri 11 Dec 2020 at 21:33:42 -0300, riveravaldez wrote:
> >
> >> Hi, I'm having an issue with a Brother HL-3150CDN printer on Debian
> >> Testing.
> >
> > You do not say, so we will assume there is a USB connection. The device
> > probably does IPP-over-USB; you will want to read
> >
> >   https://wiki.debian.org/CUPSDriverlessPrinting
> 
> Thanks for your answer, Brian, certainly I'd forget to specify it:
> The connection is not USB, it's a network connection (Ethernet), the printer
> is connected to the router and through the router I have access to it from
> various computers in the house.

Ok. That rules out one avenue of exploration.
 
> In the 'Add Printer' page/step, CUPS offers me three options:
> 1. Brother HL-3150CDN series - IPP Everywhere
> 2. Brother HL-3150CDN seriesm fully driverless, cups-filters 1.28.6 (en)
> 3. Brother HL-3150CDN series CUPS (en)
> The first and second work fine.

Good. This illustrates that a user with a modern Brother printer does
not need a non-free Brother driver.

>                                 The third one appears twice, and seems to be
> generated by the installation of the official drivers from Brother (I tried both
> options with similar result: the printer doesn't seems to receive the
> job/printing order).

The entries in the "Add Printer" display will have nothing to do with
whether the Brother drivers are installed. They will be to do with the
URIs discovered and given on the second page of the CUPS web interface.

The job not getting to the printer is probably a URI issue. Please give
the output of 'lpinfo -v'.

> http://localhost:631/jobs/ once said:
> 
> processing since
> Sat Dec 19 06:47:26 2020
> "No se ha podido localizar la impresora "BRN30055CA838C7"."
> 
> Which means: "Couldn't find the printer "BR..."

A URI or network issue.

> But almost always just show the job as "completed".

The job is regarded as completed if the filters complete successfully.
Looks like they have.

[...]

> > The installation of this package goes smoothly on my i386 machine.
> 
> Well, here I have those errors. I've tried creating manually the folder:
> /var/spool/lpd/hl3150cdn
> Which I had to do as root.
> Once the folder is created, I reinstalled the packages, and the errors didn't
> appeared no more:

Jobs will be correctly processed whether or not /var/spool/lpd/hl3150cdn
exists. All you have to do is 'mkdir /var/spool/lpd/' because it is this
directory the lpr package is looking for. But it is not needed anyway.

Brother is at least twenty years behind the times with the packages it
distributes. I ask you - lpd in ths day and age?

> $ sudo apt-get install --reinstall ./hl3150cdnlpr-1.1.2-1.i386.deb
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> Note, selecting 'hl3150cdnlpr:i386' instead of './hl3150cdnlpr-1.1.2-1.i386.deb'
> 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 11 not upgraded.
> After this operation, 0 B of additional disk space will be used.
> Get:1 /(...)/hl3150cdnlpr-1.1.2-1.i386.deb hl3150cdnlpr i386 1.1.2-1 [695 kB]
> (Reading database ... 152529 files and directories currently installed.)
> Preparing to unpack .../hl3150cdnlpr-1.1.2-1.i386.deb ...
> Unpacking hl3150cdnlpr:i386 (1.1.2-1) over (1.1.2-1) ...
> Setting up hl3150cdnlpr:i386 (1.1.2-1) ...
> 
> So, no errors. But:
> 
> $ sudo ls -a /var/spool/lpd/hl3150cdn/
> .  ..
> 
> So, maybe the installation can't put anything there because the folder
> was created
> by root?

No. It's a bit of Brother nonsense to want /var/spool/lpd/ created.

[...]

> But no matter the jobs appearing as "completed", the printer doesn't
> activates and it doesn't print, so, any idea?

Let's also have what you get for 'lpstat -t' and 'lpstat -l -e'.

-- 
Brian.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web