Maui Forums

Full Version: [Unsolvable] - Brother MFC-7220; Printer works, Scanner Doesn't.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi

I am beginning to suspect this is possibly a problem with the Brother drivers, not Maui [given the identical problem plagued me before Maui in Mint 17/17.1/17.2/17.3 KDE4], but i thought i'd ask here before i just give up.

Per the subject line, today after performing the Brother setup [see below] in my Tower's Maui 17.03, my MFC-7220 prints just fine, but the Scanner fails [also see below].

Here's what i did [sort of a compendium of advice on the Brother site, + a couple of other sites]:

Installed the necessary 32bit libraries:
Code:
kdemeoz@GA-Z97-HD3:~/Downloads/linux-brprinter-installer-2.1.1-1$ sudo apt install ia32-libs
Reading package lists... Done
Building dependency tree        
Reading state information... Done
Package ia32-libs is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
 lib32ncurses5 lib32z1
E: Package 'ia32-libs' has no installation candidate


kdemeoz@GA-Z97-HD3:~/Downloads/linux-brprinter-installer-2.1.1-1$ sudo apt install lib32ncurses5 lib32z1
Reading package lists... Done
Building dependency tree        
Reading state information... Done
The following additional packages will be installed:
 lib32tinfo5
The following NEW packages will be installed
 lib32ncurses5 lib32tinfo5 lib32z1
0 to upgrade, 3 to newly install, 0 to remove and 1 not to upgrade.
Need to get 229 kB of archives.
After this operation, 905 kB of additional disk space will be used.
Do you want to continue? [Y/n]  
Get:1 http://archive.ubuntu.com/ubuntu xenial/main amd64 lib32tinfo5 amd64 6.0+20160213-1ubuntu1 [76.9 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial/main amd64 lib32ncurses5 amd64 6.0+20160213-1ubuntu1 [99.5 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial/main amd64 lib32z1 amd64 1:1.2.8.dfsg-2ubuntu4 [52.2 kB]
Fetched 229 kB in 3s (74.3 kB/s)    
Selecting previously unselected package lib32tinfo5.
(Reading database ... 380371 files and directories currently installed.)
Preparing to unpack .../lib32tinfo5_6.0+20160213-1ubuntu1_amd64.deb ...
Unpacking lib32tinfo5 (6.0+20160213-1ubuntu1) ...
Selecting previously unselected package lib32ncurses5.
Preparing to unpack .../lib32ncurses5_6.0+20160213-1ubuntu1_amd64.deb ...
Unpacking lib32ncurses5 (6.0+20160213-1ubuntu1) ...
Selecting previously unselected package lib32z1.
Preparing to unpack .../lib32z1_1%3a1.2.8.dfsg-2ubuntu4_amd64.deb ...
Unpacking lib32z1 (1:1.2.8.dfsg-2ubuntu4) ...
Processing triggers for libc-bin (2.23-0ubuntu5) ...
/sbin/ldconfig.real: /usr/lib/libbrscandec2.so.1 is not a symbolic link
/sbin/ldconfig.real: /usr/lib/libbrcolm2.so.1 is not a symbolic link
Setting up lib32tinfo5 (6.0+20160213-1ubuntu1) ...
Setting up lib32ncurses5 (6.0+20160213-1ubuntu1) ...
Setting up lib32z1 (1:1.2.8.dfsg-2ubuntu4) ...
Processing triggers for libc-bin (2.23-0ubuntu5) ...
/sbin/ldconfig.real: /usr/lib/libbrscandec2.so.1 is not a symbolic link
/sbin/ldconfig.real: /usr/lib/libbrcolm2.so.1 is not a symbolic link
kdemeoz@GA-Z97-HD3:~/Downloads/linux-brprinter-installer-2.1.1-1$

Install the actual Brother stuff:
Code:
kdemeoz@GA-Z97-HD3:~/Downloads/linux-brprinter-installer-2.1.1-1$ sudo ./linux-brprinter-installer-2.1.1-1  
[sudo] password for kdemeoz:  
Input model name ->MFC-7220

You are going to install following packages.
  brmfc7220lpr-2.0.1-1.i386.deb
  cupswrapperMFC7220-2.0.1-2.i386.deb
  brscan2-0.2.5-1.amd64.deb
  brscan-skey-0.2.4-1.amd64.deb
OK? [y/N] ->y

Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]                                             
Hit:2 http://archive.ubuntu.com/ubuntu xenial InRelease                                                                
Hit:3 http://ppa.launchpad.net/claydoh/kmymoney2-kde4/ubuntu xenial InRelease                                          
Hit:4 http://ds9-maui.s3-website.eu-central-1.amazonaws.com/maui-xenial-backports xenial InRelease                     
Hit:5 http://archive.canonical.com/ubuntu xenial InRelease                                                             
Get:6 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]                                               
Hit:7 http://ppa.launchpad.net/giuspen/ppa/ubuntu xenial InRelease                                                     
Hit:8 http://ds9-maui.s3-website.eu-central-1.amazonaws.com/maui-xenial-backports-neon xenial InRelease                
Hit:9 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu xenial InRelease                                            
Hit:10 http://ds9-maui.s3-website.eu-central-1.amazonaws.com/maui-1703 xenial InRelease                                
Hit:11 http://ppa.launchpad.net/jtaylor/keepass/ubuntu xenial InRelease                                                
Hit:12 http://ds9-maui.s3-website.eu-central-1.amazonaws.com/maui-1703-neon xenial InRelease                           
Ign:13 http://repo.vivaldi.com/snapshot/deb stable InRelease                                                           
Hit:14 http://repo.vivaldi.com/snapshot/deb stable Release                                                  
Hit:16 http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu xenial InRelease         
Hit:17 http://ppa.launchpad.net/plasmazilla/releases/ubuntu xenial InRelease          
Hit:18 http://ppa.launchpad.net/teejee2008/ppa/ubuntu xenial InRelease                
Hit:19 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu xenial InRelease              
Get:20 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Fetched 306 kB in 5s (60.4 kB/s)     
Reading package lists... Done
Reading package lists... Done
Building dependency tree        
Reading state information... Done
Package ia32-libs is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
 lib32ncurses5 lib32z1

E: Package 'ia32-libs' has no installation candidate
dpkg -x brmfc7220lpr-2.0.1-1.i386.deb /
dpkg -x cupswrapperMFC7220-2.0.1-2.i386.deb /
dpkg-deb: building package 'brmfc7220lpr' in 'brmfc7220lpr-2.0.1-1a.i386.deb'.
dpkg -b ./brother_driver_packdir brmfc7220lpr-2.0.1-1a.i386.deb
dpkg-deb: building package 'cupswrappermfc7220' in 'cupswrapperMFC7220-2.0.1-2a.i386.deb'.
dpkg -b ./brother_driver_packdir cupswrapperMFC7220-2.0.1-2a.i386.deb
dpkg -i --force-all brmfc7220lpr-2.0.1-1a.i386.deb
Selecting previously unselected package brmfc7220lpr:i386.                                                              
(Reading database ... 380359 files and directories currently installed.)
Preparing to unpack brmfc7220lpr-2.0.1-1a.i386.deb ...
Unpacking brmfc7220lpr:i386 (2.0.1-1) ...
Setting up brmfc7220lpr:i386 (2.0.1-1) ...
dpkg -i --force-all cupswrapperMFC7220-2.0.1-2a.i386.deb
Selecting previously unselected package cupswrappermfc7220:i386.                                                        
(Reading database ... 380375 files and directories currently installed.)
Preparing to unpack cupswrapperMFC7220-2.0.1-2a.i386.deb ...
Unpacking cupswrappermfc7220:i386 (2.0.1-2) ...
Setting up cupswrappermfc7220:i386 (2.0.1-2) ...
Restarting cups (via systemctl): cups.service.
#
ln -s /usr/lib/libbrcomplpr2.so /usr/lib32/libbrcomplpr2.so
Will you specify the Device URI? [Y/n] ->
                                                                                                                       

0: beh                                                                                                                  
1: ipp14                                                                                                                
2: https                                                                                                                
3: ipps                                                                                                                 
4: http                                                                                                                 
5: smb                                                                                                                  
6: ipp                                                                                                                  
7: socket                                                                                                               
8: serial:/dev/ttyS0?baud=115200                                                                                        
9: lpd                                                                                                                  
10: usb://Brother/MFC-7220?serial=000E7J793366                                                                          
11: hp                                                                                                                  
12: parallel:/dev/lp0                                                                                                   
13: hpfax                                                                                                               
14 (I): Specify IP address.                                                                                             
15 (A): Auto. (usb://Brother/MFC-7220?serial=000E7J793366)                                                              
                                                                                                                       
select the number of destination Device URI. ->10
                                                                                                                       
lpadmin -p MFC7220 -v usb://Brother/MFC-7220?serial=000E7J793366 -E
Test Print? [y/N] ->y                                                                                                   
                                                                                                                       
wait 5s.
lpr -P MFC7220 /usr/share/cups/data/testprint
You are going to install following packages.
  brscan2-0.2.5-1.amd64.deb

This Agreement provides terms and conditions for license grant for use of the software that is distributed with this Ag
reement ("Software") from Brother Industries, Ltd. ("Brother") to recipients thereof ("You").                           
                                                                                                                       
Note:                                                                                                                   
Please click on "I Accept" while holding down "Shift" or right click on "I Accept" and select "Save Target As,,," from
                                        <<snip>> .                                       
Do you agree? [Y/n] ->                                                                                                  
                                                                                                                       
wget -T 10 -nd --no-cache http://www.brother.com/pub/bsc/linux/packages/brscan2-0.2.5-1.amd64.deb
--2017-03-20 17:28:12--  http://www.brother.com/pub/bsc/linux/packages/brscan2-0.2.5-1.amd64.deb
Resolving www.brother.com (www.brother.com)... 59.86.162.41, 59.86.162.42
Connecting to www.brother.com (www.brother.com)|59.86.162.41|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 82566 (81K) [text/plain]
Saving to: ‘brscan2-0.2.5-1.amd64.deb’

brscan2-0.2.5-1.amd64.deb     100%[================================================>]  80.63K  --.-KB/s    in 0.1s     

2017-03-20 17:28:13 (673 KB/s) - ‘brscan2-0.2.5-1.amd64.deb’ saved [82566/82566]

dpkg -i --force-all brscan2-0.2.5-1.amd64.deb
Selecting previously unselected package brscan2.                                                                        
(Reading database ... 380378 files and directories currently installed.)
Preparing to unpack brscan2-0.2.5-1.amd64.deb ...
Unpacking brscan2 (0.2.5-1) ...
Setting up brscan2 (0.2.5-1) ...
You are going to install following packages.
  brscan-skey-0.2.4-1.amd64.deb

=========================================                                                                               
Brother License Agreement                                                                                            
      <<snip>>.                                                                                           
=========================================                                                                               
Do you agree? [Y/n] ->                                                                                                  
                                                                                                                       
wget -T 10 -nd --no-cache http://www.brother.com/pub/bsc/linux/packages/brscan-skey-0.2.4-1.amd64.deb
--2017-03-20 17:28:19--  http://www.brother.com/pub/bsc/linux/packages/brscan-skey-0.2.4-1.amd64.deb
Resolving www.brother.com (www.brother.com)... 59.86.162.42, 59.86.162.41
Connecting to www.brother.com (www.brother.com)|59.86.162.42|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 50852 (50K) [text/plain]
Saving to: ‘brscan-skey-0.2.4-1.amd64.deb’

brscan-skey-0.2.4-1.amd64.deb 100%[================================================>]  49.66K  --.-KB/s    in 0.06s    

2017-03-20 17:28:19 (786 KB/s) - ‘brscan-skey-0.2.4-1.amd64.deb’ saved [50852/50852]

dpkg -i --force-all brscan-skey-0.2.4-1.amd64.deb
Selecting previously unselected package brscan-skey.                                                                    
(Reading database ... 380403 files and directories currently installed.)
Preparing to unpack brscan-skey-0.2.4-1.amd64.deb ...
Unpacking brscan-skey (0.2.4-1) ...
Setting up brscan-skey (0.2.4-1) ...
Hit Enter/Return key.
kdemeoz@GA-Z97-HD3:~/Downloads/linux-brprinter-installer-2.1.1-1$  

Following this, even without needing a reboot, the Test Print & a "real" print of an actual document of mine, worked just fine. So then i turned my attention to the Scanner...

1. As advised in Brother's instructions, add the following lines to “/lib/udev/rules.d/40-libsane-rules”:
    a)Put them at the end of the list of vendors, just before the line that says "# The following rule will disable":
        i. # Brother scanners
       ii. ATTRS{idVendor}=="04f9", ENV{libsane_matched}="yes"
2. Copy /usr/lib64/sane to /usr/lib/  [ie, final directory in destination = /usr/lib/sane]
3. Add myself to the scanner user group. 
4. Install Simple Scan, eg, with Synaptic.
5. Reboot (to restart daemons)
6. Run Simple Scan from the Graphics menu to test the scanner. --> Oh %#@!~^ it. It does not work, just like in Mint before Maui.
[attachment=1226]

Any ideas, pls?
Hi,

There is an excellent article about Brother scanners for Ubuntu, but it is in German. So either use Google translate or maybe some of the German colleagues here on forums could translate the essence of it for you.

https://wiki.ubuntuusers.de/Scanner/Brother/
Have you checked if that vendor id
Quote:ATTRS{idVendor}=="04f9", ENV{libsane_matched}="yes"
is correct ?
I mean if the scanner is attached via usb lsusb should show you the ID and the first one XXXX:YYYY (so the X's) should be the vendor id.
Maybe it is different for your device.
(20th March 2017, 12:29)rocky7x Wrote: [ -> ]Hi,

There is an excellent article about Brother scanners for Ubuntu, but it is in German. So either use Google translate or maybe some of the German colleagues here on forums could translate the essence of it for you.

https://wiki.ubuntuusers.de/Scanner/Brother/

Thanks rocky, i shall have a look at this, & cross my fingers that it unveils some hitherto missing gem.
(20th March 2017, 14:01)leszek Wrote: [ -> ]Have you checked if that vendor id



Quote:ATTRS{idVendor}=="04f9", ENV{libsane_matched}="yes"
is correct ?
I mean if the scanner is attached via usb lsusb should show you the ID and the first one XXXX:YYYY (so the X's) should be the vendor id.
Maybe  it is different for your device.

Thanks leszek, that's a good idea, it never occurred to me that maybe the collective guides i had followed might have been wrong for my specific machine. Sadly however, no...
Code:
GA-Z97-HD3:~$ lsusb

Bus 003 Device 009: ID 04f9:0185 Brother Industries, Ltd MFC-7220 Printer

Sad
(21st March 2017, 2:04)kdemeoz Wrote: [ -> ]
(20th March 2017, 12:29)rocky7x Wrote: [ -> ]Hi,

There is an excellent article about Brother scanners for Ubuntu, but it is in German. So either use Google translate or maybe some of the German colleagues here on forums could translate the essence of it for you.

https://wiki.ubuntuusers.de/Scanner/Brother/

Thanks rocky, i shall have a look at this, & cross my fingers that it unveils some hitherto missing gem.

Finally had some time to come back to this. The article is quite good, & told me some stuff i'd not read in other references. I tried those changes, but scanning still fails with the error msg. Bummer. 

Totally exasperating. Now giving up on this, with conclusion that Linux & Scanners do not like each other [given same failures with Mint 17/17.1/17.2/17.3 & Maui 2.1/17.03]. Marking original post as "Unsolvable".  Sad
Linux and scanners in general works just fine.
It seems that you just simply have bad luck with a particular product that is hard to get going.
Have you tried the scanner driver and scanning utility directly from the manufacturer at this site?

http://support.brother.com/g/b/downloadt...7220_us_as

When you select Linux and deb package format, it will give you drivers for both printer and scanner specifically for your device. It should work. If not, I would ask for support directly from Brother support.
(4th April 2017, 18:28)rocky7x Wrote: [ -> ]Have you tried the scanner driver and scanning utility directly from the manufacturer at this site?

http://support.brother.com/g/b/downloadt...7220_us_as

Thanks, yes, that's how i did it.

(4th April 2017, 18:28)rocky7x Wrote: [ -> ]If not, I would ask for support directly from Brother support.

I did, last year [when i still used Mint KDE4]. One of them spent hours on the phone with me, & still couldn't solve it. At that point i abandoned any idea of me being able to scan with Linux [Mint], but printing worked fine. Now that i've been using Maui for a while, & being generally very pleased with it overall, i thought i would try the scanner again. Maybe i'll ring Brother again, or maybe i'll just quit whilst i'm already behind.  ;-) 
This did the trick for me with my Brother MFC-490CW

https://sites.google.com/site/easylinuxtipsproject/15