HP LaserJet AllInOne,扫描无法工作

gue*_*tli 8 hp sane scanner

如果我尝试扫描(xsane 或 simple-scan),我会得到以下输出:

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

有人告诉我这个设备有很好的 Linux 支持...请参阅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)
Run Code Online (Sandbox Code Playgroud)

更新 snmp 软件包后,我现在收到此错误:

===> 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)
Run Code Online (Sandbox Code Playgroud)

仍然无法扫描:-(

Cha*_*een 3

有点暴力的答案是您在系统上的某个时刻安装了 snmp,并且它尚未完全删除。最简单的解决方法是重新安装 snmp:

打开终端,输入命令

sudo apt update
sudo apt install snmp snmp-mibs-downloader
Run Code Online (Sandbox Code Playgroud)

修复 snmp 问题后,hp-scan 引用的 I/O 错误 9 似乎表明它可能未完全安装 - 请参阅https://bugzilla.redhat.com/show_bug.cgi?id=1347231

要解决此问题,请输入命令

sudo apt install --reinstall hplip
Run Code Online (Sandbox Code Playgroud)


Eld*_*eek -1

根据手册页

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> 
Run Code Online (Sandbox Code Playgroud)

请注意,您需要指定 hp-scan 的 URI

还需要配置Sane