Ubuntu – “Device Communication error (5012)” – HP printer

hpnetworkingprinting

I have just updated my Ubuntu and set my printer back to factory settings, after which I reinstalled my printer (same way as before) but this time I'm getting a "Device Communication error (5012)".

I googled and found this solution and several referrals to it. The issue they mention seems to be exactly mine, only the way the solution is solved gives me questions.

Neither in hp-toolbox nor hp-setup do I find a field in which I can modify the

hp:/usb/HP_Color_LaserJet_MFP_M477fdw?serial=XXXXXXXXX

or

hpfax:/usb/HP_Color_LaserJet_MFP_M477fdw?serial=XXXXXXXXX

and change the serial=XXXXXXXX to ip=192.168.0.xxx.

Does anyone have any ideas about this? Maybe I can manually edit a file? Or, in the hp-setup I did see the fields network identification/hostname, but I didn't want to mess with this as I'm not sure, as it also wouldn't change the serial= to ip=, just the name to the number.

I just realised that when i plug in my usb cable the fax and printer under hp toolbox seem to be oke. the issue under hp-check still remains though but no Device Communication error (5012).

so to me it seems like the printer is not installed as wifi but as usb, maybe it is just that that is being fixed by changing the "serial=XXXXXXXX" to "ip=192.168.0.xxx",i'm really not sure.

summary of output:

# 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

sorry i couldn't get the bold in the code to work?

Best Answer

  • Oke..solved!! this is what did i to, a lot of steps so i'm just gonna say step by step:

    1) installed fresh install from ubuntu 17.10:

    # sudo do-release-upgrade -d
    

    2) removed all references (so far i knew to find them) from /etc/cups basically sudo-ed and cleaned the entire folder out.

    3) auto-removed hplip-gui

    # sudo apt-get remove --auto-remove hplip-gui
    

    4) somewhere here i was asked to partially updated ubuntu, which afterwards showed that it became a development version of 18.04 unfortunately i'm not sure if that was induced or just happened, and also don't know it that matters or how to find out.

    5) auto-removed hplip

    # sudo apt-get remove --auto-remove hplip
    

    6) downloaded hplip-3.17.11 from hp site

    7) installed hplip-3.17.11 following the installation notes from hp side

    8) payed special attention to the installation notes at the beginning of the install.. and did them as such.

    8a) software and updates: made sure it was on main-server
    8b) locked the cd-rom by:

    # eject -i 1
    

    9) installed hplip-3.17.11

    # cd desktop
    # sh hplip-3.17.11.run
    

    no dependency problems at all!

    10) installed printer during install via gui

    so printer seems to be properly set-up,
    no communication error 5012,
    via wifi
    just still not found by xsane.

    update:

    i do get a
    - unsupported platform warning when running hp-doctor
    and
    - a HPLIP error: Unable to communicate with device (code=12)

  • Related Question