我对“Brother MFC-660CN 打印机”设置上的符号链接有疑问和困惑
我通过 Brother 网站的安装文件安装了驱动程序
该文件是“linux-1.0-installer-brfax”
安装一切正确,没有错误......
但在/var/log/sys.log或引导出现这个:
FX6300 udevd[412]: unknown key 'SYSFS{idVendor}' in /etc/udev/rules.d/40-brother-libsane-type1.rules:17
FX6300 udevd[412]: invalid rule '/etc/udev/rules.d/40-brother-libsane-type1.rules:17'
在文件中/etc/udev/rules.d/40-brother-libsane-type1.rules我有这个:
> # udev rules sample for Brother MFP
> # version 1.0.0-1
> #
> # Copyright (C) 2012 Brother. Industries, Ltd.
> #
> # copy to /etc/udev/rules.d or /lib/udev/rules.d
> #
>
>
> ACTION!="add", GOTO="brother_mfp_end"
>
> SUBSYSTEM=="usb", GOTO="brother_mfp_udev_1" SUBSYSTEM!="usb_device",
> GOTO="brother_mfp_end" LABEL="brother_mfp_udev_1"
>
>
> SYSFS{idVendor}=="04f9", GOTO="brother_mfp_udev_2"
> ATTRS{idVendor}=="04f9", GOTO="brother_mfp_udev_2"
> GOTO="brother_mfp_end" LABEL="brother_mfp_udev_2"
>
> # ATTRS{bInterfaceNumber}=="01", GOTO="brother_mfp_udev_3"
> # ATTRS{bInterfaceNumber}=="02", GOTO="brother_mfp_udev_3"
> # ATTRS{bInterfaceNumber}=="03", GOTO="brother_mfp_udev_3"
> # GOTO="brother_mfp_end"
> # LABEL="brother_mfp_udev_3"
>
> ATTRS{bInterfaceClass}!="0ff", GOTO="brother_mfp_end"
> ATTRS{bInterfaceSubClass}!="0ff", GOTO="brother_mfp_end"
> ATTRS{bInterfaceProtocol}!="0ff", GOTO="brother_mfp_end"
>
> #MODE="0666"
> #GROUP="scanner" ENV{libsane_matched}="yes"
> #SYMLINK+="scanner-%k"
>
> LABEL="brother_mfp_end"
在文件中/lib/udev/rules.d/40-libsane.rules:
# Kernel < 2.6.22 jumps here
LABEL="libsane_usb_rules_begin"
# Brother scanners
ATTRS{idVendor}=="04f9", ATTRS{idProduct}=="01b0", ENV{libsane_matched}="yes"
# The following rule will disable USB autosuspend for the device
ENV{libsane_matched}=="yes", RUN+="/bin/sh -c 'if test -e /sys/$env{DEVPATH}/power/control; then echo on > /sys/$env{DEVPATH}/power/control; elif test -e /sys/$env{DEVPATH}/power/level; then echo on > /sys/$env{DEVPATH}/power/level; fi'"
LABEL="libsane_usb_rules_end"
当我从终端安装任何东西时我也遇到这个错误:
/sbin/ldconfig.real: /usr/lib/libbrcolm2.so.1 is not a symbolic link
/sbin/ldconfig.real: /usr/lib/libbrscandec2.so.1 is not a symbolic link
当我使用ls -l命令我有这个:
$ ls -l /usr/lib/libbrscandec2.so
-rwxr-xr-x 1 root root 37064 Nov 23 18:21 /usr/lib/libbrscandec2.so
$ ls -l /usr/lib/libbrscandec2.so.1
-rwxr-xr-x 1 root root 37064 Nov 23 18:21 /usr/lib/libbrscandec2.so.1
$ ls -l /usr/lib/libbrscandec2.so.1.0.0
-rwxr-xr-x 1 root root 37064 Nov 23 18:21 /usr/lib/libbrscandec2.so.1.0.0
$ ls -l /usr/lib64/libbrscandec2.so
lrwxrwxrwx 1 root root 29 Dez 2 2009 /usr/lib64/libbrscandec2.so -> /usr/lib64/libbrscandec2.so.1
$ ls -l /usr/lib64/libbrscandec2.so.1
lrwxrwxrwx 1 root root 33 Dez 2 2009 /usr/lib64/libbrscandec2.so.1 -> /usr/lib64/libbrscandec2.so.1.0.0
$ ls -l /usr/lib64/libbrscandec2.so.1.0.0
-rwxr-xr-x 1 root root 37064 Dez 2 2009 /usr/lib64/libbrscandec2.so.1.0.0
$ ls -l /usr/lib/libbrcolm2.so
-rwxr-xr-x 1 root root 15072 Nov 23 18:21 /usr/lib/libbrcolm2.so
$ ls -l /usr/lib/libbrcolm2.so.1
-rwxr-xr-x 1 root root 15072 Nov 23 18:21 /usr/lib/libbrcolm2.so.1
$ ls -l /usr/lib/libbrcolm2.so.1.0.1
-rwxr-xr-x 1 root root 15072 Nov 23 18:21 /usr/lib/libbrcolm2.so.1.0.1
$ ls -l /usr/lib64/libbrcolm2.so
lrwxrwxrwx 1 root root 26 Dez 2 2009 /usr/lib64/libbrcolm2.so -> /usr/lib64/libbrcolm2.so.1
$ ls -l /usr/lib64/libbrcolm2.so.1
lrwxrwxrwx 1 root root 30 Dez 2 2009 /usr/lib64/libbrcolm2.so.1 -> /usr/lib64/libbrcolm2.so.1.0.1
$ ls -l /usr/lib64/libbrcolm2.so.1.0.1
-rwxr-xr-x 1 root root 15072 Dez 2 2009 /usr/lib64/libbrcolm2.so.1.0.1
我不知道我的想法是否正确但是......
在文件夹中:
/usr/lib64/
符号链接来自:
库到库并结束于libbrscandec2.so.1.0.0?
同样适用于libbcolm2库?
据我从其他帖子了解,符号链接位于文件夹之间:
/usr/lib/和/usr/lib64/
还是我的想法错了?这里出了什么问题?
我非常感谢任何对此的帮助。
谢谢。
答案1
解决了我的问题...
我发表评论/etc/udev/rules.d/40-brother-libsane-type1.rules:
#SYSFS{idVendor}=="04f9", GOTO="brother_mfp_udev_2" <<<<< here
ATTRS{idVendor}=="04f9", GOTO="brother_mfp_udev_2"
GOTO="brother_mfp_end" LABEL="brother_mfp_udev_2"
也许是SYSFS{供应商标识}和ATTRS{供应商编号}因为它们是相同的“04f9”?? 只是猜测……
并且 simlink 在/etc/lib/
libbrscandec2.so > libbrscandec2.so.1 > libbrscandec2.so.1.0.0
并libbcolm2库也喜欢库文件
错误不再出现...
效果确实很好...
答案2
升级到 saucy 后,我开始收到相同的 ldconfig 符号链接错误。您可以手动编辑符号链接,如下所示lc1975或者直接删除并重新安装brscan2封装(可用这里)。
libbrscandec2 和 libbrcolm2 均由brscan2deb 来自 Brother,它们是包中的符号链接:
$ dpkg-deb -c brscan2-0.2.5-1.amd64.deb
drwxr-xr-x root/root 0 2009-12-01 20:20 ./
drwxr-xr-x root/root 0 2009-12-01 20:20 ./usr/
drwxr-xr-x root/root 0 2009-12-01 20:20 ./usr/local/
drwxr-xr-x root/root 0 2009-12-01 20:20 ./usr/local/Brother/
drwxr-xr-x root/root 0 2009-12-01 20:20 ./usr/local/Brother/sane/
-rw-r--r-- root/root 1536 2009-12-01 20:20 ./usr/local/Brother/sane/Brsane2.ini
drwxr-xr-x root/root 0 2009-12-01 20:20 ./usr/local/Brother/sane/GrayCmData/
drwxr-xr-x root/root 0 2009-12-01 20:20 ./usr/local/Brother/sane/GrayCmData/AL/
-rw-r--r-- root/root 14940 2009-12-01 20:20 ./usr/local/Brother/sane/GrayCmData/AL/brmsl09f.cm
drwxr-xr-x root/root 0 2009-12-01 20:20 ./usr/local/Brother/sane/GrayCmData/ALL/
-rw-r--r-- root/root 14940 2009-12-01 20:20 ./usr/local/Brother/sane/GrayCmData/ALL/brmsl08f.cm
-rwxr-xr-x root/root 22312 2009-12-01 20:20 ./usr/local/Brother/sane/brsaneconfig2
drwxr-xr-x root/root 0 2009-12-01 20:20 ./usr/local/Brother/sane/models2/
-rw-r--r-- root/root 98 2009-12-01 20:20 ./usr/local/Brother/sane/models2/ext2.ini
-rw-r--r-- root/root 722 2009-12-01 20:20 ./usr/local/Brother/sane/models2/ext1.ini
-rwxr-xr-x root/root 581 2009-12-01 20:20 ./usr/local/Brother/sane/setupSaneScan2
-rw-rw-rw- root/root 1 2009-12-01 20:20 ./usr/local/Brother/sane/brsanenetdevice2.cfg
drwxr-xr-x root/root 0 2009-12-01 20:20 ./usr/lib64/
-rwxr-xr-x root/root 37064 2009-12-01 20:20 ./usr/lib64/libbrscandec2.so.1.0.0
drwxr-xr-x root/root 0 2009-12-01 20:20 ./usr/lib64/sane/
-rwxr-xr-x root/root 112832 2009-12-01 20:20 ./usr/lib64/sane/libsane-brother2.so.1.0.7
-rwxr-xr-x root/root 15072 2009-12-01 20:20 ./usr/lib64/libbrcolm2.so.1.0.1
drwxr-xr-x root/root 0 2009-12-01 20:20 ./usr/bin/
lrwxrwxrwx root/root 0 2009-12-01 20:20 ./usr/lib64/libbrcolm2.so -> /usr/lib64/libbrcolm2.so.1
lrwxrwxrwx root/root 0 2009-12-01 20:20 ./usr/lib64/libbrscandec2.so.1 -> /usr/lib64/libbrscandec2.so.1.0.0
lrwxrwxrwx root/root 0 2009-12-01 20:20 ./usr/lib64/libbrscandec2.so -> /usr/lib64/libbrscandec2.so.1
lrwxrwxrwx root/root 0 2009-12-01 20:20 ./usr/lib64/libbrcolm2.so.1 -> /usr/lib64/libbrcolm2.so.1.0.1
lrwxrwxrwx root/root 0 2009-12-01 20:20 ./usr/lib64/sane/libsane-brother2.so.1 -> /usr/lib64/sane/libsane-brother2.so.1.0.7
lrwxrwxrwx root/root 0 2009-12-01 20:20 ./usr/lib64/sane/libsane-brother2.so -> /usr/lib64/sane/libsane-brother2.so.1
lrwxrwxrwx root/root 0 2009-12-01 20:20 ./usr/bin/brsaneconfig2 -> /usr/local/Brother/sane/brsaneconfig2