Hp Printer Unable to communicate with device (code=12)

I am trying to install HP printer but there is some unknown issue that i cn’t seem to solve. When i type the following command i am able to successfully add it but there is communication error. Not sure how i can resolve this one.

sudo hp-setup

HP Linux Imaging and Printing System (ver. 3.21.6)
Printer/Fax Setup Utility ver. 9.0

Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
Searching... (bus=net, timeout=5, ttl=4, search=(None) desc=0, method=slp)
error: Unable to communicate with device (code=12): hp:/net/HP_Color_LaserJet_M452nw?ip=
error:  Unable to print to printer.  Please check device and try again.


Your device is using APIPA network address.

Assign a static network address on your network or enable the device’s dhcp client.

I have no idea about your problem, but whenever I had trouble with hp printers, I ran the following command
And followed the instructions.
The command however is not fully supported on manjaro, so I would advice you to create system backup with timeshift or similar software before continuing.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.