Got ubuntu 20.04

Got HP Deskjet 2540

Got HP Officejet 3830

Connected via USB

All worked fine in Ubuntu 19.10

In Ubuntu 20.04 simple scan gives error "Failed to scan Unable to connect to scanner. " Also error code 5012

Doesn't work with HPLIP, doesn't work with preinstalled ubuntu drivers.

Help please ?

  • I have posted an answer to a similar question here. It deals with a different device which is connected through the network, not with a USB cable, however, I think it can possibly still be useful to someone ending up here.
    – Paloha
    Jul 29 '20 at 11:59
  • Thank you, I will check it out. Aug 10 '20 at 21:57
  • hmm, none of that works for me. I prefer USB anyway as it's simpler. Sometimes ubuntu mess things up. I still love it though. Aug 13 '20 at 12:03

I have found a workaround for this problem that has really annoyed me for three months now on my HP Envy 4500 with embedded scanner connected via USB (printing was affected too).
Several bug reports have linked this problem to a conflict between hplip (HP linux drivers) and ippusbxd (Daemon for IPP USB printer support)

I tried uninstaling hplip and ippusbxd separately to see what was best, but the only working solution was really to uninstall ippusbxd as it solved all my problems of multiple printers being displayed and reappearing even if i deleted them.

> sudo apt purge ippusbxd

Note : I had to disconnect my printer from the USB port and to reinstall it after having purged ippusbxd and every printer definition that was left.

And so the scanning problem is solved too even if i still got the same annoying modal error pop up after each single page scan (but it's working)..

  • Thanks for that answer Zipang purging ippusbxd has done the trick for my HP 2634 in 20:04 :ThumbsUP: You win the internet for the month
    – Paul
    Sep 16 '20 at 15:20
  • Also Worked in Lubuntu 20.04 as well. Nov 22 '20 at 17:12
  • 1
    thanks! that works! and worth is to mention that the best is to download the newest drivers from hp directly, better don't relay on default ubuntu repo because there are older hplip
    – Nicramus
    Jan 26 at 17:26

I had a problem with a Brother MFC-250C on Ubuntu 20.4. Printing worked, but no scanner found. Multifunction device connected via USB. Solved it by installing libusb-0.1-4. Maybe this will help in your case too.


I had this problem took out USB and set up WiFi and it now scans and prints perfectly , HP envy 5010 and use Ubuntu 20.04

  • Ah, thanks Neil,, maybe I should try that. Jan 10 at 17:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.