6

If I try to scan (xsane or simple-scan) I get this output:

Device URI: hpaio:/net/HP_LaserJet_MFP_M129-M134?hostname=hp-drucker

I was told that this device has great linux support ... See https://hardwarerecs.stackexchange.com/questions/8323/small-printerscanner-with-very-good-support-for-ubuntu

MIB search path: /home/guettli/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp
Cannot find module (SNMPv2-MIB): At line 0 in (none)
Cannot find module (IF-MIB): At line 0 in (none)
Cannot find module (IP-MIB): At line 0 in (none)
Cannot find module (TCP-MIB): At line 0 in (none)
Cannot find module (UDP-MIB): At line 0 in (none)
Cannot find module (HOST-RESOURCES-MIB): At line 0 in (none)
Cannot find module (NOTIFICATION-LOG-MIB): At line 0 in (none)
Cannot find module (DISMAN-EVENT-MIB): At line 0 in (none)
Cannot find module (DISMAN-SCHEDULE-MIB): At line 0 in (none)
Cannot find module (HOST-RESOURCES-TYPES): At line 0 in (none)
Cannot find module (MTA-MIB): At line 0 in (none)
Cannot find module (NETWORK-SERVICES-MIB): At line 0 in (none)
Cannot find module (SNMPv2-TC): At line 15 in /usr/share/snmp/mibs/UCD-DISKIO-MIB.txt
Cannot find module (SNMPv2-SMI): At line 34 in /usr/share/snmp/mibs/UCD-SNMP-MIB.txt
Cannot find module (SNMPv2-TC): At line 37 in /usr/share/snmp/mibs/UCD-SNMP-MIB.txt
Did not find 'enterprises' in module #-1 (/usr/share/snmp/mibs/UCD-SNMP-MIB.txt)
Did not find 'DisplayString' in module #-1 (/usr/share/snmp/mibs/UCD-SNMP-MIB.txt)
Did not find 'TruthValue' in module #-1 (/usr/share/snmp/mibs/UCD-SNMP-MIB.txt)
.... (cut)

After updateing snmp packages I get this error now:

===> hp-scan 

HP Linux Imaging and Printing System (ver. 3.16.11)
Scan Utility ver. 2.2

Copyright (c) 2001-15 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.

warning: No destinations specified. Adding 'file' destination by default.
Using device hpaio:/net/HP_LaserJet_MFP_M129-M134?hostname=NPIBC8C62.local
Opening connection to device...
error: SANE: Error during device I/O (code=9)

Still no scanning possible :-(

1
  • 1
    Did you setup this printer using the hp-setup command or using hplip-gui?
    – PJ Singh
    Nov 24 '17 at 23:12
2
+25

The somewhat brute-force answer is that you had installed at some point snmp on your system, and it has not been entirely removed. The easiest fix for this will be re-installation of snmp:

Open a terminal, and enter the command

sudo apt update
sudo apt install snmp snmp-mibs-downloader

After having fixed the snmp issues, the I/O error 9 referenced by hp-scan seems to indicate tht it may not be fully installed - see https://bugzilla.redhat.com/show_bug.cgi?id=1347231

To fix this, enter the command

sudo apt install --reinstall hplip
3
  • I entered the command you wrote. The verbose error does not happen any more. But xsane or sane-find-scanner bring to output. But still not working. I added the output of hp-scan to the question.
    – guettli
    Nov 22 '17 at 19:49
  • @guettli Please reinstall the hplip program - this can most easily be done by sudo apt install --reinstall hplip Nov 24 '17 at 22:09
  • I followed your commands, but it didn't help.
    – Pavel_K
    Jun 8 '20 at 15:20
2

I solved the error: SANE: Error during device I/O (code=9) by installing the hplip-plugin.

I had to manually download it from there website and use sh hplip-3.19.3-plugin.run to install it (use the same version as your own hplip, you can see your version number by running the command hp-info). Using the command hp-plugin did not work for me.

After this hp-scan and programs like Simple Scan worked correctly.

0

This is a work-around, but it works.

I use the "HP Smart (HP AiO Remote)" Android App for scanning. This works easy and reliably ... I am happy.

-1

According to the man page

hp-scan [DEVICE_URI|PRINTER_NAME] [MODE] [OPTIONS]

To specify a device-URI:
    -d<device-uri> or --device=<device-uri> 
To specify a CUPS printer:
    -p<printer> or --printer=<printer> 

Note that you need to specify the URI for hp-scan

Configuration of Sane is also required

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.