Canon 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))
无线打印成功。
答案1
我将首先解决扫描问题。稍后再解决打印问题。假设设备已连接到网络。
在 Ubuntu 21.04 上,用户将获得理智空气扫描默认情况下。你必须去这里然后从以下位置下载 Debian 软件包这里. 安装软件包并执行scanimage -L
并airscan-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 开始打印并结束于专家。
执行lpadmin -p PRINTER_NAME -v URI -E -m PPD
,用现有的 URI 和 PPD 替换。打印机名称可以是你想要的,例如,5730. 使用 进行测试打印lp -d PRINTER_NAME /etc/nsswitch.conf
。