Canon printer problem on Ubuntu 18.04
Solution 1
Using the following method will definitely help Ubuntu 18.04 64 bit users to install and use their Canon LBP2900 printer, which otherwise can be a harrowing experience for the less experienced.
It will NOT help to use the official Linux (32 bit or 64 bit) LBP2900 driver from Canon at https://support-in.canon-asia.com/contents/IN/EN/0100459601.html. So no use to waste time over it. The following instructions will help instead:
-
Run the following in terminal:
$ sudo apt-get install build-essential git autoconf libtool libcups2-dev libcupsimage2-dev $ git clone https://github.com/agalakhov/captdriver.git $ cd captdriver $ autoreconf -i $ ./configure $ make
On some systems, the destination below might be
/usr/libexec/cups/filter
:$ sudo cp src/rastertocapt /usr/lib/cups/filter/ $ sudo cp Canon-LBP-2900.ppd /usr/share/ppd/custom/
Now open Settings --> Printers and Add Printer --> USB printer, selecting the driver Canon LBP-2900 CAPT GDI printer, 0.1.0 from the list, and complete the remaining steps forward.
Then click Apply and OK. Print a test page and your Canon LBP2900 printer is ready to print on 64 bit Ubuntu 18.04!
Note: Sometimes, printing gets stuck with the message “Rendering completed”. In that case, it helped to just turn the printer off and on again.
Please acknowledge and report if found useful or not useful.
Solution 2
I finally figured out how to install and run Canon LBP 2900B printer on Ubuntu 18.04 (64 bit) successfully. Follow the steps below shown one by one:
1) Download the drivers: Many people will suggest following link to download appropriate drives.
https://support-in.canon-asia.com/contents/IN/EN/0100459601.html
Don't do that, instead download them from this link.
https://www.canondriver.net/canon-lbp2900b-driver-linux/
2) Run following commands in the terminal one by one:
sudo apt-get install libglade2-0
sudo apt-get install libxml2:i386
sudo apt-get install libstdc++6:i386
sudo apt-get install libpopt0:i386
3) Install the drivers downloaded from above site. Unzip it, go to 64 bit folder, go to Debian folder and install them by double clicking. First install second one. While installing second package, you may get error that dependencies are not met. In that case click below given link and download libpng12-0 and install it.
https://packages.ubuntu.com/xenial/amd64/libpng12-0/download
4) Restart the cups by using the command in terminal -
service cups stop
service cups start
5) Use below given command in the terminal:
sudo /usr/sbin/lpadmin -p LBP2900 -m CNCUPSLBP2900CAPTK.ppd -v ccp://localhost:59787 -E
6) Registration of the printer:
sudo /usr/sbin/ccpdadmin -p LBP2900 -o /dev/usb/lp0
(Before adding this command in terminal, check /dev/usb/.......path and see if you have lp0 file is there or not. I had lp1 instead. Add it accordingly. If there is no file, probably you haven't started the printer, when you start it that file comes there.)
7) Start ccpd daemon:
sudo /etc/init.d/ccpd start
8) Take the test print. Done!
9) If after restarting the OS, it doesn't work, give following command again in the terminal.
sudo /etc/init.d/ccpd start
Credit goes to: https://gbtechnologie.blogspot.com/2018/11/how-ti-install-canon-2900-printer-on.html
Related videos on Youtube
Manoj
Updated on September 18, 2022Comments
-
Manoj almost 2 years
I have Canon printer, model - LBP2900B. I have installed its printer drivers too from below shown link.
http://support-in.canon-asia.com/contents/IN/EN/0100459601.html
When clicked on print button, message is shown as "printing completed" but no page is printed ever.
lpinfo -v gives following -
network beh network lpd file cups-brf:/ network http network https network ipps network ipp serial serial:/dev/ttyS0?baud=115200 serial serial:/dev/ttyS1?baud=115200 direct hp network socket direct ccp direct parallel:/dev/lp0 direct hpfax
lsusb shows following -
Bus 001 Device 002: ID 04a9:1909 Canon, Inc. CanoScan LiDE 110 Bus 001 Device 004: ID 04a9:2676 Canon, Inc. CAPT Device Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 002: ID 1bcf:0007 Sunplus Innovation Technology Inc. Optical Mouse Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
-
N0rbert about 6 years
-
walttheboss about 6 yearsBy any chance have you tried to install directly from ubuntu without downloading any drivers. I find that the native drivers can work better. On Kubuntu that usually works better.
-
Manoj about 6 years@walttheboss: Yes, I did that too. Didn't work.
-
-
Thomas Ward about 6 yearsComments are not for extended discussion; this conversation has been moved to chat.
-
Manoj over 5 yearsHi! Nice to see somebody answered this question after so long. I was away from Ubuntu from May but now installed it again just to check whether your asnwer works or not.
-
Manoj over 5 yearsWhen I entered "cd captdriver" I get this "bash: cd: captdriver: No such file or directory".
-
Manoj over 5 years$ sudo cp src/rastertocapt /usr/lib/cups/filter/.............when I enter this in terminal, I get.........cp: cannot stat 'src/rastertocapt': No such file or directory.........even when I change "lib" to "libexec", I get the same error.
-
Mantas Baltix over 5 yearsThank you, these drivers work fine, just need to change model to "LBP-2900 CAPT GDI" in printer settings manually.
-
Manoj over 5 yearsI searched everywhere but could't find cnijfilter for Canon LBP 2900B printer. I think it doesn't even exist. Please post it here if you find one. Also your suggestion of installing printer with default Ubuntu process may work with other Canon printers but doesn't seem to be working with this specific model.
-
Raziman T V over 2 yearsThank you. This worked for me on Ubuntu 21.10 while the official driver did not.