“设备通信错误 (5012)”- HP 打印机

Mat*_*van 5 networking printing hp

我刚刚更新了我的 Ubuntu 并将我的打印机设置回出厂设置,之后我重新安装了我的打印机(与以前相同的方式),但这次我收到了“设备通信错误 (5012)”。

我用谷歌搜索并找到了这个解决方案以及一些关于它的推荐。他们提到的问题似乎正是我的,只是解决方案的方式给了我疑问。

hp-toolbox我既没有hp-setup找到可以修改的字段

hp:/usb/HP_Color_LaserJet_MFP_M477fdw?serial=XXXXXXXXX
Run Code Online (Sandbox Code Playgroud)

或者

hpfax:/usb/HP_Color_LaserJet_MFP_M477fdw?serial=XXXXXXXXX
Run Code Online (Sandbox Code Playgroud)

并将 更改serial=XXXXXXXXip=192.168.0.xxx

有人对此有什么想法吗?也许我可以手动编辑文件?或者,在 中hp-setup,我确实看到了字段network identification/hostname,但我不想弄乱它,因为我不确定,因为它也不会更改 to serial=ip=只是将名称更改为数字。

我刚刚意识到,当我插入 USB 电缆时,HP 工具箱下的传真和打印机似乎没问题。hp-check 下的问题仍然存在,但没有设备通信错误 (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
Run Code Online (Sandbox Code Playgroud)
---------------------------------
| 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
Run Code Online (Sandbox Code Playgroud)

抱歉,我无法使代码中的粗体起作用?

Vla*_*tka 3

郑重声明:问题出现在 18.04 的 hplip 3.17.10 中。

hp-check -i ”报告

警告:不支持 12-18.04 版本。使用 12-17.04 版本依赖项来验证和安装...

警告:HPLIP-安装:12 发行版 18.04 版本不支持自动安装


Mat*_*van 2

这就是我所做的来解决它。

  1. 从 Ubuntu 17.10 全新安装:

    sudo do-release-upgrade -d
    
    Run Code Online (Sandbox Code Playgroud)
  2. /etc/cups 从基本上 sudo 编辑中删除了所有引用(到目前为止我知道找到它们)并清理了整个文件夹。

  3. 自动删除 hplip-gui

    sudo apt remove --auto-remove hplip-gui
    
    Run Code Online (Sandbox Code Playgroud)
  4. 在这里的某个地方,我被要求部分更新 Ubuntu,后来显示它成为 18.04 的开发版本。不幸的是,我不确定这是诱发的还是刚刚发生的,也不知道这很重要,也不知道如何找出答案。

  5. 自动删除 hplip

    sudo apt remove --auto-remove hplip
    
    Run Code Online (Sandbox Code Playgroud)
  6. 从HP网站下载hplip-3.17.11。

  7. 按照 HP 网站的安装说明安装了 hplip-3.17.11。

  8. 安装开始时特别注意安装说明并遵循它们。

    8a. 软件和更新:确保它位于主服务器上。
    8b. 通过以下方式锁定 CD-ROM:

    eject -i 1
    
    Run Code Online (Sandbox Code Playgroud)
  9. 安装hplip-3.17.11

    cd Desktop
    sudo sh hplip-3.17.11.run
    
    Run Code Online (Sandbox Code Playgroud)

    根本不存在依赖性问题!

  10. 通过 GUI 安装期间安装的打印机。

打印机似乎设置正确,没有
通过 wifi 出现通信错误 5012,只是 xsane 仍然找不到。

更新:运行 hp-doctor 时收到不支持的平台警告和 HPLIP 错误:Unable to communicate with device (code=12)