重新安装 Ubuntu 20.04 后佳能 MG5300 打印机无法打印

重新安装 Ubuntu 20.04 后佳能 MG5300 打印机无法打印

首先,请耐心等待,因为我是 Ubuntu 新手。我的电脑上安装了 Ubuntu 19.10,打印机工作正常。升级到 20.04 后仍然没有问题,直到我不得不重新安装 20.04。在第一次安装时,主目录都是一个,现在我已切换到单独分区上的主目录(我不认为这是问题的一部分,但我试图尽可能多地向您提供信息)。我进入 Ubuntu wiki“调试打印问题”,并运行了那里的终端命令。以下是我的终端会话的输出。

james@asus-main:~$ lpstat -p -d  
printer Canon_MG5300_series is idle.  enabled since Wed 06 May 2020 08:40:43 PM  
no system default destination  
james@asus-main:~$ lpoptions -d printer  
lpoptions: Unknown printer or class.  
james@asus-main:~$ lsmod | grep usb  
usblp                  24576  0  
usb_storage            77824  2 uas,ums_realtek  
usbhid                 57344  0  
hid                   131072  2 usbhid,hid_generic  
james@asus-main:~$ tail -f /var/log/syslog  
May  6 20:54:12 asus-main systemd[1]: Starting PackageKit Daemon...    
May  6 20:54:12 asus-main PackageKit: daemon start  
May  6 20:54:12 asus-main dbus-daemon[782]: [system] Successfully activated service 'org.freedesktop.PackageKit'  
May  6 20:54:12 asus-main systemd[1]: Started PackageKit Daemon.  
May  6 20:54:12 asus-main PackageKit: resolve transaction /29_cbcedcda from uid 1000 finished with success after 356ms  
May  6 20:54:39 asus-main PackageKit: resolve transaction /30_caccbeda from uid 1000 finished with success after 352ms  
May  6 20:55:53 asus-main PackageKit: resolve transaction /31_edddebed from uid 1000 finished with success after 354ms  
May  6 20:55:53 asus-main PackageKit: get-details transaction /32_cbdbcbcd from uid 1000 finished with success after 358ms  
May  6 20:57:35 asus-main snapd[798]: api.go:985: Installing snap "libreoffice" revision unset  
May  6 20:57:45 asus-main systemd[1727]: gnome-launched-gnome-control-center.desktop-6086.scope: Succeeded.
May  6 21:00:10 asus-main systemd[1]: Started Configure Plugged-In Printer.  
May  6 21:00:10 asus-main udev-configure-printer: add usb-001-008  
May  6 21:00:10 asus-main udev-configure-printer: device devpath is /devices/pci0000:00/0000:00:12.2/usb1/1-1  
May  6 21:00:10 asus-main udev-configure-printer: Device already handled  
May  6 21:00:10 asus-main systemd[1]: [email protected]: Main process exited, code=exited, status=1/FAILURE  
May  6 21:00:10 asus-main systemd[1]: [email protected]: Failed with result 'exit-code'.
May  6 21:00:25 asus-main systemd-resolved[770]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.  
May  6 21:00:26 asus-main systemd-resolved[770]: message repeated 2 times: [ Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.]  
May  6 21:00:26 asus-main colord[870]: failed to get session [pid 3480]: No data available  
May  6 21:00:57 asus-main PackageKit: daemon quit
May  6 21:00:57 asus-main systemd[1]: packagekit.service: Succeeded.  
^C  
james@asus-main:~$ tail -f /var/log/syslog  
May  6 21:01:43 asus-main /usr/lib/gdm3/gdm-x-session[1813]: (II) RADEON(0): Modeline "800x600"x0.0   49.50  800 816 896 1056  600 601 604 625 +hsync +vsync (46.9 kHz e)  
May  6 21:01:43 asus-main /usr/lib/gdm3/gdm-x-session[1813]: (II) RADEON(0): Modeline "800x600"x0.0   50.00  800 856 976 1040  600 637 643 666 +hsync +vsync (48.1 kHz e)  
May  6 21:01:43 asus-main /usr/lib/gdm3/gdm-x-session[1813]: (II) RADEON(0): Modeline "1152x864"x0.0  108.00  1152 1216 1344 1600  864 865 868 900 +hsync +vsync (67.5 kHz e)  
May  6 21:01:43 asus-main /usr/lib/gdm3/gdm-x-session[1813]: (II) RADEON(0): Modeline "1280x720"x60.0   74.48  1280 1336 1472 1664  720 721 724 746 -hsync +vsync (44.8 kHz e)  
May  6 21:01:43 asus-main /usr/lib/gdm3/gdm-x-session[1813]: (II) RADEON(0): Modeline "1280x800"x0.0   71.00  1280 1328 1360 1440  800 803 809 823 +hsync -vsync (49.3 kHz e)  
May  6 21:01:45 asus-main ModemManager[885]: <info>  Couldn't check support for device '/sys/devices/pci0000:00/0000:00:15.1/0000:03:00.0': not supported by any plugin  
May  6 21:01:47 asus-main dbus-daemon[1740]: apparmor="DENIED" operation="dbus_method_call"  bus="session" path="/org/gtk/Notifications" interface="org.gtk.Notifications"   member="AddNotification" mask="send" name="org.gtk.Notifications" pid=2246 label="snap.snap-store.ubuntu-software" peer_pid=2068 peer_label="unconfined"
May  6 21:01:47 asus-main systemd[1727]: tracker-extract.service: Succeeded.  
May  6 21:02:07 asus-main tracker-store[6792]: OK  
May  6 21:02:07 asus-main systemd[1727]: tracker-store.service: Succeeded.  
^C 
james@asus-main:~$ lsusb  
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub  
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub  
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub  
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub  
Bus 001 Device 004: ID 0bda:0158 Realtek Semiconductor Corp. USB 2.0 multicard reader  
Bus 001 Device 008: ID 04a9:1754 Canon, Inc. PIXMA MG5300 Series  
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub  
Bus 003 Device 003: ID 0461:4de2 Primax Electronics, Ltd USB Optical Mouse  
Bus 003 Device 002: ID 0461:4e26 Primax Electronics, Ltd Wired USB Keyboard  
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub  
james@asus-main:~$ ls -l /dev/usb/lp* /dev/bus/usb/*/*  
crw-rw-r--  1 root root 189,   0 May  6 21:01 /dev/bus/usb/001/001  
crw-rw-r--  1 root root 189,   3 May  6 21:01 /dev/bus/usb/001/004  
crw-rw-r--+ 1 root lp   189,   7 May  6 21:01 /dev/bus/usb/001/008  
crw-rw-r--  1 root root 189, 128 May  6 21:01 /dev/bus/usb/002/001  
crw-rw-r--  1 root root 189, 256 May  6 21:01 /dev/bus/usb/003/001  
crw-rw-r--  1 root root 189, 257 May  6 21:01 /dev/bus/usb/003/002  
crw-rw-r--  1 root root 189, 258 May  6 21:01 /dev/bus/usb/003/003  
crw-rw-r--  1 root root 189, 384 May  6 21:01 /dev/bus/usb/004/001  
crw-rw-r--  1 root root 189, 512 May  6 21:01 /dev/bus/usb/005/001  
crw-rw-r--  1 root root 189, 640 May  6 21:01 /dev/bus/usb/006/001  
crw-rw----  1 root lp   180,   0 May  6 21:01 /dev/usb/lp0  
james@asus-main:~$ sudo usb_printerid /dev/usb/lp0  
[sudo] password for james:   
GET_DEVICE_ID string:  
MFG:Canon;CMD:BJL,BJRaster3,BSCCe,NCCe,IVEC,IVECPLI;SOJ:BJNP2,BJNPe;MDL:MG5300   series;CLS:PRINTER;DES:Canon MG5300   series;VER:2.030;STA:10;FSI:03;HRI:2;MSI:BOFF,DAT,E3,HFSF,JOFF,K21000700;PDR:B;PSE:ACFC35272; 
james@asus-main:~$ sudo usb_printerid /dev/usb/lp1  
Error: No such file or directory: can't open '/dev/usb/lp1'  
james@asus-main:~$ lpinfo -v  
network beh  
file cups-brf:/  
network socket  
network lpd  
network ipp  
network http  
network https  
direct hp  
network ipps  
direct usb://Canon/MG5300%20series?serial=2B2112&interface=1  
direct hpfax  
network dnssd://Canon%20MG5300%20series._printer._tcp.local/  
james@asus-main:~$   

在我输入这些内容时,我的打印机在过去 60 分钟内一直在尝试打印文档。打印机不会打印测试页。系统显然正在查看打印机。打印机可能有问题;在我重新布置工作站之前,打印机可以使用底部托盘。但是在移动打印机并将其翻转到侧面以连接电缆后,当我尝试从底部托盘打印时,它开始发出奇怪的咔嗒声。不得不使用背面板来放纸,它确实可以工作,直到我重新安装 20.04 并将主分区设置在不同的分区上。?????

答案1

我在 Pixma MP230 上解决了类似的问题,如下所示:

  1. 删除ippusbxd:(sudo apt remove ippusbxd在终端中运行)
  2. 使用 GUI 打印机实用程序删除并重新安装打印机
  3. 打印测试页

经过几个小时的故障排除后,这个方法对我很有用,我希望它对你也有用!

您可能还想阅读这些相关问题,其中比我更有知识的人解释了现在所有打印机都是“网络打印机”或类似的东西。显然,删除ippusbxd并不是最优雅的解决方案,但只要它有效,我就很高兴 :-)

相关内容