UPDATE: On a freshly installed Bionic (minimal install) system I also
had to install libusb-0.1-4


This procedure worked for me to get a Brother DCP-7020 scanner working in 
Ubuntu 18.04 Bionic.

For this procedure the user is "bob"

1) Install the latest brscan2 package (I have brscan2-0.2.5-1.amd64.deb
which I downloaded in 2014)

2) Manually link the drivers brscan2 installed into /usr/lib/x86_64
-linux-gnu/sane/ and /usr/lib/x86_64-linux-gnu/

[Note that in /usr/lib64/sane/ BOTH libsane-brother2.so and
libsane.brother2.so.1 both link to libsane-brother2.so.1.0.7 so the
others could all link to that one file but this is easier.]

  bob:~$ cd /usr/lib/x86_64-linux-gnu/sane

  $ sudo ln -sf /usr/lib64/sane/libsane-brother2.so
  $ sudo ln -sf /usr/lib64/sane/libsane-brother2.so.1
  $ sudo ln -sf /usr/lib64/sane/libsane-brother2.so.1.0.7

  bob:/usr/lib/x86_64-linux-gnu/sane$ cd ..

(now in directory /usr/lib/x86_64-linux-gnu/ )

  $ sudo ln -sf /usr/lib64/libbrcolm2.so
  $ sudo ln -sf /usr/lib64/libbrcolm2.so.1
  $ sudo ln -sf /usr/lib64/libbrcolm2.so.1.0.1
  $ sudo ln -sf /usr/lib64/libbrscandec2.so
  $ sudo ln -sf /usr/lib64/libbrscandec2.so.1
  $ sudo ln -sf /usr/lib64/libbrscandec2.so.1.0.0

3) Install this libusb library (if it's missing)

  $ sudo apt install libusb-0.1-4

4) At this point scanimage -L should detect the scanner when run as
root.

  $ sudo scanimage -L

4a) If it doesn't work and especially if you're running something other
than Ubuntu Bionic, you might make verify SANE is looking in the right
directory using the debug flag and see where it's not finding the pieces
it needs

  $ SANE_DEBUG_DLL=128 scanimage -L

5) Create a udev file so the scanner is accessible to a scanner group

  $ sudo gedit /lib/udev/rules.d/96-brother-scanner.rules

   -- with the following contents:

# Brother DCP-7020 scanner
SUBSYSTEMS=="usb" \
, ATTRS{idVendor}=="04f9" \
, ATTRS{idProduct}=="0183" \
, ACTION=="add", \
, MODE="0664", \
, GROUP="scanner" \
, ENV{libsane_matched}="yes"

# note this udev instruction ends lines with \
# backslash so the single comma-separated
# udev command is not crammed onto one line.
# END OF FILE

6) Add the user bob to the scanner group (as specified in the udev file
above):

  $ sudo adduser bob scanner

7) If you're bob and you weren't already in the group you'll have to log
out and back in, or reboot the system. To reload udev:

  $ sudo udevadm control --reload-rules

--> Everything should work after you reboot / login / reload. Yay.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/701856

Title:
  Brother's printer/scanner drivers awkward to find and install

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/701856/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to