Ubuntu – How to install LBP Printer driver in Ubuntu 16.04LTS

16.04driversprinting

For Ubuntu 64 bits, printer Canon LBP2900:

git clone https://github.com/hugolpz/Canon_printer.git
cd ./Canon_printer
make -f ./download.mk
sudo make -f ./install.mk BITS=64 PRINTER=LBP2900
sudo make -f ./OS_restart.mk
sudo make -f ./install.mk BITS=64 PRINTER=LBP2900

I installed the canon lbp2900 driver in Ubuntu 16.04LTS as above instructions.
But when I run sudo make -f ./OS_restart.mk command, I get restart fail error message.
And I go last command is ok sudo make -f ./install.mk BITS=64 PRINTER=LBP2900.

And then I checked systems setting – printers.
I see lbp2900 driver and print testing page click. Printer status show "sending data to printer" but printer is not working and silent.

Best Answer

LBP2900 in 32-bit Ubuntu 16.04 (LTS)

http://www.canon-europe.com/support/consumer_products/products/printers/laser/i-sensys_lbp2900.aspx?type=drivers&language=EN&os=Linux%20(32-bit)

# wget -c http://gdlp01.c-wss.com/gds/6/0100004596/04/Linux_CAPT_PrinterDriver_V270_uk_EN.tar.gz
# tar xf Linux_CAPT_PrinterDriver_V270_uk_EN.tar.gz
# dpkg -i Linux_CAPT_PrinterDriver_V270_uk_EN/32-bit_Driver/Debian/cndrvcups-common_3.20-1_i386.deb Linux_CAPT_PrinterDriver_V270_uk_EN/32-bit_Driver/Debian/cndrvcups-capt_2.70-1_i386.deb

# lpadmin -p LBP2900 -m CNCUPSLBP2900CAPTK.ppd -v ccp://localhost:59687 -E

# ls -la /dev/usb
total 0
drwxr-xr-x  2 root root     60 Dec  2 22:38 .
drwxr-xr-x 20 root root   4400 Dec  2 22:38 ..
crw-rw----  1 root lp   180, 0 Dec  2 22:38 lp0

# ccpdadmin -p LBP2900 -o /dev/usb/lp0

# 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]    : LBP2900   : ccp       : //localhost:59687     : /dev/usb/lp0  : 

# lpr -P LBP2900 testpage-a4.ps
# lpq -a
Rank    Owner   Job     File(s)                         Total Size
active  root    64      testpage-a4.ps                  7168 bytes


# systemctl status -l cups |tail -99

Troubleshooting

lpq -a |tail -n+2 |awk '{print $3}' |while read job; do cancel $job; done
ccpdadmin -x LBP2900; lpadmin -x LBP2900; rm -rf -- /var/cache/cups/* /var/spool/cups/*; systemctl restart cups; sleep 2; systemctl restart ccpd
killall -9 captmon2
lsmod |grep usblp
ps -ef|grep -E "ccpd|captmon"

lpstat  -a
lpinfo -v

Notes

  1. Never try printing a pdf as a test since it may make you feel your setup (drivers, config) is not working, whilst lpr simply cannot directly print a pdf as a test.
  2. Restart a printer itself (physically), it may really help you.
Related Question