我刚刚更新了我的Ubuntu并将我的打印机设置为工厂设置,然后我重新安装了我的打印机(和以前一样),但是这次我得到了一个“设备通信错误(5012)”。
我在谷歌上搜索并找到了这个解决方案和几个参考资料。他们提到的问题似乎完全是我的问题,只有解决办法才能给我提出问题。
在hp-toolbox
或hp-setup
中,我都找不到可以修改
hp:/usb/HP_Color_LaserJet_MFP_M477fdw?serial=XXXXXXXXX
或
hpfax:/usb/HP_Color_LaserJet_MFP_M477fdw?serial=XXXXXXXXX
并将serial=XXXXXXXX
更改为ip=192.168.0.xxx
。
有人对此有什么想法吗?也许我可以手动编辑一个文件?或者,在hp-setup
中,我确实看到了字段network identification/hostname
,但我不想搞砸,因为我不确定,因为它也不会将serial=
更改为ip=
,只会将名称更改为数字。
我刚刚意识到,当我插入我的usb电缆,传真和打印机下的惠普工具箱似乎是问题。不过,hp检查下的问题仍然存在,但没有设备通信错误(5012)。
所以在我看来,这台打印机似乎不是以wifi安装的,而是作为usb安装的,也许只是通过将"serial=XXXXXXXX“改为"ip=192.168.0.xxx”来修复的,我真的不太确定。
产出摘要:
# hp-check -i
Saving output in log file: /home/matt/hp-check.log
HP Linux Imaging and Printing System (ver. 3.17.10)
Dependency/Version Check Utility ver. 15.1
---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------
HP-Color-LaserJet-MFP-M477fdw
-----------------------------
Type: Printer
Device URI: hp:/usb/HP_Color_LaserJet_MFP_M477fdw?serial=VNBKKDH3WN
PPD: /etc/cups/ppd/HP-Color-LaserJet-MFP-M477fdw.ppd
**warning: Failed to read /etc/cups/ppd/HP-Color-LaserJet-MFP-M477fdw.ppd ppd file**
PPD Description:
Printer status: printer HP-Color-LaserJet-MFP-M477fdw is idle.
enabled since Tue 06 Mar 2018 23:07:59 CET
Required plug-in status: Installed
**error: Unable to communicate with device (code=12):
hp:/usb/HP_Color_LaserJet_MFP_M477fdw?serial=VNBKKDH3WN**
**error: Device not found**
**error: Communication status: Failed**
HP-Color-LaserJet-MFP-M477fdw-Fax-2
-----------------------------------
Type: Fax
Device URI: hpfax:/usb/HP_Color_LaserJet_MFP_M477fdw?serial=VNBKKDH3WN
PPD: /etc/cups/ppd/HP-Color-LaserJet-MFP-M477fdw-Fax-2.ppd
**warning: Failed to read /etc/cups/ppd/HP-Color-LaserJet-MFP-M477fdw-
Fax-2.ppd ppd file**
PPD Description:
Printer status: printer HP-Color-LaserJet-MFP-M477fdw-Fax-2 is idle.
enabled since Tue 06 Mar 2018 23:08:05 CET
Required plug-in status: Installed
**error: Unable to communicate with device (code=12):
hpfax:/usb/HP_Color_LaserJet_MFP_M477fdw?serial=VNBKKDH3WN**
**error: Device not found**
**error: Communication status: Failed**
--------------
| PERMISSION |
--------------
-----------
| SUMMARY |
-----------
Missing Required Dependencies
-----------------------------
error: 'libcups2' package is missing/incompatible
error: 'libdbus-1-dev' package is missing/incompatible
error: 'libjpeg-dev' package is missing/incompatible
error: 'libcups2-dev' package is missing/incompatible
error: 'cups-bsd' package is missing/incompatible
error: 'cups-client' package is missing/incompatible
error: 'libcupsimage2-dev' package is missing/incompatible
error: 'libsane-dev' package is missing/incompatible
error: 'libsnmp-dev' package is missing/incompatible
error: 'snmp-mibs-downloader' package is missing/incompatible
error: 'openssl' package is missing/incompatible
error: 'python3-pyqt4' package is missing/incompatible
error: 'gtk2-engines-pixbuf' package is missing/incompatible
Missing Optional Dependencies
-----------------------------
error: 'python3-dbus.mainloop.qt' package is missing/incompatible
Total Errors: 12
Total Warnings: 0
抱歉,我没能让代码中的胆量发挥作用?
发布于 2018-09-27 21:59:33
记录在案:问题出现在18.04,hplip 3.17.10。
“‘hp检查-i”报告
警告:不支持12-18.04版本。使用12-17.04版本依赖项来验证和安装.警告:HPLIP-安装: 12发行版18.04版本不支持自动安装
发布于 2021-04-22 02:59:17
我与上面提到的错误相同,无法与设备(code=12)通信,您还会注意到,"sudo“报告了扫描仪的错误。
在搜索该错误时,我发现了一个德语Ubuntu页面,它提出了以下修复方法,这对我的情况也有帮助(即使不懂德语,也很容易理解):https://forum.ubuntuusers.de/topic/hp-deskjet-3636-device-communication-error/:
所以从本质上说,您只需运行以下一行:
sudo apt purge ippusbxd
然后拔掉/回复打印机。我重新运行了sudo hp-check
,所有的错误都消失了,扫描就像一种魅力。
干杯
发布于 2018-03-07 16:24:10
这就是我为解决问题所做的。
/etc/cups
中删除所有引用(到目前为止我都知道要找到它们),基本上是sudo编辑的,并且清除了整个文件夹。打印机似乎正确地设置了-up,没有通信错误5012,
通过wifi,还没有被xsane找到。
更新:我在运行hp医生时会得到不受支持的平台警告和HPLIP错误:Unable to communicate with device (code=12)
。
https://askubuntu.com/questions/1012562
复制相似问题