虽然安装了驱动程序,但兄弟扫描仪无法在Ubuntu 16.04中运行
我正在运行Ubuntu 16.04和兄弟DCP-375CW,一台打印机和扫描仪。 我下载了驱动程序并使用了兄弟的驱动程序安装工具。
结果就是:系统说安装了驱动程序。 打印机实际上正在工作。 但是Simple Scan拒绝识别驱动程序,xsane甚至无法识别扫描仪。 我尝试了一些我在互联网上找到的说明,但其中大多数似乎都是针对较旧的Ubuntu版本。
我担心Ubuntu 16.04会有所不同。
$ dpkg -l | grep -i Brother ii brother-cups-wrapper-common 1.0.0-10-0ubuntu6 amd64 Common files for Brother cups wrapper packages ii brother-udev-rule-type1 1.0.0-1 all Brother udev rule type 1 ii brscan-skey 0.2.4-1 amd64 Brother Linux scanner S-KEY tool ii brscan3 0.2.13-1 amd64 Brother Scanner Driver ii dcp375cwcupswrapper:i386 1.1.3-1 i386 Brother CUPS Inkjet Printer Definitions ii dcp375cwlpr:i386 1.1.3-1 i386 Brother lpr Inkjet Printer Definitions ii printer-driver-brlaser 3-3build1 amd64 printer driver for (some) Brother laser printers ii printer-driver-ptouch 1.4-1 amd64 printer driver Brother P-touch label printers
我只需要做这一步(前面提到过,但答案还包括其他步骤)。 我有一台兄弟DCP-L2500D,我运行Ubuntu 16.04。
打开此文件
sudo gedit -H /lib/udev/rules.d/60-libsane.rules
在行# The following rule will disable USB autosuspend for the device
之前# The following rule will disable USB autosuspend for the device
添加到文件中# The following rule will disable USB autosuspend for the device
# Brother scanners ATTRS{idVendor}=="04f9", ENV{libsane_matched}="yes"`
重启(这是两步:-))
我在dcp-135c和Ubuntu 16.04(从14.04升级)时遇到了类似的问题。
我的解决方案如下:
-
正常安装来自兄弟网站的所有驱动程序
-
打开此文件:
sudo nano /lib/udev/rules.d/40-libsane.rules
添加到文件中,就在“ #以下规则将禁用设备的USB自动挂起 ”行之前# Brother scanners ATTRS{idVendor}=="04f9", ENV{libsane_matched}="yes"`
-
将所有文件从
/usr/lib64
复制到/usr/lib
sudo cp /usr/lib64/* /usr/lib
-
将所有文件从
/usr/lib64/sane
复制到/usr/lib/x86_64-linux-gnu/sane
sudo cp /usr/lib64/sane/* /usr/lib/x86_64-linux-gnu/sane
其他人不得不将步骤4中的文件复制到/usr/lib/sane
,这可能取决于你是否升级到ubuntu 16.04或进行全新安装。
我在Ubuntu论坛上的这个post中找到了这个解决方案。
我的MFC-7840W遇到了同样的问题,但我终于成功了。
这是我的笔记:
-
根据您的型号安装brscan3或其他brscan变体 :
sudo dpkg -i brscan3-0.2.11-5.amd64.deb
-
安装
brscan-skey
sudo dpkg -i brscan-skey-0.2.4-1.amd64.deb
-
运行
brscan-skey
$ brscan-skey $ brscan-skey -l MFC-7840W : brother3:net1;dev0 : 192.168.1.10 Active
-
设置扫描仪
sudo brsaneconfig3 -a name=MFC-7840W model=MFC-7840W ip=192.168.1.10
-
确认它有效,查找此输出:
$ brsaneconfig3 -q Devices on network 0 MFC-7840W "MFC-7840W" I:192.168.1.10
-
必要时制作缺少的符号链接
sudo mkdir /usr/lib/sane sudo ln -s /usr/lib64/sane/libsane-brother3.so /usr/lib/sane/libsane-brother3.so sudo ln -s /usr/lib64/sane/libsane-brother3.so.1 /usr/lib/sane/libsane-brother3.so.1 sudo ln -s /usr/lib64/sane/libsane-brother3.so.1.0.7 /usr/lib/sane/libsane-brother3.so.1.0.7 sudo ln -s /usr/lib64/libbrscandec3.so /usr/lib/libbrscandec3.so sudo ln -s /usr/lib64/libbrscandec3.so.1 /usr/lib/libbrscandec3.so.1 sudo ln -s /usr/lib64/libbrscandec3.so.1.0.0 /usr/lib/libbrscandec3.so.1.0.0
-
确认
scanimage -L
有效$ scanimage -L device `brother3:net1;dev0' is a Brother MFC-7840W MFC-7840W
-
安装
gscan2pdf
- 使用
gscan2pdf
测试扫描仪
FWIW我刚刚失去了几个小时的MFC-J470DW兄弟扫描仪(在Ubuntu 16.04上)。 最后我注意到兄弟3-01-2017发布了一个新的司机帖! 我安装了它并配置了IP地址,我很高兴。
在support.brother.com上工作的驱动程序
在Linux Mint 17上运行Brother DCP7030
以root身份运行simple-scan:
sudo simple-scan
如果它有效,那么这是一个特权问题。 要解决,请从Brother网站下载udev
规则(扫描仪设置文件) 。
然后:
sudo dpkg -i brother-udev-rule-type1-1.0.0-1.all.deb
并重新启动计算机
有人链接到Brother网站上的deb udev文件,但下载的按钮被破坏,所以这里有直接链接:
http://www.brother.com/pub/bsc/linux/dlf/brother-udev-rule-type1-1.0.0-1.all.deb “
打开终端窗口并输入: sudo apt-get install sane
。 SANE =扫描仪访问现在很容易。 它是一个直接在硬件级别访问扫描仪的通用程序,它不需要任何驱动程序。 是的,我知道sane
应该自动安装为xsane
依赖,但我已经看到由于某种原因它丢失的情况。 xsane只是一个理智的图形界面。
或者,您可以安装gscan2pdf: sudo apt-get install gscan2pdf
。
兄弟更新软件2017年12月25日。
因此,大多数(如果不是全部)2018年3月20日之前发布的答案都已过时。
根据这个答案: 如何让Brother DCP-350C扫描仪工作? 有以下更新:
$ dpkg -l | grep -i brother ii brother-udev-rule-type1 1.0.2 all Brother udev rule type 1 ii brscan-skey 0.2.4-1 amd64 Brother Linux scanner S-KEY tool ii brscan4 0.4.4-3 amd64 Brother Scanner Driver ii printer-driver-brlaser 3-5~ubuntu1 amd64 printer driver for (some) Brother laser printers ii printer-driver-ptouch 1.4-1 amd64 printer driver Brother P-touch label printers
以及针对特定打印机型号的其他驱动程序
特别感兴趣的是许多答案中讨论的udev
规则已经更新并且工作正常。
另外, brscan4
而不是brscan2
或brscan3
是大多数扫描仪的首选驱动程序。
在2017年12月25日更新之前,兄弟似乎已经放弃了Linux支持,但现在根据上面的链接答案,一切似乎都完美无缺。
请注意,仍然有一些旧的兄弟网站可能有点误导。 如果你忽略它们,只需按照链接中的说明操作就可以了。
如果没有,请在链接答案上发表评论。
我在Ubuntu 16.04 64位上使用Brother DCP-135C扫描仪时遇到问题,安装兄弟网站上提到的驱动程序后未检测到它。
以下说明解决了该问题
sudo cp /usr/lib64/* /usr/lib sudo mkdir /usr/lib/x86_64-linux-gnu/sane sudo cp /usr/lib64/sane/* /usr/lib/x86_64-linux-gnu/sane
在此之前,我没有成功尝试:
cp 60-libsane.rules 40-libsane.rules
并添加了编辑此文件…
sudo gedit /lib/udev/rules.d/40-libsane.rules # Brother scanners ATTRS{idVendor}=="04f9", ATTRS{idProduct}=="01ce", ENV{libsane_matched}="yes"
之前
# The following rule will disable USB autosuspend for the device
和60-libsane.rules
相同
sudo gedit /lib/udev/rules.d/60-libsane.rules
如果您可以ping您的打印机的IP地址(例如, 10.42.0.222
),那么这是一个好兆头。
旧问题可能是配置文件不知道在哪里找到扫描仪。
试试这个:
sudo -H gedit /etc/sane.d/epkowa.conf
寻找这样的东西(在第53行附近或之后):
Ask your network administrator for the device's IP address or check # for yourself on the panel (if it has one). The port-number is very # optional and defaults to 1865. # Note that network attached devices are not queried unless configured # in this file. # # Examples: # #net 192.16.136.2 1865 #net scanner.mydomain.com
在192.16.136.2 1865
行下添加您的扫描仪/打印机的IP地址,如下所示:
#net 192.16.136.2 1865 net 10.42.0.212 #net scanner.mydomain.com
我对Ubuntu升级的体验并不是很好。 在2015年和2016年,我下载并在CD上写了最新的发行版并尝试从CD升级。 这些尝试崩溃并需要从同一张CD进行全新安装,但这需要重新安装或重新配置用户帐户等项目以及最差的所有Brother打印机/扫描仪。
对于Ubuntu 17.04,我通过终端升级,这很有效 – 甚至兄弟打印机/扫描仪在升级后幸免于难。
sudo apt-get update sudo apt-get upgrade
在2017年10月,我遵循相同的路线,但兄弟扫描仪升级后无法工作。
我按照旧的说明如何重新安装Brother打印机/扫描仪的驱动程序/设置,在我的型号为DCP-J315W的情况下。 我的笔记涵盖了以下步骤:
-
使用该工具下载Brother打印机驱动程序。(
linux-brprinter-installer-*.*.*-*.gz
)该工具将下载到默认的
Downloads
目录中。 (目录位置因Linux发行版而异。)例如/home/(LoginName)/Downloads
打开终端窗口,然后转到最后一步中下载文件的目录。
Ctrl + Alt + T (打开终端窗口)
cd ~/Downloads
(Ubuntu区分大小写,因此使用命令
dir
或ls
来检查目录名称)输入命令以解压缩下载的文件:
gunzip linux-brprinter-installer-*.*.*-*.gz
或者如有必要
sudo gunzip linux-brprinter-installer-*.*.*-*.gz
运行该工具(如果需要,使用
sudo
):bash linux-brprinter-installer-*.*.*-* Brother machine name
驱动程序安装将开始。 按照安装屏幕说明进行操作
当您看到该消息时
你会指定DeviceURI吗?
- 对于USB用户:选择N(否)
- 对于网络用户:选择Y(是)和DeviceURI编号。 安装过程可能需要一些时间。 请等到它完成。
扫描仪解决方案:
不幸的是,Brother扫描仪似乎还有其他问题,扫描仪型号和需要运行的BRSCAN版本可能会有所不同。 Brother.com有这个文件的4个版本。 每个文件涵盖不同的Brother扫描仪型号。
我尝试了以下与以前版本的Ubuntu一起使用的步骤:
-
打开文件:
sudo nano /lib/udev/rules.d/40-libsane.rules
并在“#以下规则将禁用设备的USB自动挂起”行之前添加以下行# Brother scanners ATTRS{idVendor}=="04f9", ENV{libsane_matched}="yes"
使用Gedit和
sudo
不再适用于Ubuntu 17.10,但nano
工作正常。Ctrl + O将编辑内容写入文件。
-
将所有文件从
/usr/lib64
复制到/usr/lib
sudo cp /usr/lib64/* /usr/lib
在这个阶段,我在网络搜索这个问题上浪费了几个小时后感到绝望。 上述步骤过去一直有效,在升级过程中不应该是必要的。 然后我遇到了一个适用于Ubuntu 17.10的新步骤,这让我觉得Ubuntu中有一个新的错误:
-
将所有文件从
/usr/lib64/sane
复制到/usr/lib/x86_64-linux-gnu/sane
sudo cp /usr/lib64/sane/* /usr/lib/x86_64-linux-gnu/sane
这个新命令包括符号
其他人不得不将步骤4中的文件复制到
/usr/lib/sane
,这可能取决于你是否升级到Ubuntu 16.04或进行全新安装。我不需要为Ubuntu 17.10做这个。
注意:与此问题相关的其他说明,网站或命令包括:
Brother支持:如果您愿意,可以在他们的网站上关注Brother安装过程。
在Ubuntu 16.04中,名为40-libsane.rules的文件可能已更改为60-libsane.rules但在17.10中已恢复为40-libsane.rules。 在16.04,我确保两个名字都存在,并包括Brother Scanner编辑。
以下终端命令可用于识别系统上的扫描仪:
sane-find-scanner
这通常会看到扫描仪,但如果Scanimage没有看到它,那么你仍然有问题:
scanimage -L
以下命令列出已安装的Brother设备:
dpkg -l | grep Brother
在全新安装时,您可能需要重新安装Sane:
sudo apt-get install sane sudo apt-get install libsane-extras
通过将saned添加到拥有扫描仪设备的组来检查权限是否正确:
sudo adduser saned scanner
注意:在Ubuntu 17.10下,您不能再以超级用户身份运行GUI进程,例如Sane,Simple-scan。 我在这个街区周围乱砍,但它没有帮助让扫描仪工作,所以浪费了更多的时间。
做完一切之后,我在各种论坛和博客上看到了扫描仪的工作原理,修复了安装EXTRA理智后端的问题! 安装它们并没有什么坏处,对我来说这是解决方案!
背景:我在Mint 17.3(Ubuntu 14.04)和Kubuntu 16.10 64位上安装了DSP-J562DW,也有WiFi。