LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-23-2017, 05:00 PM   #1
KMCarpenter
Member
 
Registered: Mar 2017
Posts: 64

Rep: Reputation: Disabled
Another CUPS problem


Hello.

I just got a new printer and installed it in the CUPS interface. It found the printer and added it fine but it will not print. It gets stuck at "Connecting to printer..."

I can ping my printer fine.

The only thing I can think is that the address isn't resolving correctly. The connection string in CUPS is lpd://BRWA86BAD896C04/BINARY_P1

Thanks for any help!
 
Old 06-23-2017, 05:07 PM   #2
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 3,364

Rep: Reputation: 567Reputation: 567Reputation: 567Reputation: 567Reputation: 567Reputation: 567
If avahi is installed and active, you could try using the following instead...
Code:
lpd://BRWA86BAD896C04.local/BINARY_P1
You can try pinging first to see if it resolves...
Code:
ping BRWA86BAD896C04.local
Alternatively, use the printer IP address eg assuming 192.168.1.100...
Code:
 lpd://192.168.1.100/BINARY_P1
Be aware though that if the printer IP address is dynamically assigned it might change in the future, so it is best to statically assign it first, or reserve the printer IP address in the router (usually by way of MAC address recognition).
 
Old 06-23-2017, 05:17 PM   #3
KMCarpenter
Member
 
Registered: Mar 2017
Posts: 64

Original Poster
Rep: Reputation: Disabled
I'm not sure what I did but it seems to be working (and pinging [ping BRWA86BAD896C04.local]) now. However its saying the job sent to the printer fine....but nothing prints! lol. My luck is horrible.
 
Old 06-23-2017, 05:25 PM   #4
KMCarpenter
Member
 
Registered: Mar 2017
Posts: 64

Original Poster
Rep: Reputation: Disabled
I noticed the printer says "receiving data" when i attempt to print....it just doesn't print after that...hmmm
 
Old 06-23-2017, 05:29 PM   #5
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 3,364

Rep: Reputation: 567Reputation: 567Reputation: 567Reputation: 567Reputation: 567Reputation: 567
So, you now have connectivity, but no printing occurs.

1) Examine /var/log/cups/error_log for errors. If necessary you can increase the reporting verbosity with
Code:
sudo cupsctl --debug-logging
then try sending another print job.

2) Does the CUPS test page print successfully? You can do that via the CUPS web interface
http://localhost:631/printers
Select the printer concerned > Maintenance > Print Test Page

3) Show us the configured printer driver
Code:
egrep "Model|Name|Filter" > /etc/cups/ppd/*
 
Old 06-23-2017, 05:37 PM   #6
KMCarpenter
Member
 
Registered: Mar 2017
Posts: 64

Original Poster
Rep: Reputation: Disabled
It does the same thing for a test page.....thge printer says its getting the data on the LCD but nothing prints.

I'm having trouble getting the print driver
Quote:
pi@raspberrypi:~ $ sudo egrep "Model|Name|Filter" > /etc/cups/ppd/*
bash: /etc/cups/ppd/*: Permission denied
pi@raspberrypi:~ $
 
Old 06-23-2017, 06:24 PM   #7
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 3,364

Rep: Reputation: 567Reputation: 567Reputation: 567Reputation: 567Reputation: 567Reputation: 567
Can you tell us the printer brand/model? I assume a Brother device of some kind.

Sorry the command should have been
Code:
egrep "Model|Name|Filter" /etc/cups/ppd/*
 
Old 06-23-2017, 06:27 PM   #8
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 3,364

Rep: Reputation: 567Reputation: 567Reputation: 567Reputation: 567Reputation: 567Reputation: 567
Did you install the Brother Linux drivers for your model?

http://support.brother.com/g/s/id/li...nload_prn.html
 
Old 06-23-2017, 06:37 PM   #9
KMCarpenter
Member
 
Registered: Mar 2017
Posts: 64

Original Poster
Rep: Reputation: Disabled
This is the driver I installed

http://www.openprinting.org/printer/...her-MFC-J480DW

That link you provided doesn't list my printer
 
Old 06-23-2017, 07:07 PM   #10
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 3,364

Rep: Reputation: 567Reputation: 567Reputation: 567Reputation: 567Reputation: 567Reputation: 567
Install the vendor driver
http://support.brother.com/g/b/downl...480dw_us_eu_as
 
Old 06-23-2017, 07:27 PM   #11
KMCarpenter
Member
 
Registered: Mar 2017
Posts: 64

Original Poster
Rep: Reputation: Disabled
I can't find a PPD file for CUPS
 
Old 06-23-2017, 07:41 PM   #12
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 3,364

Rep: Reputation: 567Reputation: 567Reputation: 567Reputation: 567Reputation: 567Reputation: 567
The ppd file by itself does not constitute the driver. Often, proprietary filters are used in addition to CUPS filtering. This is the case for your printer model. Install the appropriate lpr and cups wrapper packages from the Brother website. Once installed, configure CUPS to use the Brother drivers instead. That will install the appropriate .ppd file for you.
 
Old 06-23-2017, 07:46 PM   #13
KMCarpenter
Member
 
Registered: Mar 2017
Posts: 64

Original Poster
Rep: Reputation: Disabled
Oh... so install the brothers driver package on the system that runs cups? Then go from there? I'll give it a try as soon as I get back. Thanks!
 
Old 06-23-2017, 09:16 PM   #14
KMCarpenter
Member
 
Registered: Mar 2017
Posts: 64

Original Poster
Rep: Reputation: Disabled
I tried this and now when I go through the new printer setup page....it shows my printer in the driver list. But when I install with that, CUPS processes and completed the job but it doesn't print, and the printer no longer says its receiving data.
 
Old 06-23-2017, 09:35 PM   #15
KMCarpenter
Member
 
Registered: Mar 2017
Posts: 64

Original Poster
Rep: Reputation: Disabled
Also looks like an error during install....I'm stumped.

Quote:
pi@raspberrypi:~/Downloads $ sudo bash linux-brprinter-installer-2.1.1-1 MFC-J480DW
You are going to install following packages.
mfcj480dwlpr-1.0.0-0.i386.deb
mfcj480dwcupswrapper-1.0.0-0.i386.deb
brscan4-0.4.4-3.i386.deb
brscan-skey-0.2.4-1.i386.deb
OK? [y/N] ->y

dpkg -x mfcj480dwlpr-1.0.0-0.i386.deb /
dpkg -x mfcj480dwcupswrapper-1.0.0-0.i386.deb /
(Reading database ... 147491 files and directories currently installed.)
Removing mfcj480dwcupswrapper (1.0.0-0) ...
[ ok ] Restarting cups (via systemctl): cups.service.
Purging configuration files for mfcj480dwcupswrapper (1.0.0-0) ...
dpkg-deb: building package `mfcj480dwlpr' in `mfcj480dwlpr-1.0.0-0a.i386.deb'.
dpkg -b ./brother_driver_packdir mfcj480dwlpr-1.0.0-0a.i386.deb
dpkg-deb: building package `mfcj480dwcupswrapper' in `mfcj480dwcupswrapper-1.0.0-0a.i386.deb'.
dpkg -b ./brother_driver_packdir mfcj480dwcupswrapper-1.0.0-0a.i386.deb
dpkg -i --force-all mfcj480dwlpr-1.0.0-0a.i386.deb
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: package architecture (i386) does not match system (armhf)
(Reading database ... 147488 files and directories currently installed.)
Preparing to unpack mfcj480dwlpr-1.0.0-0a.i386.deb ...
Unpacking mfcj480dwlpr (1.0.0-0) over (1.0.0-0) ...
Setting up mfcj480dwlpr (1.0.0-0) ...
dpkg -i --force-all mfcj480dwcupswrapper-1.0.0-0a.i386.deb
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: package architecture (i386) does not match system (armhf)
Selecting previously unselected package mfcj480dwcupswrapper.
(Reading database ... 147488 files and directories currently installed.)
Preparing to unpack mfcj480dwcupswrapper-1.0.0-0a.i386.deb ...
Unpacking mfcj480dwcupswrapper (1.0.0-0) ...
Setting up mfcj480dwcupswrapper (1.0.0-0) ...
Restarting cups (via systemctl): cups.service.
lpadmin -p MFCJ480DW -E -v dnssd://Brother%20MFC-J480DW._ipp._tcp.local/ -P /usr/share/cups/model/Brother/brother_mfcj480dw_printer_en.ppd
#
Will you specify the Device URI? [Y/n] ->y


0: vnc:/
1: http
2: ipp14
3: ipp
4: socket
5: https
6: lpd
7: hp
8: ipps
9: hpfax
10: dnssd://Brother%20MFC-J480DW._ipp._tcp.local/
11: lpd://BRWA86BAD896C04/BINARY_P1
12 (I): Specify IP address.
13 (A): Auto. (dnssd://Brother%20MFC-J480DW._ipp._tcp.local/)

select the number of destination Device URI. ->13

lpadmin -p MFCJ480DW -v dnssd://Brother%20MFC-J480DW._ipp._tcp.local/ -E
Test Print? [y/N] ->y

wait 5s.
lpr -P MFCJ480DW /usr/share/cups/data/testprint
You are going to install following packages.
brscan4-0.4.4-3.i386.deb
dpkg -i --force-all brscan4-0.4.4-3.i386.deb
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: package architecture (i386) does not match system (armhf)
(Reading database ... 147492 files and directories currently installed.)
Preparing to unpack brscan4-0.4.4-3.i386.deb ...
Unpacking brscan4 (0.4.4-3) over (0.4.4-3) ...
Setting up brscan4 (0.4.4-3) ...
This software is based in part on the work of the Independent JPEG Group.
You are going to install following packages.
brscan-skey-0.2.4-1.i386.deb
dpkg -i --force-all brscan-skey-0.2.4-1.i386.deb
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: package architecture (i386) does not match system (armhf)
(Reading database ... 147492 files and directories currently installed.)
Preparing to unpack brscan-skey-0.2.4-1.i386.deb ...
Unpacking brscan-skey (0.2.4-1) over (0.2.4-1) ...
dpkg: brscan-skey: dependency problems, but configuring anyway as you requested:
brscan-skey depends on libc6 (>= 2.3.4-1).

Setting up brscan-skey (0.2.4-1) ...
enter IP address ->192.168.2.6

brsaneconfig4 -a name=MFC-J480DW model=MFC-J480DW ip=192.168.2.6
linux-brprinter-installer-2.1.1-1: line 1105: /usr/bin/brsaneconfig4: cannot execute binary file: Exec format error

pi@raspberrypi:~/Downloads $

Last edited by KMCarpenter; 06-23-2017 at 09:36 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CUPS problem - connecting to local printer as well as CUPS server bobm2011 Linux - Newbie 4 01-11-2010 08:28 AM
Problem running CUPS with CUPS 1.4b2 beta hikerguy Linux - Software 3 01-18-2009 02:57 AM
Printing Problem (cups / cups-lpd) daleman Linux - Software 3 04-08-2005 09:01 AM
cups problem daniela Linux - Newbie 2 10-25-2004 02:21 PM
Problem with CUPS tnewby Linux - Newbie 3 06-02-2003 04:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration