LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-18-2017, 03:05 AM   #1
dx486
LQ Newbie
 
Registered: Aug 2015
Distribution: debian
Posts: 17

Rep: Reputation: Disabled
Installation problem of Canon LBP6030W printer on debian


I want to use a Canon LBP6030W printer using latest debian stable (v9). This printer is connected wirelessly to my local area network.

I have installed cups.

I have downloaded driver file from canon website. Extracted the archive. Tried to run "install.sh" script, but it returned with the error "./install.sh: 355: ./install.sh: Syntax error: "(" unexpected (expecting "done")"

Then I manually installed driver .deb files in the "linux-UFRIILT-drv-v140_uken/linux-UFRIILT-drv-v140-uken/64-bit_Driver/Debian" path using the commands below:

Code:
sudo dpkg -i cndrvcups-common_3.30-1_amd64.deb
sudo dpkg -i cndrvcups-ufr2lt-us_1.20-1_amd64
I have found & added the printer using Settings/Printers window. However I cannot print anything. It does not give any response.

What else should I do to use this printer?
 
Old 10-18-2017, 03:46 AM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,800

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Did you try printing a test page?

What do the following report?
Code:
/usr/sbin/lpinfo -v
Code:
lpstat -t
 
Old 10-18-2017, 04:58 AM   #3
dx486
LQ Newbie
 
Registered: Aug 2015
Distribution: debian
Posts: 17

Original Poster
Rep: Reputation: Disabled
Printing test page is not possible. It gives no response.

Code:
$ sudo /usr/sbin/lpinfo -v
network ipps
network lpd
network beh
network https
network http
network ipp14
network socket
network ipp
network dnssd://Canon%20LBP6030w%2F6018w._pdl-datastream._tcp.local/
network dnssd://Canon%20MF6100%20Series._ipp._tcp.local/?uuid=6d4ff0ce-6b11-11d8-8020-180cacd9d140
network dnssd://Canon%20iR%20C1335._ipp._tcp.local/?uuid=6d4ff0ce-6b11-11d8-8020-f48139e8c5d0
network dnssd://Samsung%20M2070%20Series%20(SEC30CDA72C8F57)._printer._tcp.local/
network dnssd://Canon%20iR%20C1335._pdl-datastream._tcp.local/
network socket://192.168.2.139
network socket://192.168.2.141
network socket://192.168.2.147
network socket://192.168.2.174
network socket://192.168.2.250
network socket://192.168.2.74
network socket://192.168.2.99
Code:
$ lpstat -t
scheduler is running
no system default destination
device for LBP6030w-6018w: dnssd://Canon%20LBP6030w%2F6018w._printer._tcp.local/
LBP6030w-6018w accepting requests since Tue 17 Oct 2017 06:24:25 PM +03
printer LBP6030w-6018w is idle.  enabled since Tue 17 Oct 2017 06:24:25 PM +03
 
Old 10-18-2017, 06:48 AM   #4
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
Make sure the user is in the lp group. And lpadmin to setup the printer in cups.

URL:
localhost:631

You can manage jobs on that interface / web page. With some information about WHY it did not print. You might also check the printer, ink to low, out of paper, and other quirks can help it fail with little to no feedback to the user.
 
Old 10-18-2017, 07:15 AM   #5
dx486
LQ Newbie
 
Registered: Aug 2015
Distribution: debian
Posts: 17

Original Poster
Rep: Reputation: Disabled
I have added my user account to lp group with the command:

Code:
# usermod -a -G lp myaccountname
Printer has ink & paper, connected to power... It prints on Windows (dual-boot).

When I click print to "Print Test Page" button nothing happens.

When I try to print a page via Libre Writer, I get "Could not start printer. Please check your printer configuration." error.

I printed a "User Data List" page using the button on the printer. It says that its IP address is 192.168.2.174. I used a ping command and got reply:

Code:
$ ping 192.168.2.174
PING 192.168.2.174 (192.168.2.174): 56 data bytes
64 bytes from 192.168.2.174: icmp_seq=0 ttl=64 time=31.901 ms
64 bytes from 192.168.2.174: icmp_seq=1 ttl=64 time=4.445 ms
64 bytes from 192.168.2.174: icmp_seq=2 ttl=64 time=2.855 ms
64 bytes from 192.168.2.174: icmp_seq=3 ttl=64 time=2.163 ms
64 bytes from 192.168.2.174: icmp_seq=4 ttl=64 time=7.727 ms
^C--- 192.168.2.174 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max/stddev = 2.163/9.818/31.901/11.207 ms
In the URL "http://localhost:631/printers/LBP6030w-6018w", it is listed as:

Code:
LBP6030w-6018w (Idle, Accepting Jobs, Not Shared)
I don't have any idea what to do next to make this printer work... :/
 
Old 10-18-2017, 08:02 AM   #6
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
You could try installing the cups-bsd part and using the ancient lp / lpr print methods.
 
Old 10-18-2017, 09:18 AM   #7
dx486
LQ Newbie
 
Registered: Aug 2015
Distribution: debian
Posts: 17

Original Poster
Rep: Reputation: Disabled
Code:
# apt-get install cups-bsd
# cupsctl --remote-admin
$ lp

lp: Error - no default destination available.

$ lpoptions -d LBP6030w-6018w
copies=1 device-uri=dnssd://Canon%20LBP6030w%2F6018w._printer._tcp.local/ finishings=3 job-cancel-after=10800 job-hold-until=no-hold job-priority=50 job-sheets=none,none marker-change-time=0 number-up=1 printer-commands=none printer-info='Canon LBP6030w/6018w' printer-is-accepting-jobs=true printer-is-shared=true printer-location printer-make-and-model='Generic Text-Only Printer' printer-state=3 printer-state-change-time=1508253865 printer-state-reasons=none printer-type=12292 printer-uri-supported=ipp://localhost/printers/LBP6030w-6018w
Now "lpr test.txt" command gives no error and I get two notifications on my Gnome desktop first saying "printing", second saying "printing completed", but actually nothing happens in the printer.
 
Old 10-18-2017, 06:11 PM   #8
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,800

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Have you examined the CUPS error log? (Specifically check /var/log/cups/error_log). If you want to share that output, consider uploading to https://pastebin.com/ (or similar) and post the link to it here.
 
Old 10-18-2017, 11:17 PM   #9
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,800

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
FWIW, I recalled an old thread concerning a Canon printer (using a UFRII driver), and same symptoms as you're reporting. Some users have found that the 64-bit Canon drivers still depend on 32-bit libraries. The OP did find the following message in the error log following a print job (no actual printing occurring though)...
Code:
D [10/Apr/2016:15:53:17 +0200] [Job 32] Can\'t exec driver program
Check this post...
https://forums.linuxmint.com/viewtop...131342#p942312

Quote:
If you have 32bit system, printer should work now. With 64 bit i was not so lucky... here is how i got it to work
you have to add 32bit architecture support:

sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libstdc++6:i386 libxml2:i386 zlib1g:i386 libpopt0:i386

i guess they have some dependencies that require these packages, but interestingly neither package does not demand these to be installed.

Now it should work. GL
I'm not sure how this might all apply with Debian 9, and some further investigation may be needed.

Last edited by ferrari; 10-18-2017 at 11:21 PM.
 
Old 10-19-2017, 04:48 AM   #10
dx486
LQ Newbie
 
Registered: Aug 2015
Distribution: debian
Posts: 17

Original Poster
Rep: Reputation: Disabled
There was the following error in the /var/log/cups/error_log:

Code:
E [19/Oct/2017:12:07:30 +0300] [Client 8] Returning IPP client-error-document-format-not-supported for Send-Document (ipp://localhost:631/printers/LBP6030w-6018w) from localhost
To see if it will work, I have connected this printer directly using USB cable, instead of wireless connection.

But before that, I did the following, as you suggested:
  1. Removed the installed drivers
  2. $ sudo dpkg --add-architecture i386
  3. $ sudo apt-get update
  4. $ sudo apt-get install libstdc++6:i386 libxml2:i386 zlib1g:i386 libpopt0:i386
  5. $ sudo dpkg -i cndrvcups-common_3.80-1_amd64.deb
  6. $ sudo dpkg -i cndrvcups-ufr2lt-uk_1.40-1_amd64.deb

Now finally it works and prints normally.

I see two items of same printer in the Settings/Printers window now. The difference between them is, the model of working one is "Canon LBP6030/6040/6018L", but the model of not-working one is "Generic Text-Only Printer". This can be a clue for other users who may face similar problem. But definitely one should check cups error logs first.

I am frustrated enough so I will not spend more time to understand why it does not work wirelessly, at least in the near future. I'll just use it via USB cable. I consider this problem as solved.

Thank you very much for your help!
 
Old 10-19-2017, 01:11 PM   #11
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,800

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Good to read that you now have it printing via USB connectivity at least.

Quote:
I see two items of same printer in the Settings/Printers window now. The difference between them is, the model of working one is "Canon LBP6030/6040/6018L", but the model of not-working one is "Generic Text-Only Printer".
A mistake while configuring? That generic config could be safely removed.

Quote:
I am frustrated enough so I will not spend more time to understand why it does not work wirelessly, at least in the near future. I'll just use it via USB cable. I consider this problem as solved.
Fair enough. Give it some time, and maybe you'll want to investigate further some time. The printer configuration is located in /etc/cups/printers.conf. AFAIU, these printers support the lpd and socket network communication protocols, so something like the following printer URI should work for network printing...

Code:
socket://192.168.2.174
 
  


Reply



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
network Canon iR2520 UFRII LT printer in Debian kde idle: waiting for printer to finish mshlinux Debian 3 04-26-2017 08:52 PM
Problem with printer installation (Canon LBP-800) HajdukJanko Linux - Hardware 2 05-15-2013 04:10 PM
LXer: How To Install A (Canon) Printer On Debian And Debian-Like Systems LXer Syndicated Linux News 0 05-20-2011 11:01 AM
Canon printer driver installation twum_au Linux - Newbie 9 09-20-2010 05:37 PM
Canon networked printer installation problem bapa Linux - Hardware 0 02-15-2007 04:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:04 AM.

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
Open Source Consulting | Domain Registration