Canon lbp5000 unable to print from Mint 19 Cinnamon

Forum rules
Before you post please read this
Post Reply
Jodel-D18
Level 1
Level 1
Posts: 6
Joined: Sat Oct 06, 2018 11:16 am

Canon lbp5000 unable to print from Mint 19 Cinnamon

Post by Jodel-D18 » Sat Oct 06, 2018 12:23 pm

Apologies for the length if this post, but I’m trying to provide as much relevant information as possible. I am very much a Linux newbie and would appreciate some assistance in trying to connect my Canon LBP5000 printer.

I have installed Linux Mint 19 Cinnamon 64 bit on my PC alongside Windows7 (64 Bit). There is no issue with the printer running under W7. My PC is a home built unit as follows:

CPU~Quad core Intel Core i7 920 (-MT-MCP-) speed/max~1603/2668 MHz Kernel~4.15.0-36-generic x86_64 Up~51 min Mem~2165.1/16030.4MB HDD~5501.1GB(0.4% used) Procs~234 Client~Shell inxi~2.3.56

I’ve tried to follow some of the guidance already published by other contributors, albeit without fully understanding what is going on, but I seem to be running into a bit of a brick wall. The printer is in my list of printers (I only have one) and appears to accept print jobs, but nothing is output. The list of printer ‘jobs’ keeps increasing, but there is no hardcopy produced.

I downloaded the (Debian) Linux drivers from the Canon website and have tried to install these.

dpkg -l | grep cndrvcups

i cndrvcups-capt 2.71-1 amd64 Canon CAPT Printer Driver for Linux
ii cndrvcups-common 3.21-1 amd64 Canon Printer Driver Common Modules Ver.3.21

I have the printer connected via a USB cable:

/usr/sbin/lpinfo -v

network lpd
network https
network beh
direct ccp
direct cnusb:/dev/usb/lp1
network http
network ipp
network socket
direct hp
file cups-brf:/
network ipps
direct usb://Canon/LBP5000?serial=00000183T8eB
direct hpfax

I then installed the printer with:
sudo /usr/sbin/lpadmin -p LBP5000 -m CNCUPSLBP5000CAPTK.ppd -v ccp://localhost:59787 -E

Followed by:
sudo /usr/sbin/ccpdadmin -p LBP5000 -o /dev/usb/lp1
CUPS_ConfigPath = /etc/cups/
LOG Path = None
UI Port = 59787

Entry Num : Spooler : Backend : FIFO path : Device Path : Status
----------------------------------------------------------------------------
[0] : LBP5000 : ccp : //localhost:59787 : /dev/usb/lp1 : Modified

sudo service ccpd start
sudo service ccpd status
ccpd.service
Loaded: loaded (/etc/init.d/ccpd; generated)
Active: active (running) since Sat 2018-10-06 16:48:44 BST; 25s ago
Docs: man:systemd-sysv-generator(8)
Process: 3087 ExecStart=/etc/init.d/ccpd start (code=exited, status=0/SUCCESS)
Tasks: 2 (limit: 4915)
CGroup: /system.slice/ccpd.service
├─3094 /usr/sbin/ccpd
└─3095 /usr/sbin/ccpd

Oct 06 16:48:44 midi-tower systemd[1]: Starting ccpd.service...
Oct 06 16:48:44 midi-tower ccpd[3087]: Starting /usr/sbin/ccpd: .
Oct 06 16:48:44 midi-tower systemd[1]: Started ccpd.service.

On trying a test print at this point, nothing is printed, but the status messages show that the job has been sent and printed.

sudo ccpdadmin
Usage:
ccpdadmin [-p Printer-name -o Printer-dev-path]
ccpdadmin [-x Remove-Printer-name]
CUPS_ConfigPath = /etc/cups/
LOG Path = None
UI Port = 59787
Entry Num : Spooler : Backend : FIFO path : Device Path : Status
----------------------------------------------------------------------------
[0] : LBP5000 : ccp : //localhost:59787 : /dev/usb/lp1 :

If anyone could shed some light on this I'd be very grateful as I'd like to be able to print documents without reverting to W7 to enable that. Thanks.

User avatar
administrollaattori
Level 14
Level 14
Posts: 5487
Joined: Tue Sep 03, 2013 4:51 am
Location: Finland
Contact:

Re: Canon lbp5000 unable to print from Mint 19 Cinnamon

Post by administrollaattori » Mon Oct 08, 2018 3:12 pm

Check printer status and other things.
https://www.computerhope.com/unix/ulpstat.htm

Code: Select all

lpstat -t
lpstat -p
lpstat -a
PS. Did you run sudo update-rc.d ccpd defaults after installing the printer?

User avatar
administrollaattori
Level 14
Level 14
Posts: 5487
Joined: Tue Sep 03, 2013 4:51 am
Location: Finland
Contact:

Re: Canon lbp5000 unable to print from Mint 19 Cinnamon

Post by administrollaattori » Wed Oct 10, 2018 12:31 am

Also libc6:i386 and libpopt0:i386 need to be installed.

Code: Select all

apt install libc6:i386 libpopt0:i386
https://help.ubuntu.com/community/CanonCaptDrv190
Canon CAPT Printer Driver for 64-bit architecture include the proprietary closed-source 32-bit executable captfilter (called by pstocapt CUPS filter, used to convert PostScript data to CAPT data stream) which depends on 32-bit libraries libc6 and libpopt0. The libraries are not installed as dependencies. You can use the following commands to check whether the captfilter is working:

$ ldd /usr/bin/captfilter
Messages like "not a dynamic executable" or "libpopt.so.0 => not found" mean that your system affected by the problem. For a workaround install the following packages:

# apt-get install libc6:i386 libpopt0:i386

Jodel-D18
Level 1
Level 1
Posts: 6
Joined: Sat Oct 06, 2018 11:16 am

Re: Canon lbp5000 unable to print from Mint 19 Cinnamon

Post by Jodel-D18 » Wed Oct 10, 2018 2:36 pm

Thanks for your response - I've been wading through posts on Canon LBP printers and there are lots of issues when attempting to get them working in Linux!

When I plugged the printer into the USB port again, I thought Linux may have recognised it as I was prompted to go through the setup dialogue again - unfortunately, this second installation of the printer didn't work either.

I checked the other suggestions you gave me without success. I didn't know about the <sudo update-rc.d ccpd defaults> and have tried that with no joy unfortunately.

In your reply you made reference to https://help.ubuntu.com/community/CanonCaptDrv190. This has a lot of helpful information and I noted that in one post there is a statement about the use of ports:
"The manual says ccp://localhost:59687 but Ubuntu by default is using 59787. This will give you a headache if you do not change it. (The file /etc/ccpd.conf defines UI_Port 59787 and PDATA_Port 59687. So, both these ports need to be open in the firewall setting.)"

I've tried changing the port to no avail

Code: Select all

sudo /usr/sbin/lpadmin -p LBP5000 -P /usr/share/cups/model/CNCUPSLBP6018CAPTK.ppd -v ccp://localhost:59687
although

Code: Select all

sudo ccpdadmin
Now shows:

CUPS_ConfigPath = /etc/cups/
LOG Path = None
UI Port = 59787

Entry Num : Spooler : Backend : FIFO path : Device Path : Status
----------------------------------------------------------------------------
[0] : LBP5000 : ccp : //localhost:59687 : /dev/usb/lp1 :

Forgive my ignorance, but is UI Port different to FIFO path as they now show different numbers: 59787 and 59687?

Code: Select all

captstatusui -P LBP5000 
Produces a statement: "Check the DevicePath of /etc/ccpd.conf" in the printer status message box.

Code: Select all

sudo lpstat -a
LBP5000 accepting requests since Wed 10 Oct 2018 17:36:10 BST
LBP5000-2 accepting requests since Wed 10 Oct 2018 18:12:47 BST

Code: Select all

sudo lpstat -t
scheduler is running
system default destination: LBP5000-2
device for LBP5000: ccp://localhost:59687
device for LBP5000-2: ccp://localhost:59787
LBP5000 accepting requests since Wed 10 Oct 2018 17:36:10 BST
LBP5000-2 accepting requests since Wed 10 Oct 2018 18:12:47 BST
printer LBP5000 is idle. enabled since Wed 10 Oct 2018 17:36:10 BST
printer LBP5000-2 is idle. enabled since Wed 10 Oct 2018 18:12:47 BST
ccp send_data error, exit

Code: Select all

sudo lpstat -p
printer LBP5000 is idle. enabled since Wed 10 Oct 2018 17:36:10 BST
printer LBP5000-2 is idle. enabled since Wed 10 Oct 2018 18:12:47 BST
ccp send_data error, exit

I'll keep plugging away at this, but any suggestions or observations are welcome :)

User avatar
administrollaattori
Level 14
Level 14
Posts: 5487
Joined: Tue Sep 03, 2013 4:51 am
Location: Finland
Contact:

Re: Canon lbp5000 unable to print from Mint 19 Cinnamon

Post by administrollaattori » Thu Oct 11, 2018 11:50 am

Jodel-D18 wrote:
Wed Oct 10, 2018 2:36 pm
printer LBP5000-2 is idle. enabled since Wed 10 Oct 2018 18:12:47 BST
ccp send_data error, exit

I'll keep plugging away at this, but any suggestions or observations are welcome :)
It is funny, but printer should work even it gives that error.
https://puolanka.info/goto/canon-lbp-81 ... ntu-14-04/

Jodel-D18
Level 1
Level 1
Posts: 6
Joined: Sat Oct 06, 2018 11:16 am

Re: Canon lbp5000 unable to print from Mint 19 Cinnamon

Post by Jodel-D18 » Sat Oct 13, 2018 9:06 am

Well, I've been persevering with this printer during this week to no avail. From the information I can glean from several Linux sites, these Canon laser printers can be amongst the most difficult of all to set up. My experience certainly bears this out! It is quite frustrating as I'm sure there is actually very little preventing the printer from working.

I also tried installing it on a laptop running Mint 18.3 - no success there either unfortunately. That said, I did at least get a message in the printer status window warning me about the low level of one of the toner cartridges, so there was some communication between the laptop and printer.

From memory, I think it actually took a little while to install the Canon CAPT drivers on Windows too, so these Canon's do seem to cause a few issues. The printer itself produces quite decent output and I'm loathe to dispose of it just because I can't configure it for Linux. Looks like I'll be staying with a dual-boot W7 / Linux system for a while yet.

Post Reply

Return to “Printers & Scanners”