LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can't print to a wireless printer (https://www.linuxquestions.org/questions/linux-newbie-8/cant-print-to-a-wireless-printer-4175664967/)

bertmung 11-26-2019 05:24 PM

Can't print to a wireless printer
 
I am trying to print to a Brother MFC-7860DW over a wireless connection.

Here's what I know:

I installed the driver from Brother's website.

I found the uri using

lpinfo --include-schemes dnssd -v

I've looked up the IP address on the printer LCD display. It says 000.000.000.000.

ping 000.000.000.000
PING 000.000.000.000 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.054 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.053 ms


Wireless printing works from my Windows machine.

Wireless printing works on my Ubuntu 19.4 machine for an HP Officejet 6600.

I get this error message in CUPS:

Returning IPP client-error-not-possible for Cancel-Job (ipp://localhost/jobs/50) from localhost


This is a shared printer so I want to be very careful changing any settings on the printer.

michaelk 11-26-2019 07:14 PM

When you stated wireless connection, are you referring to the computer or the printer?

If the printer is connected by a wire its wireless adapter will not have an assigned IP address and vice versa. Check the status of the other adapter.

Since Windows is able to print to the Brother printer it itself is not the problem.

I don't have access to a MFC-7860DW but I do have an HL-L2360DW which is similar since it also uses the PCL print language. The installer found the printer and I selected automatic URI. The installation was successful and a test page was printed. I am running Ubuntu 19 as a virtual machine but with a networked printer it does not matter.

ferrari 11-26-2019 10:04 PM

Welcome to LinuxQuestions.org. You describe having installed the Brother driver, and finding the URI (via DNS-SD I assume?) but some definitive output will be useful here.

1. The configured printer URI and reported printer status...
Code:

lpstat -t
Enclose your output within code tags (refer to the '#' button in the advanced forum editor).

2. The configured filter...
Code:

sudo egrep -i "name|model|filter" /etc/cups/ppd/*
3. Also, tell us which dsitro you are using (as that impact on the specific advice given).

Soadyheid 11-27-2019 06:04 AM

Welcome to LinuxQuestions! :)
Quote:

I've looked up the IP address on the printer LCD display. It says 000.000.000.000.
Looks like your printer has not been assigned an IP address by your router. Weird?

Quote:

ping 000.000.000.000
PING 000.000.000.000 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.054 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.053 ms
This is the loopback result, NOT the printer. 127.0.0.1 is the computer's localhost address.

Where exactly did you get the driver and how did you install it?

Play Bonny!

:hattip:

ferrari 11-27-2019 12:24 PM

I completely missed that... for some reason thinking OP had just obfuscated the address (usually done with XXX's of course). Anyway, that is the issue here. :)

michaelk 11-27-2019 12:36 PM

I disagree, the inactive network adapter is assigned 0.0.0.0 by default and I would guess the OP looked at the status for the wrong adapter.

The OP also posted it works with Windows but not with Ubuntu which means it should not be a printer problem.

On the other hand the meaning of shared printer could be it is connected to a Windows PC using a USB cable.

ferrari 11-27-2019 03:52 PM

Quote:

On the other hand the meaning of shared printer could be it is connected to a Windows PC using a USB cable.
That's true, and the OP hasn't clarified this as yet.

bertmung 11-30-2019 01:26 PM

Quote:

Originally Posted by ferrari (Post 6062221)

1. The configured printer URI and reported printer status...
Code:

lpstat -t

Code:

no system default destination
device for MFC-7860DW: dnssd://Brother%20MFC-7860DW._pdl-datastream._tcp.local/
device for MFC7860DW: dnssd://Brother%20MFC-7860DW._pdl-datastream._tcp.local/

MFC-7860DW accepting requests since Fri 29 Nov 2019 08:32:30 PM EST
MFC7860DW accepting requests since Tue 26 Nov 2019 05:56:58 PM EST

printer MFC-7860DW is idle.  enabled since Fri 29 Nov 2019 08:32:30 PM EST
printer MFC7860DW is idle.  enabled since Tue 26 Nov 2019 05:56:58 PM EST

Quote:

2. The configured filter...
Code:

sudo egrep -i "name|model|filter" /etc/cups/ppd/*

Code:

:~$ sudo egrep -i "name|model|filter" /etc/cups/ppd/*
/etc/cups/ppd/MFC-7860DW.ppd:*PCFileName: "MFC7860.PPD"
/etc/cups/ppd/MFC-7860DW.ppd:*cupsModelNumber:      72
/etc/cups/ppd/MFC-7860DW.ppd:*cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperMFC7860DW"
/etc/cups/ppd/MFC-7860DW.ppd:*ModelName: "MFC7860DW"
/etc/cups/ppd/MFC-7860DW.ppd:*NickName: "Brother MFC7860DW for CUPS"
/etc/cups/ppd/MFC-7860DW.ppd:*ShortNickName: "Brother MFC7860DW for CUPS"
/etc/cups/ppd/MFC-7860DW.ppd:        /devname (%disk0%) def
/etc/cups/ppd/MFC-7860DW.ppd:                devname exch 48 add 5 exch put
/etc/cups/ppd/MFC-7860DW.ppd:                devname devstatus {
/etc/cups/ppd/MFC-7860DW.ppd:    {(fonts/)AppendName exch pop mark exch
/etc/cups/ppd/MFC-7860DW.ppd:      {}=string filenameforall counttomark
/etc/cups/ppd/MFC-7860DW.ppd:  }=string filenameforall
/etc/cups/ppd/MFC7860DW.ppd:*PCFileName: "MFC7860.PPD"
/etc/cups/ppd/MFC7860DW.ppd:*cupsModelNumber:      72
/etc/cups/ppd/MFC7860DW.ppd:*cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperMFC7860DW"
/etc/cups/ppd/MFC7860DW.ppd:*ModelName: "MFC7860DW"
/etc/cups/ppd/MFC7860DW.ppd:*NickName: "Brother MFC7860DW for CUPS"
/etc/cups/ppd/MFC7860DW.ppd:*ShortNickName: "Brother MFC7860DW for CUPS"
/etc/cups/ppd/MFC7860DW.ppd:        /devname (%disk0%) def
/etc/cups/ppd/MFC7860DW.ppd:                devname exch 48 add 5 exch put
/etc/cups/ppd/MFC7860DW.ppd:                devname devstatus {
/etc/cups/ppd/MFC7860DW.ppd:    {(fonts/)AppendName exch pop mark exch
/etc/cups/ppd/MFC7860DW.ppd:      {}=string filenameforall counttomark
/etc/cups/ppd/MFC7860DW.ppd:  }=string filenameforall

I deleted parts of the output that were about other printers.


Quote:

3. Also, tell us which dsitro you are using (as that impact on the specific advice given).
I started on Ubuntu 19.4. Upgraded to 19.10 last night.

bertmung 11-30-2019 01:29 PM

Quote:

Originally Posted by Soadyheid (Post 6062299)


Looks like your printer has not been assigned an IP address by your router. Weird?

This is the loopback result, NOT the printer. 127.0.0.1 is the computer's localhost address.

Where exactly did you get the driver and how did you install it?

Play Bonny!

:hattip:

I downloaded the driver from the Brother website. I installed it by typing the driver file name into the command line.

bertmung 11-30-2019 01:34 PM

Quote:

Originally Posted by michaelk (Post 6062442)
I disagree, the inactive network adapter is assigned 0.0.0.0 by default and I would guess the OP looked at the status for the wrong adapter.

The OP also posted it works with Windows but not with Ubuntu which means it should not be a printer problem.

On the other hand the meaning of shared printer could be it is connected to a Windows PC using a USB cable.

I found 000.000.000.000 on the printer's LCD by following the MFG instructions.

I haven't looked at any adapters.

Everyone prints to it wirelessly. We occasionally use a USB cable when wireless isn't working. That is rare.

Also, I am impressed by the effort all of you have put into answer this question. I hope to learn enough to do the same someday.

ferrari 11-30-2019 02:11 PM

Thanks for posting the requested output. The printer status is as expected. You have the printer defined twice (although that won't cause an issue here).

The configured URI is
Code:

dnssd://Brother%20MFC-7860DW._pdl-datastream._tcp.local/
which means that CUPS uses DNS-SD (DNS service discovery) which automates browsing for new printers and addressing of existing printers. It should just work so long as your printer is attached (via wired ethernet or wifi) to your LAN. What is strange so far is that you didn't confirm that the printer has an IP address in the same subnet as your PC (and other LAN hosts).

So, just to clarify the printer is associated with your wifi router (access point), and that you're not just trying to connect using wifi Direct (printer-----PC) for example?

bertmung 11-30-2019 05:49 PM

Quote:

Originally Posted by ferrari (Post 6063400)
What is strange so far is that you didn't confirm that the printer has an IP address in the same subnet as your PC (and other LAN hosts).

So, just to clarify the printer is associated with your wifi router (access point), and that you're not just trying to connect using wifi Direct (printer-----PC) for example?

Well I'm not sure now that you mention it. I thought I was connecting to the printer directly without going through the network. Maybe not.

I'll have an opportunity to ask Monday.

I'm impressed that you responded so quickly. Thank you.

ferrari 11-30-2019 05:54 PM

Well, I get alerts for subscribed threads and when I have time to asisst I do. ;)

ferrari 11-30-2019 05:57 PM

Quote:

Well I'm not sure now that you mention it. I thought I was connecting to the printer directly without going through the network. Maybe not.
The usual approach for shared printers is to have them available on the network you're connected to - that's what I would have assumed, but that means someone (=administrator) makes a deliberate effort to configure the printer (eg via front panel) to connect the device to a wireless network in the first place. I personally dislike the concept of connecting directly "on demand" with Wifi Direct, and it has been shown to be a security risk anyway.

bertmung 12-01-2019 06:11 PM

Quote:

Originally Posted by ferrari (Post 6063400)
...


So, just to clarify the printer is associated with your wifi router (access point), and that you're not just trying to connect using wifi Direct (printer-----PC) for example?

Good question. I had assumed that since it wasn't connecting to the printer as expected there must be some complicated network setup. I checked on the Windows machine that connects to this printer and see that the port is WSD. I wonder if I should just uninstall the printer(both versions), and reinstall using all defaults. I won't be in that office again until Tuesday.

Thank you.


All times are GMT -5. The time now is 12:56 PM.