Skip to content

Instantly share code, notes, and snippets.

@Mahedi-61
Last active March 9, 2024 14:47
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Mahedi-61/db8b222237149f870bfba84d11f25556 to your computer and use it in GitHub Desktop.
Save Mahedi-61/db8b222237149f870bfba84d11f25556 to your computer and use it in GitHub Desktop.
canon_LBP3300_printer_driver_installation_on_ubuntu_18.04
## This gist contains step by step instructions of installing canon LBP3300 printer driver on ubuntu 18.04 machine
## After a couple of months painful trying, i finally got it successfully installed on my 18.04 ubuntu machine.
## Here is the requirement
# 1) For 64 bit linux version install necessary the libraries
# 2) install the official CAPT drivers
# 3) register the printer with lpadmin
# 4) register the printer with the ccpd daemon
### step-1
sudo apt-get install libglade2 libpopt0:i386 libxml2:i386 libjpeg62:i386 libstdc++6:i386
# for libglade2. manually download and install it form here https://packages.debian.org/wheezy/libglade2-0
wget http://ftp.cn.debian.org/debian/pool/main/libg/libglade2/libglade2-0_2.6.4-1_amd64.deb
sudo dpkg -i libglade2-0_2.6.4-1_amd64.deb
### step-2
# download official CAPT driver
# for south asian region download it from here http://support-in.canon-asia.com/contents/ASIA/EN/0100459601.html
# first install the common module for CUPS driver
sudo dpkg -i cndrvcups-common_3.21-1_amd64.deb
# then install Install the CAPT printer driver module.
sudo dpkg -i cndrvcups-capt_2.71-1_amd64.deb
# for broken packages
sudo apt install -f
### step-3
# restart cups
sudo /etc/init.d/cups restart
# now register the LBP3300 printer (PPD) with the print spooler.
# sudo /usr/sbin/lpadmin -p LBP3300 -m CNCUPSLBP3300CAPTK.ppd -v ccp://localhost:59687 –E
sudo /usr/sbin/lpadmin -p LBP3300 -P /usr/share/cups/model/CNCUPSLBP3300CAPTK.ppd -v ccp://localhost:59687 -E
### step-4
# register the printer in the ccpd daemon setup file for first printer (lp0)
sudo /usr/sbin/ccpdadmin -p LBP3300 -o /dev/usb/lp0
# finaly restart the ccpd daemon
sudo /etc/init.d/ccpd restart
# for successful installation check
# ask capt for a status report on the LBP3300
captstatusui -P LBP3300
# try to print a test page. and
# if it print then !!!! BOOM !!!!
# start ccpd daemon by
sudo /etc/init.d/ccpd start
@LAfricain
Copy link

LAfricain commented Oct 17, 2018

Hello,
I have similar problem with a lbp6000. I followed almost the same way but it doesn't print. I have two question, why did you install libglade2 (you did a typo error in the dpkg command you wrot ibglade2) from the debian repository, the Ubuntu one is not good?
And the second question, I did :
sudo /usr/sbin/lpadmin -p LBP6000 -m CNCUPSLBP6018CAPTK.ppd -v ccp://localhost:59687 –E
But you sudo /usr/sbin/lpadmin -p LBP6000 -P /usr/share/cups/model/CNCUPSLBP6018CAPTK.ppd -v ccp://localhost:59687 -E, maybe it is here the error?

@Mahedi-61
Copy link
Author

Mahedi-61 commented Oct 22, 2018

Thanks for your correction. Sorry for late reply.

I don't know the actual reason, i first try
sudo apt-get install libglade2-0
and got "libglade2-0 is already the newest version."
So, I decided to manually download and install it from debian repository.

Yea, for registering PPD, i tried your first command.
But, It didn't work. So, I tried second one.

@fountain-spec
Copy link

First of all thank you so much sir for the instructions, it seriously helped me a lot. I've installed the common module for CUPS driver and the CAPT printer driver module and after that the Canon LBP 3300 printer get added to the ubuntu 18.04. But while I'm running "captstatusui -P LBP3300", a pop-up window opened where it shows the error message as "printer error" and "Check the DevicePath of /etc/ccpd.conf" and after closing it, I get an error message as follows:

**(captstatusui:8610): GLib-CRITICAL : 13:05:40.772: Source ID 36 was not found when attempting to remove it

Sir, what to do next to overcome this error? Please help me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment