![通过 USB 连接佳能 Selphy CP1200 - Ubuntu 19.04](https://linux22.com/image/916680/%E9%80%9A%E8%BF%87%20USB%20%E8%BF%9E%E6%8E%A5%E4%BD%B3%E8%83%BD%20Selphy%20CP1200%20-%20Ubuntu%2019.04.png)
我正在尝试通过 USB 连接 Canon Selphy CP1200,但就是无法正常工作。运行时我可以看到打印机lsusb
...Bus 001 Device 016: ID 04a9:32b1 Canon, Inc. SELPHY CP1200
但我没有将其安装为打印机的选项。我尝试使用 gnome 打印机管理器和 Turbo Print。两者都有打印机驱动程序,但它们似乎无法检测到打印机是否可用。有没有办法将我的系统专门指向该 USB 设备?我安装了 gutenprint 5.3.1 和 CUPS 2.2.10
我跑了起来journalctl --follow
,然后插上打印机。这就是我看到的
Oct 14 18:54:10 ryan-xps kernel: usb 1-2: new high-speed USB device number 45 using xhci_hcd
Oct 14 18:54:10 ryan-xps kernel: usb 1-2: New USB device found, idVendor=04a9, idProduct=32b1, bcdDevice= 0.01
Oct 14 18:54:10 ryan-xps kernel: usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Oct 14 18:54:10 ryan-xps kernel: usb 1-2: Product: SELPHY CP1200
Oct 14 18:54:10 ryan-xps kernel: usb 1-2: Manufacturer: Canon
Oct 14 18:54:10 ryan-xps kernel: usblp 1-2:1.0: usblp2: USB Bidirectional printer dev 45 if 0 alt 0 proto 2 vid 0x04A9 pid 0x32B1
Oct 14 18:54:10 ryan-xps mtp-probe[7073]: checking bus 1, device 45: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-2"
Oct 14 18:54:10 ryan-xps mtp-probe[7073]: bus: 1, device: 45 was not an MTP device
Oct 14 18:54:10 ryan-xps systemd[1]: Starting Configure Plugged-In Printer...
Oct 14 18:54:10 ryan-xps mtp-probe[7092]: checking bus 1, device 45: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-2"
Oct 14 18:54:10 ryan-xps mtp-probe[7092]: bus: 1, device: 45 was not an MTP device
Oct 14 18:54:10 ryan-xps udev-configure-printer[7091]: add usb-001-045
Oct 14 18:54:10 ryan-xps udev-configure-printer[7091]: device devpath is /devices/pci0000:00/0000:00:14.0/usb1/1-2
Oct 14 18:54:10 ryan-xps udev-configure-printer[7091]: MFG:Canon MDL:SELPHY CP1200 SERN:- serial:Z816080312570414
Oct 14 18:54:10 ryan-xps systemd-resolved[1112]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.
Oct 14 18:54:10 ryan-xps systemd-resolved[1112]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.
Oct 14 18:54:10 ryan-xps systemd-resolved[1112]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.
Oct 14 18:54:10 ryan-xps systemd-resolved[1112]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.
Oct 14 18:54:15 ryan-xps kernel: usblp2: removed
Oct 14 18:54:15 ryan-xps systemd-resolved[1112]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.
Oct 14 18:54:15 ryan-xps systemd-resolved[1112]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.
Oct 14 18:54:17 ryan-xps udev-configure-printer[7091]: URI of detected printer: ipp://localhost:0/ipp/print, normalized: ipp localhost 0 ipp print
Oct 14 18:54:17 ryan-xps udev-configure-printer[7091]: URI of print queue: cnijnet:/84-BA-3B-09-E8-FB, normalized: cnijnet 84 ba 3b 09 e8 fb
Oct 14 18:54:17 ryan-xps udev-configure-printer[7091]: Launched ippusbxd, command line "ippusbxd -l -v 04a9 -m 32b1 -s Z816080312570414 -P 60000", port 60000, process 7144
Oct 14 18:54:17 ryan-xps systemd[1]: Started Configure Plugged-In Printer.
答案1
我终于搞清楚了问题所在。似乎是 CUPS 和 lpusb 之间发生了冲突。解决办法是运行以下命令禁用 lpusbsudo rmmod usblp
。我不确定这是否有负面影响,但似乎解决了我的问题。一旦我这样做,我就可以转到http://本地主机:631并添加打印机。这里有关于此问题的一些详细信息https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=545288