Xsane: Failed to open device `hpaio:/net/Photosmart_C5100_series?zc=HP5180': Error during device I/O

Solution 1:

For anyone coming to this page, like I did, looking to solve this issue. I ended up trying something very simple that worked for me.

My system is Ubuntu 12.10. I have a HP MFP CM1312 network printer.

  1. I installed "HPLIP Toolbox" from the Ubuntu software center (I already had HPLIP installed).
  2. From a terminal, I ran sudo hp-plugin, clicked "Next" through the defaults.

Network scanning worked flawlessly.

Solution 2:

Failed to open device'hpaio:/usb/HP_LaserJet_Professional_M1136_MFP?serial=0000000000H77VXNPR1a': Error during device I/O.

I had the above error when I upgraded Ubuntu 14.04 to 14.10. And I found the solution as below:

  1. Open the terminal.

  2. Run:

    sudo hp-plugin
    
  3. Go through the HP installation.

After following these steps you will get no error message.

Solution 3:

I'm having the same problem. Avahi is running for me. It looks like a general bug in 3.12.6:

https://bugs.launchpad.net/hplip/+bug/1015319

Downgrading to 3.12.4 worked. I got the packages from launchpad here:

https://launchpad.net/debian/+source/hplip/3.12.4-1/

To build the package (from memory, but hopefully it helps):

  • Copy the tar.gz files to /usr/local/src
  • sudo aptitude build-dep hplip
  • sudo aptitude install devscripts
  • tar -xzf hplip_3.12.4.orig.tar.gz
  • tar -xzf hplip_3.12.4-1.debian.tar.gz
  • mv debian hplip-3.12.4
  • cd hplip-3.12.4
  • debuild -us -uc
  • cd ..
  • dpkg -i *.deb

Here are other references to people having the same problem:

http://www.linuxquestions.org/questions/slackware-14/xsane-failed-to-open-device-4175414927/

http://h30434.www3.hp.com/t5/Scanning-Faxing-and-Copying/Problem-with-scanning-Debian-HP-L7590/td-p/1755055

Solution 4:

  • Install your printer with 'hplip'
  • Install 'hplip toolbox' from the software centre
  • Open HPLip Toolbox from the Dash.
  • On the actions tab, click on 'Install Required Plugin'
  • Click through the install.

Now try accessing the scanner using 'Simple Scan' via the Dash. Works flawlessly.

Thanks @Nelson Garcia, although my method is slightly different, your post solved it for me.