lsusb 和 sane-find-scanner 的输出如下:
janos@AndrasXubuntu:~/Desktop$ sane-find-scanner
# sane-find-scanner will now attempt to detect your scanner. If the
# result is different from what you expected, first make sure your
# scanner is powered up and properly connected to your computer.
# No SCSI scanners found. If you expected something different, make sure that
# you have loaded a kernel SCSI driver for your SCSI adapter.
found USB scanner (vendor=0x03f0 [Hewlett-Packard], product=0x1205 [hp scanjet scanner]) at libusb:002:002
could not open USB device 0x1d6b/0x0001 at 002:001: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0001 at 001:001: Access denied (insufficient permissions)
# Your USB scanner was (probably) detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.
# Not checking for parallel port scanners.
# Most Scanners connected to the parallel port or other proprietary ports
# can't be detected by this program.
# You may want to run this program as root to find all devices. Once you
# found the scanner devices, be sure to adjust access permissions as
# necessary.
janos@AndrasXubuntu:~/Desktop$ scanimage -L
[hp5590] hp5590_get_status: USB-in-USB: got non-zero device status (status 12)
[hp5590] hp5590_init_scanner: scanner reports non-zero status: Device busy
No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
janos@AndrasXubuntu:~/Desktop$
附加信息:
(1)gscan2pdf
并xsane
有同样的问题 - 找不到设备
(2) 当我有 xubuntu 12.04 扫描仪工作时
(3) 如果我连接我的笔记本电脑(与台式机相同的 Ubuntu 16.04,但笔记本电脑是 64 位,台式机是 32 位),那么在笔记本电脑上进行简单扫描即可。
Sudo 输出,请参阅下面 janos 的评论
janos@AndrasXubuntu:~/Desktop$ sudo sane-find-scanner
[sudo] password for janos:
# sane-find-scanner will now attempt to detect your scanner. If the
# result is different from what you expected, first make sure your
# scanner is powered up and properly connected to your computer.
# No SCSI scanners found. If you expected something different, make sure that
# you have loaded a kernel SCSI driver for your SCSI adapter.
found USB scanner (vendor=0x03f0 [Hewlett-Packard], product=0x1205 [hp scanjet scanner]) at libusb:002:002
# Your USB scanner was (probably) detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.
# Not checking for parallel port scanners.
# Most Scanners connected to the parallel port or other proprietary ports
# can't be detected by this program.
janos@AndrasXubuntu:~/Desktop$ sudo scanimage -L
[hp5590] hp5590_get_status: USB-in-USB: got non-zero device status (status 12)
[hp5590] hp5590_init_scanner: scanner reports non-zero status: Device busy
No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
janos@AndrasXubuntu:~/Desktop$
lsusb 的输出(对不起,我的意思是在我第一次提出问题时将其包括在内)
janos@AndrasXubuntu:~/Desktop$ sudo lsusb
[sudo] password for janos:
Bus 002 Device 002: ID 03f0:1205 Hewlett-Packard ScanJet 4500C/5550C
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
janos@AndrasXubuntu:~/Desktop$
请注意,如果我将扫描仪插入不同的 USB 插座(例如 Bus 001 中的插座)lsusb
会在那里找到它,但简单扫描仍然无法工作。
附加信息:我可以将这台机器双引导到旧安装的 Fedora-3。扫描仪在那里工作。但是,scanimage -L
不会找到它,lsusb
并且sane-find-scanner
会。请参见 Fedora-3 引导中终端的以下输出。
[apu@andraslinux ~]$ su -c "scanimage -L"
Password:
No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
[apu@andraslinux ~]$ /sbin/lsusb
Bus 002 Device 002: ID 03f0:1205 Hewlett-Packard
Bus 002 Device 001: ID 1d6b:0001
Bus 001 Device 001: ID 1d6b:0001
[apu@andraslinux ~]$ sane-find-scanner
# No SCSI scanners found. If you expected something different, make sure that
# you have loaded a SCSI driver for your SCSI adapter.
found USB scanner (vendor=0x03f0 [Hewlett-Packard], product=0x1205 [hp scanjet scanner]) at libusb:002:002
# Your USB scanner was (probably) detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.
可能是libusb
使 FC3 能够运行扫描仪但 Ubuntu 16.04 可能无法使用libusb
?
正如我之前提到的扫描仪确实在 12.04 上工作,但在升级到 14.04 和现在到 16.04 后停止工作
关于 libusb 的附加信息:
32 位台式机(扫描仪不工作)和 64 位笔记本电脑(扫描仪工作)的终端输出相同,如下所示:
janos@acerlinux:~/Desktop$ dpkg -l libusb
dpkg-query: no packages found matching libusb
事实上,我刚刚检查了我的 64 位笔记本电脑没有 libsane-dev,然后再次检查,如果连接到 leptop,扫描仪可以工作。
从以下评论中复制的其他信息:
/etc/sane.d/dll.conf
还可以,hp5590 没有评论;然后我/etc/sane.d/hp5400.conf
通过添加正确的 USB 线进行修改;扫描仪即使scanimage -L
检测到它仍然无法工作,但报告为忙。看这里:
janos@AndrasXubuntu:~/Desktop$ sudo scanimage -L
[sudo] password for janos:
[hp5590] hp5590_get_status: USB-in-USB: got non-zero device status (status 12)
[hp5590] hp5590_init_scanner: scanner reports non-zero status: Device busy
No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
janos@AndrasXubuntu:~/Desktop$
还有一件事,有趣的是,该/etc/sane.d/hp5400.conf
文件在 64 位笔记本电脑和 32 位 Fc3 台式机上是相同的,无需编辑添加 5590 USB 线,但自 12.04 升级以来,除了 32 位 Ubuntu 台式机外,它们都可以与扫描仪一起使用。
因此,我认为最大的问题是“为什么 32 位 16.04 Ubuntu 桌面报告设备繁忙?”
附加信息 - libusb 的修订输出,这次带有星号:
32 位桌面上的 libusb
janos@AndrasXubuntu:~/Desktop$ dpkg -l libusb*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
ii libusb-0.1-4:i 2:0.1.12-28 i386 userspace USB programming library
ii libusb-1.0-0:i 2:1.0.20-1 i386 userspace USB programming library
un libusb-dev <none> <none> (no description available)
un libusbmuxd-too <none> <none> (no description available)
ii libusbmuxd4:i3 1.0.10-2ubun i386 USB multiplexor daemon for iPhone
janos@AndrasXubuntu:~/Desktop$
64位笔记本电脑上的libusb:
janos@acerlinux:~/Desktop$ dpkg -l libusb*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
ii libusb-0.1-4:a 2:0.1.12-28 amd64 userspace USB programming library
ii libusb-1.0-0:a 2:1.0.20-1 amd64 userspace USB programming library
ii libusb-1.0-0:i 2:1.0.20-1 i386 userspace USB programming library
un libusb-dev <none> <none> (no description available)
un libusbmuxd-too <none> <none> (no description available)
ii libusbmuxd4:am 1.0.10-2ubun amd64 USB multiplexor daemon for iPhone
janos@acerlinux:~/Desktop$
附加信息:
根据我对 FC3 的注释,必须安装 man sane-usb usbfs 才能使扫描仪工作。所以在我的 FC3 中,我在 fstab 中有一行包含
none /proc/bus
. 因此,我查看了 32 位 Ubuntu 和 64 位 Ubuntu 上安装的文件系统。请参阅下面的比较:
32 位 Ubuntudf -ha
janos@AndrasXubuntu:~/Desktop$ sudo df -ha
Filesystem Size Used Avail Use% Mounted on
sysfs 0 0 0 - /sys
proc 0 0 0 - /proc
udev 482M 0 482M 0% /dev
devpts 0 0 0 - /dev/pts
tmpfs 100M 5.1M 95M 6% /run
/dev/sda1 9.1G 4.0G 4.7G 47% /
securityfs 0 0 0 - /sys/kernel/security
tmpfs 500M 108K 500M 1% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 500M 0 500M 0% /sys/fs/cgroup
cgroup 0 0 0 - /sys/fs/cgroup/systemd
pstore 0 0 0 - /sys/fs/pstore
cgroup 0 0 0 - /sys/fs/cgroup/blkio
cgroup 0 0 0 - /sys/fs/cgroup/cpu,cpuacct
cgroup 0 0 0 - /sys/fs/cgroup/cpuset
cgroup 0 0 0 - /sys/fs/cgroup/net_cls,net_prio
cgroup 0 0 0 - /sys/fs/cgroup/freezer
cgroup 0 0 0 - /sys/fs/cgroup/memory
cgroup 0 0 0 - /sys/fs/cgroup/hugetlb
cgroup 0 0 0 - /sys/fs/cgroup/pids
cgroup 0 0 0 - /sys/fs/cgroup/perf_event
cgroup 0 0 0 - /sys/fs/cgroup/devices
systemd-1 0 0 0 - /proc/sys/fs/binfmt_misc
hugetlbfs 0 0 0 - /dev/hugepages
debugfs 0 0 0 - /sys/kernel/debug
mqueue 0 0 0 - /dev/mqueue
fusectl 0 0 0 - /sys/fs/fuse/connections
tmpfs 100M 4.0K 100M 1% /run/user/108
tmpfs 100M 36K 100M 1% /run/user/1000
gvfsd-fuse 0.0K 0.0K 0.0K - /run/user/1000/gvfs
janos@AndrasXubuntu:~/Desktop$
在 FC3(扫描仪工作的地方)和 Ubuntu 之间比较 32 位桌面上的文件
janos@AndrasXubuntu:/media/janos/_1/etc/sane.d$ diff hp5400.conf /etc/sane.d/hp5400.conf
14c14
< #/dev/usb/scanner0
---
> #/dev/usbscanner
janos@AndrasXubuntu:/media/janos/_1/etc/sane.d$
64 位 Ubuntudf -ha
janos@acerlinux:~/Desktop$ sudo df -ha
[sudo] password for janos:
Filesystem Size Used Avail Use% Mounted on
sysfs 0 0 0 - /sys
proc 0 0 0 - /proc
udev 1.4G 0 1.4G 0% /dev
devpts 0 0 0 - /dev/pts
tmpfs 276M 5.0M 271M 2% /run
/dev/sda5 17G 7.1G 8.5G 46% /
securityfs 0 0 0 - /sys/kernel/security
tmpfs 1.4G 260K 1.4G 1% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 1.4G 0 1.4G 0% /sys/fs/cgroup
cgroup 0 0 0 - /sys/fs/cgroup/systemd
pstore 0 0 0 - /sys/fs/pstore
cgroup 0 0 0 - /sys/fs/cgroup/hugetlb
cgroup 0 0 0 - /sys/fs/cgroup/cpuset
cgroup 0 0 0 - /sys/fs/cgroup/pids
cgroup 0 0 0 - /sys/fs/cgroup/freezer
cgroup 0 0 0 - /sys/fs/cgroup/memory
cgroup 0 0 0 - /sys/fs/cgroup/cpu,cpuacct
cgroup 0 0 0 - /sys/fs/cgroup/devices
cgroup 0 0 0 - /sys/fs/cgroup/blkio
cgroup 0 0 0 - /sys/fs/cgroup/net_cls,net_prio
cgroup 0 0 0 - /sys/fs/cgroup/perf_event
systemd-1 - - - - /proc/sys/fs/binfmt_misc
hugetlbfs 0 0 0 - /dev/hugepages
mqueue 0 0 0 - /dev/mqueue
debugfs 0 0 0 - /sys/kernel/debug
fusectl 0 0 0 - /sys/fs/fuse/connections
/dev/sda7 3.0G 1.3G 1.7G 44% /mnt/DOS_E
/dev/sda8 22G 6.1G 15G 30% /mnt/save
binfmt_misc 0 0 0 - /proc/sys/fs/binfmt_misc
tmpfs 276M 44K 276M 1% /run/user/1000
gvfsd-fuse 0.0K 0.0K 0.0K - /run/user/1000/gvfs
janos@acerlinux:~/Desktop$
FC3df -ha
Filesystem Size Used Avail Use% Mounted on
/dev/hdb1 18G 7.0G 11G 41% /
none 0 0 0 - /proc
none 0 0 0 - /sys
none 0 0 0 - /dev/pts
none 506M 0 506M 0% /dev/shm
none 0 0 0 - /proc/bus/usb
none 0 0 0 - /proc/sys/fs/binfmt_misc
none 0 0 0 - /var/named/chroot/proc
FC3ls | grep hp5400.conf
hp5400.conf
FC3ls | grep hp 5550.conf
没有输出。
因此,注意事项:(a)FC3 和 64 位 Ubuntu 笔记本电脑都没有 hp5550.conf 文件,但两台机器的扫描仪都可以工作,(b)而 32 位和 64 位 Ubuntu 都没有安装 usbfs 的扫描仪可以在 64 位 Ubuntu 上工作,但不能在 32 位 Ubuntu 上工作。
有关尝试建议包的附加信息:
janos@AndrasXubuntu:~/Desktop$ sudo dpkg -i libsane-dev_1.0.25+git20150528-1ubuntu2.16.04.1_i386.deb
[sudo] password for janos:
(Reading database ... 196333 files and directories currently installed.)
Preparing to unpack libsane-dev_1.0.25+git20150528-1ubuntu2.16.04.1_i386.deb ...
Unpacking libsane-dev (1.0.25+git20150528-1ubuntu2.16.04.1) over (1.0.25+git20150528-1ubuntu2) ...
dpkg: dependency problems prevent configuration of libsane-dev:
libsane-dev depends on libsane (= 1.0.25+git20150528-1ubuntu2.16.04.1); however:
Version of libsane:i386 on system is 1.0.25+git20150528-1ubuntu2.
dpkg: error processing package libsane-dev (--install):
dependency problems - leaving unconfigured
Processing triggers for doc-base (0.10.7) ...
Processing 1 changed doc-base file...
Processing triggers for man-db (2.7.5-1) ...
Errors were encountered while processing:
libsane-dev
janos@AndrasXubuntu:~/Desktop$ sudo dpkg -i libsane_1.0.25+git20150528-1ubuntu2.16.04.1_i386.deb
[sudo] password for janos:
(Reading database ... 196333 files and directories currently installed.)
Preparing to unpack libsane_1.0.25+git20150528-1ubuntu2.16.04.1_i386.deb ...
Unpacking libsane:i386 (1.0.25+git20150528-1ubuntu2.16.04.1) over (1.0.25+git20150528-1ubuntu2) ...
dpkg: dependency problems prevent configuration of libsane:i386:
libsane:i386 depends on libsane-common (= 1.0.25+git20150528-1ubuntu2.16.04.1); however:
Version of libsane-common on system is 1.0.25+git20150528-1ubuntu2.
dpkg: error processing package libsane:i386 (--install):
dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.23-0ubuntu7) ...
Errors were encountered while processing:
libsane:i386
janos@AndrasXubuntu:~/Desktop$
我没有可用于测试的特定扫描仪,但研究表明特定型号需要使用libsane-dev软件包提供的sane-hp5590 后端才能与 sane 一起运行。安装该软件包应该可以解决您的问题并允许您正常配置。
注意:我可以在这个后端找到的第一个文档表明它最初是为 64 位系统设计的,基于它放置在
/usr/lib64/sane/
32 位版本中的文件,/usr/lib/i386-linux-gnu/sane/
因此它似乎受支持。但是我既不能确认也不能否认这一点,因为我没有可用于测试的硬件。这可能很快就会成为一个争论点,因为越来越清楚的是,32 位支持正在走向灭绝。请参阅此处的故事和已删除的 32 位处理器列表有时扫描仪将由默认情况下未启用的健全后端支持。启用它通常可以使事情正常进行。
通过检查此处确保您的扫描仪受支持。在您的情况下,4500C 被列为完全支持,而 5500C 被列为未经测试。
通过编辑
/etc/sane.d/dll.conf
并取消注释hp5590
或添加该行来启用适当的后端(如果有疑问,请检查您在其他 linux 上的上述文件中的工作配置以获取线索) 完成编辑任务后,保存并关闭文件。继续运行命令
sane-find-scanner
(如果这不起作用,您可能有权限问题,在这种情况下,您可能会得到不同的结果sudo sane-find-scanner
该命令的输出将如下所示:
现在将扫描仪添加到后端配置文件中:
每个理智的后端都有自己的配置文件。
下一步我们需要 sane-find-scanner 的结果。您可以忽略以井号标签开头的所有内容,但重要的部分是这一行:
在 libusb:001:003 找到 USB 扫描仪 (vendor=0x01aa [EXAMPLE], product=0x0001 [EXAMPLE SCANNER])
我们需要将这两个值添加到扫描仪的后端,在本例中为示例后端。为此,请使用以下命令以 root 身份启动 gedit:
gksudo gedit /etc/sane.d/hp5590.conf
(通过检查仔细检查 conf 文件的拼写是否符合您的情况ls /etc/sane.d
)usb
在它之后,我们需要添加一行,其中包含“usb”一词,后跟供应商编号和我们使用 scanimage -L 命令获得的产品编号。该行应类似于以下内容:
usb 0x01aa 0x0001
或在您的情况下usb 03f0:1205
(根据您的lsusb
输出。)编辑:如果一切都失败了,您可以尝试为您的版本推荐的 32 位 libsane-dev 软件包。但是,这是否会成功可能取决于此错误的解决方案,我建议您订阅该错误,以便开发人员可以最好地优先考虑他们的工作。
资料来源:
http://manpages.ubuntu.com/manpages/xenial/man5/sane-hp.5.html
http://www.sane-project.org/man/sane-hp5590.5.html
http://packages.ubuntu.com/xenial/amd64/libsane-dev/filelist
https://help.ubuntu.com/community/SANE%20-%20Installing%20a%20scanner%20that%20isn%27t%20auto-detected
我在 Debian 上使用 HP 扫描仪(HP DeskJet 1050A)时遇到了同样的问题。为我解决的问题是
sudo adduser <user> lp
sudo apt-get install libsane-hpaio
lp
权限)