Ubuntu 20.04 下的 Epson 扫描仪

Ubuntu 20.04 下的 Epson 扫描仪

我的意思是在 Ubuntu 20.04 下安装扫描仪 Epson 3170 Photo。我在底部发布了我在检查我的电脑是否找到扫描仪之前采取的(常规)安装步骤。

然后,sane-find-scanner找到扫描仪

$ sudo 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=0x06cb, product=0x009a) at libusb:001:005
found USB scanner (vendor=0x04b8 [EPSON], product=0x0116 [EPSON Scanner]) at libusb:001:009
  # 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.

笔记:没有sudo我收到错误消息

could not open USB device 0x1d6b/0x0003 at 002:001: Access denied (insufficient permissions)
...

我打算稍后修复这个问题,如果我设法克服了以下问题,除非这是问题的一部分,但我想不是)。

然后scanimage没有找到扫描仪

$ sudo scanimage -L

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).

因此我编辑了/etc/sane.d/dll.conf,添加了epkowa(它未列出),并评论epson2epson已被评论。页面SANE:外部后端(驱动程序)提到 3170 受支持epkowa(“需要 DFSG 非免费 iscan-plugin-gt-9400 海外版本的 GT-9400UF”)。

所以我尝试安装iscan-plugin-gt-9400。它仅作为 提供rpm,而不是deb。在查找相关信息时,我发现[已解决] EPSON USB 扫描仪图像扫描安装成功Ubuntu Feisty 上的 Epson Perfection 3170 照片扫描仪(又名 GT-9400)完成转换rpm->deb并安装它们(实际上是两个包)是让 3170 正常工作的唯一方法。我不确定从这些帖子发布之日起这种情况是否发生了变化,但我决定尝试一下。

遵循上述说明,此外:

  1. 在文件中使用Architecture: i386 amd64而不是(否则 会引发错误)。Architecture: i386, amd64debian/controldpkg-gencontrol: error: 'i386,' is not a legal architecture in list 'i386, amd64'

  2. export LD_LIBRARY_PATH="/usr/lib/x86_64-linux-gnu" 由于我遇到了几个错误,所以正在执行

    $ fakeroot debian/rules binary
    ...
    dpkg-shlibdeps: error: cannot find library libjpeg.so.62 needed by debian/iscan/usr/lib/sane/libsane-epkowa.so.1.0.15 (ELF format: 'elf32-i386' abi: '0101000300000000'; RPATH: '')
    ...
    dpkg-shlibdeps: error: cannot continue due to the errors listed above
    Note: libraries are not searched in other binary packages that do not have any shlibs or symbols file.
    To help dpkg-shlibdeps find private libraries, you might need to use -l.
    dh_shlibdeps: error: dpkg-shlibdeps -Tdebian/iscan.substvars debian/iscan/usr/lib/sane/libsane-epkowa.so.1.0.15 debian/iscan/usr/lib/libesmod.so.1.1.0 debian/iscan/usr/bin/iscan returned exit code 2
    dh_shlibdeps: error: Aborting due to earlier error
    make: [debian/rules:27: binary-arch] Error 2 (ignored)
    ...
    

我设法创建了iscan_2.10.0-2_amd64.deb(是否应该得到2.10.0-2而不是2.10.0-1?)和iscan-plugin-gt-9400_1.0.0-2_amd64.deb

然后我安装了两个包

$ sudo gdebi iscan_2.10.0-2_amd64.deb
$ sudo gdebi iscan-plugin-gt-9400_1.0.0-2_amd64.deb 

(我在这里覆盖了我之前创建的/etc/sane.d/epkowa.conf)。

然后我插上扫描仪并打开它。 我得到了错误

$ iscan
iscan: error while loading shared libraries: libjpeg.so.62: wrong ELF class: ELFCLASS64

我该如何让扫描仪工作呢? (我预计一旦这个问题解决,在它正常工作之前会遇到一些障碍)


我做了什么:

  1. sudo apt-get install sane sane-utils libsane xsane

  2. 下载imagescan-bundle-ubuntu-19.10-3.62.0.x64.deb.tar.gz

  3. imagescan-bundle-ubuntu-19.10-3.62.0.x64.deb展开执行上方和内部的存档./install.sh

  4. 将自己添加至群组lpsudo adduser $USER lp

  5. 重启

  6. 核实

    $ groups
    user1 adm lp cdrom sudo dip plugdev lpadmin lxd sambashare vboxusers
    
  7. 将扫描仪插入 USB 并打开。

有关的

  1. https://alicious.com/iscan-linux-networked-epson/
  2. https://wiki.archlinux.org/index.php/SANE/Scanner-specific_problems#Epson
  3. 运行 epson 扫描仪 perfection 3170
  4. 安装 Epson Linux 扫描仪驱动程序(适用于 v550)时出现语法错误
  5. https://bbs.archlinux.org/viewtopic.php?id=182346
  6. 适用于 Ubuntu 16.04 的 Epson L210 扫描仪现已运行
  7. https://exain.wordpress.com/tag/epkowa/
  8. http://fbcorner.tuxfamily.org/linux.html
  9. https://forums.linuxmint.com/viewtopic.php?t=279318
  10. 如何安装EPSON l210扫描仪
  11. 简单扫描无法找到扫描仪
  12. https://gist.github.com/unfulvio/e8daa0a78482a03e0358b0f5afee8b03
  13. https://linux.die.net/man/7/sane
  14. 简单扫描未检测到扫描仪
  15. https://community.clearlinux.org/t/scanner-not-recognized-part-2/1719
  16. http://manpages.ubuntu.com/manpages/bionic/man5/sane-epson2.5.html
  17. http://www.subdude-site.com/WebPages_Local/RefInfo/Computer/Linux/ScannerHowTo/Scanner_HowTo_forEpson.htm
  18. https://www.gsp.com/cgi-bin/man.cgi?section=5&topic=sane-epkowa

答案1

就像其他人一样,在安装 Epson Imagescan 驱动程序后,我可以让 Ubuntu 20.04 找到我的扫描仪(在我的情况下是通过 USB 连接的 Epson V370),但实际上无法连接到扫描仪并使用它。

我尝试了各种方法,最后我偶然发现了 Epson 的另一个驱动程序包,名为 Epson Scan 2(见http://support.epson.net/linux/en/epsonscan2.php)。安装该程序后,Simple Scan 突然就可以使用扫描仪了。

答案2

我遇到了同样的问题,但略有不同爱普生 3490:升级到 Ubuntu 20.04检测到了,但未扫描。最终解决方案非常简单 - 见下文。

我原来的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=0x04b8 [EPSON], product=0x0122 [EPSON Scanner]) at libusb:001:008

  # 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.

scanimage -L输出:

device `snapscan:libusb:001:008' is a EPSON EPSON Scanner flatbed scanner

扫描仪甚至可以通过 GUI 扫描工具找到,但它们报告了类似的错误could not connect to the scanner

经过一番研究,结果发现扫描仪支持快照扫描司机理智的, 只是固件文件丢失

这是我安装固件的方式:

  1. 从 Epson 官方支持页面下载适用于扫描仪的 Linux 驱动程序包。就我而言,我搜索的是Epson 3490Linux 驱动程序。该包名为iscan-plugin-gt-f520-1.0.0-1.c2.i386.rpm。下载前必须接受许可条件。

  2. 安装转速sudo apt install rpm

  3. 从 Epson 包中提取文件:rpm2cpio iscan-plugin-gt-f520-1.0.0-1.c2.i386.rpm >epson.cpio

  4. 从新创建的固件文件中提取固件文件epson.cpio。固件文件位于/usr/share/iscan/esfw52.bin

  5. 将固件文件复制到系统位置:sudo mkdir /usr/share/sane/snapscan ; sudo cp esfw52.bin /usr/share/sane/snapscan ; sudo chown root:root /usr/share/sane/snapscan/esfw52.bin

  6. 配置固件路径snapscan.confsudo vi /etc/sane.d/snapscan.conf

在配置文件顶部输入路径。就我而言:

# Change to the fully qualified filename of your firmware file, if
# firmware upload is needed by the scanner
firmware /usr/share/sane/snapscan/esfw52.bin

此后扫描仪就可以工作了。

答案3

Epson 提供的部分(甚至全部)Linux 安装包目前会创建无效的udev规则。结果,根本没有安装任何规则。这意味着您只能以 root 身份访问扫描仪 - 您不应该这样做。

这个答案解释了如何安装等效的udev自己统治。

答案4

该问题可能与不当的权限有关。

就您而言,您已经通过运行以下命令找到了扫描仪sudo sane-find-scanner

found USB scanner (vendor=0x04b8 [EPSON], product=0x0116 [EPSON Scanner]) at libusb:001:009

(记下 中的值sane-find-scanner,稍后您将需要这些值)

现在您有此信息,请运行以下命令来检查权限:

sudo ls -l /dev/bus/usb/001/009

就我而言,权限如下:

0 crw-rw-r--   1 root     root     189, 386 Jun 25 06:34 ./001/009

这表明只有 root 用户和 root 组中的用户具有读写权限。其他所有用户都具有只读权限。

解决方案是运行:

sudo chmod 0666 /dev/bus/usb/001/009

这赋予每个人对该设备的读写权限。

然后再次运行ls命令:

sudo ls -l /dev/bus/usb/001/009

输出应该验证权限已经改变:

crw-rw-rw- 1 root root 189, 386 Jun 25 07:29 /dev/bus/usb/001/009

现在扫描仪应该可供所有用户使用,而不仅仅是根用户。

相关内容