我有佳能 LBP-3300,并且安装后cndrvcups-capt_2.70-1_amd64.deb
没有cndrvcups-common_3.20-1_amd64.deb
任何问题。
LBP3300 在打印机上显示:
但是当我想打印作业时,处理过程却挂起:
我去了,http://localhost:631/printers/
它显示Processing - "Sending data to printer."
tail -f /var/log/syslog
打印机开启且 USB 连接时的结果:
Jan 27 13:26:55 ice-system udev-configure-printer[6276]: remove /devices/pci0000:00/0000:00:1a.7/usb1/1-1
Jan 27 13:26:55 ice-system udev-configure-printer[6276]: URI of detected printer: usb://Canon/LBP3300?serial=00001184PI9N, normalized: canon lbp3300 serial 00001184pi9n
Jan 27 13:26:55 ice-system udev-configure-printer[6276]: URI of print queue: usb://Canon/LBP3300?serial=00001184PI9N, normalized: canon lbp3300 serial 00001184pi9n
Jan 27 13:26:55 ice-system udev-configure-printer[6276]: Queue ipp://localhost/printers/LBP3300 has matching device URI
Jan 27 13:26:55 ice-system udev-configure-printer[6276]: Disabled printer ipp://localhost/printers/LBP3300 as the corresponding device was unplugged or turned off
Jan 27 13:26:55 ice-system systemd[1]: printer.target: Unit not needed anymore. Stopping.
Jan 27 13:26:55 ice-system systemd[1]: Stopped target Printer.
Jan 27 13:26:55 ice-system kernel: [ 2450.174875] [UFW BLOCK] IN=enp5s0 OUT= MAC= SRC=fe80:0000:0000:0000:c327:77e1:783a:4ca2 DST=ff02:0000:0000:0000:0000:0000:0000:0001 LEN=64 TC=0 HOPLIMIT=1 FLOWLBL=958574 PROTO=UDP SPT=8612 DPT=8612 LEN=24
Jan 27 13:26:55 ice-system kernel: [ 2450.174898] [UFW BLOCK] IN=enp5s0 OUT= MAC= SRC=fe80:0000:0000:0000:c327:77e1:783a:4ca2 DST=ff02:0000:0000:0000:0000:0000:0000:0001 LEN=64 TC=0 HOPLIMIT=1 FLOWLBL=39070 PROTO=UDP SPT=8612 DPT=8610 LEN=24
Jan 27 13:26:55 ice-system kernel: [ 2450.185099] [UFW BLOCK] IN=enp5s0 OUT= MAC= SRC=fe80:0000:0000:0000:c327:77e1:783a:4ca2 DST=ff02:0000:0000:0000:0000:0000:0000:0001 LEN=64 TC=0 HOPLIMIT=1 FLOWLBL=958574 PROTO=UDP SPT=8612 DPT=8612 LEN=24
Jan 27 13:27:26 ice-system kernel: [ 2481.527150] usb 1-1: new high-speed USB device number 5 using ehci-pci
Jan 27 13:27:26 ice-system kernel: [ 2481.681297] usb 1-1: New USB device found, idVendor=04a9, idProduct=267e
Jan 27 13:27:26 ice-system kernel: [ 2481.681300] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jan 27 13:27:26 ice-system kernel: [ 2481.681302] usb 1-1: Product: Canon CAPT USB Device
Jan 27 13:27:26 ice-system kernel: [ 2481.681304] usb 1-1: Manufacturer: Canon
Jan 27 13:27:26 ice-system kernel: [ 2481.681305] usb 1-1: SerialNumber: 00001184PI9N
Jan 27 13:27:26 ice-system kernel: [ 2481.682776] usblp 1-1:1.0: usblp1: USB Bidirectional printer dev 5 if 0 alt 0 proto 2 vid 0x04A9 pid 0x267E
Jan 27 13:27:26 ice-system mtp-probe: checking bus 1, device 5: "/sys/devices/pci0000:00/0000:00:1a.7/usb1/1-1"
Jan 27 13:27:26 ice-system mtp-probe: bus: 1, device: 5 was not an MTP device
Jan 27 13:27:26 ice-system systemd[1]: Starting Automatic USB/Bluetooth printer setup (-devices-pci0000:00-0000:00:1a.7-usb1-1\x2d1)...
Jan 27 13:27:26 ice-system systemd[1]: Reached target Printer.
Jan 27 13:27:26 ice-system udev-configure-printer[6301]: add /devices/pci0000:00/0000:00:1a.7/usb1/1-1
Jan 27 13:27:26 ice-system udev-configure-printer[6301]: device devpath is /devices/pci0000:00/0000:00:1a.7/usb1/1-1
Jan 27 13:27:26 ice-system udev-configure-printer[6301]: MFG:Canon MDL:LBP3300 SERN:- serial:00001184PI9N
Jan 27 13:27:26 ice-system kernel: [ 2481.772149] [UFW BLOCK] IN=enp5s0 OUT= MAC= SRC=fe80:0000:0000:0000:c327:77e1:783a:4ca2 DST=ff02:0000:0000:0000:0000:0000:0000:0001 LEN=64 TC=0 HOPLIMIT=1 FLOWLBL=958574 PROTO=UDP SPT=8612 DPT=8612 LEN=24
Jan 27 13:27:26 ice-system kernel: [ 2481.772167] [UFW BLOCK] IN=enp5s0 OUT= MAC= SRC=fe80:0000:0000:0000:c327:77e1:783a:4ca2 DST=ff02:0000:0000:0000:0000:0000:0000:0001 LEN=64 TC=0 HOPLIMIT=1 FLOWLBL=39070 PROTO=UDP SPT=8612 DPT=8610 LEN=24
Jan 27 13:27:31 ice-system kernel: [ 2486.746164] usblp1: removed
Jan 27 13:27:31 ice-system kernel: [ 2486.749422] usblp 1-1:1.0: usblp1: USB Bidirectional printer dev 5 if 0 alt 0 proto 2 vid 0x04A9 pid 0x267E
Jan 27 13:27:31 ice-system udev-configure-printer[6301]: URI contains USB serial number
Jan 27 13:27:31 ice-system udev-configure-printer[6301]: URI match: usb://Canon/LBP3300?serial=00001184PI9N
Jan 27 13:27:31 ice-system udev-configure-printer[6301]: URI of detected printer: usb://Canon/LBP3300?serial=00001184PI9N, normalized: canon lbp3300 serial 00001184pi9n
Jan 27 13:27:31 ice-system udev-configure-printer[6301]: URI of print queue: usb://Canon/LBP3300?serial=00001184PI9N, normalized: canon lbp3300 serial 00001184pi9n
Jan 27 13:27:31 ice-system udev-configure-printer[6301]: Queue ipp://localhost/printers/LBP3300 has matching device URI
Jan 27 13:27:31 ice-system udev-configure-printer[6301]: Re-enabled printer ipp://localhost/printers/LBP3300
Jan 27 13:27:31 ice-system systemd[1]: Started Automatic USB/Bluetooth printer setup (-devices-pci0000:00-0000:00:1a.7-usb1-1\x2d1).
Jan 27 13:27:31 ice-system kernel: [ 2486.909373] usblp1: removed
lpinfo -v
打印机开启且 USB 连接时的结果:
network http
network ipp14
network beh
network lpd
network socket
network ipp
network ipps
direct hp
direct ccp
network https
direct usb://Canon/LBP3300?serial=00001184PI9N
direct hpfax
lsusb
打印机开启且 USB 连接时的结果:
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 04a9:267e Canon, Inc.
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 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 009 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 010 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
我该如何解决这个问题?
答案1
佳能建议你在 Linux 中为 CAPT 驱动程序做四件事
1)安装驱动程序
2) 使用打印后台处理程序注册打印机(PPD)。
3) 在 ccpd 守护进程安装文件中注册打印机。
4)启动 ccpd 守护进程
1)从这里获取最新的驱动程序http://support-asia.canon-asia.com/contents/ASIA/EN/0100459601.html并点击下载并保存 linux-capt-drv-v271-uken.tar.gz
2)sudo /usr/sbin/lpadmin -p LBP3300 -m CNCUPSLBP3300CAPTK.ppd -v ccp://localhost:59787 –E
.....注意这是一行......
3)sudo /usr/sbin/ccpdadmin -p LBP3300 -o /dev/usb/lp0
假设只有一个 USB 打印机
4)sudo /etc/init.d/ccpd start
对我来说,这在两个单独的 16.04 安装中都有效