佳能 MG5370 打印机和扫描仪连接到与 Ubuntu 20.04 相同的网络。使用Settings
--> Printers
--> Add
,Ubuntu 20.04 能够检测到这台打印机。但是,当我尝试“测试打印”时,什么也没有发生。
我相信发生这种情况是因为它使用的是通用打印机驱动程序。见下图。
在同一网络中的 Ubuntu 18.04 系统上,这台打印机可以工作,我可以看到它正在使用名为Canon MG5300 series - CUPS+Gutenprint v5.2.13
.
要安装此驱动程序,我单击了Gear
按钮并选择了Printer Details
. 之后,我点击了Search for Drivers
。但是,它找不到合适的驱动程序。接下来,我点击了Select from Database
-->Canon
但找不到任何MG
驱动MG5300
程序。
我也试过这个解决方案。安装成功,但即使打印机扫描仪通过 USB 连接到系统,也找不到扫描仪。见下文。
以前,我曾询问过为 Ubuntu 16.04 设置同一台打印机的扫描仪。我在那里尝试了解决方案。佳能的安装scangermp
也因.
$ sudo ./install.sh
==================================================
ScanGear MP
Version 1.80
Copyright CANON INC. 2007-2011
All Rights Reserved.
==================================================
Command executed = sudo dpkg -iG ./packages/scangearmp-common_1.80-1_amd64.deb
Selecting previously unselected package scangearmp-common.
(Reading database ... 256647 files and directories currently installed.)
Preparing to unpack .../scangearmp-common_1.80-1_amd64.deb ...
Unpacking scangearmp-common (1.80-1) ...
dpkg: dependency problems prevent configuration of scangearmp-common:
scangearmp-common depends on libpng12-0 (>= 1.2.8rel); however:
Package libpng12-0 is not installed.
scangearmp-common depends on libusb-0.1-4 (>= 2:0.1.10a); however:
Package libusb-0.1-4 is not installed.
dpkg: error processing package scangearmp-common (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
scangearmp-common
Command executed = sudo dpkg -P scangearmp-common
(Reading database ... 256695 files and directories currently installed.)
Removing scangearmp-common (1.80-1) ...
Purging configuration files for scangearmp-common (1.80-1) ...
我应该怎么做才能在 Ubuntu 20.04 中设置这台佳能 MG5370 打印机扫描仪?我希望能够打印和扫描。
更新:
$ driverless
$ driverless list
DEBUG: Started ippfind (PID 25370)
DEBUG: Started post-processing (PID 25371)
DEBUG: PID 25370 (ippfind) stopped with status 1!
DEBUG: PID 25371 (Post-processing) exited with no errors.
$ lpinfo -v
file cups-brf:/
network beh
network http
network ipp
network lpd
serial serial:/dev/ttyS0?baud=115200
network https
network ipps
direct hp
network socket
direct usb://Canon/MG5300%20series?serial=20EE62&interface=1
direct hpfax
network dnssd://Canon%20MG5300%20series._printer._tcp.local/?uuid=urn:uuid:00000000-0000-1000-8000-8887178XXXXX
遵循@brian_p 答案的结果:
$ scanimage -L
device `pixma:04A91754_20EE62' is a CANON Canon PIXMA MG5300 multi-function peripheral
device `airscan:w1:Canon MG5300 series' is a WSD Canon MG5300 series ip=192.168.1.XXX
$ airscan-disciver
airscan-disciver: command not found
$ airscan-discover
[devices]
$
打印结果:
sudo apt install printer-driver-gutenprint
已成功完成。
$ lpinfo -m | grep MG5370
gutenprint.5.3://bjc-PIXMA-MG5370/expert Canon PIXMA MG5370 - CUPS+Gutenprint v5.3.3
$ lpadmin -p MG5370 -v dnssd://Canon%20MG5300%20series._printer._tcp.local/?uuid=urn:uuid:00000000-0000-1000-8000-8887178XXXXX -E -m gutenprint.5.3://bjc-PIXMA-MG5370/expert
lpadmin: Printer drivers are deprecated and will stop working in a future version of CUPS.
$ lp -d MG5370 /etc/nsswitch.conf
request id is MG5370-2 (1 file(s))
无线打印成功。
我将首先解决扫描问题。稍后打印。假设设备已连接到网络。
在 Ubuntu 21.04 上,默认情况下会为用户提供sane-airscan。您必须到这里然后继续从这里下载 Debian 软件包。安装包并执行
scanimage -L
andairscan-discover
. 将输出发回给我们。打印网络 URI 是
dnssd://Canon%20MG5300%20series._printer._tcp.local/?uuid=urn:uuid:00000000-0000-1000-8000-8887178XXXXX
USB URI 是
usb://Canon/MG5300%20series?serial=20EE62&interface=1
现在安装
printer-driver-gutenprint
并执行lpinfo -m | grep MG5730
. PPD 以Gutenprint开始,以Expert结束。执行
lpadmin -p PRINTER_NAME -v URI -E -m PPD
,用你所拥有的 URI 和 PPD 代替。PRINTER_NAME可以是您想要的,例如5730。用 测试打印lp -d PRINTER_NAME /etc/nsswitch.conf
。