MFC-7420 Scanner installation problem

yugpatel

Senior member
Feb 28, 2001
506
0
76
I have installed Ubuntu 11.04, 64 bit and now I am trying to install/configure MFC-7420 scanner part (printer works fine). I tried to follow the steps listed at http://ubuntuforums.org/archive/index.php/t-590793.html, but I don't have /etc/udev/rules.d/45-libsane.rules file to edit and can not continue with the remaining steps of the guide.

I also tried to follow the steps provided by the Brother Solution Center http://welcome.solutions.brother.com...ion_scn1a.html. I have downloaded brscan2 64 bit and installed without error but when I tried to install the brscan-skey-0.2.1-3.amd64.deb using >sudo dpkg -i --force-all brscan-skey-0.2.1-3.amd64.deb I get the following error:
************************************************** **************************************************
sudo dpkg -i --force-all brscan-skey-0.2.1-3.amd64.deb
[sudo] password for aUser:
dpkg: warning: overriding problem because --force enabled:
package architecture (amd64) does not match system (i386)
(Reading database ... 149212 files and directories currently installed.)
Preparing to replace brscan-skey:amd64 0.2.1-3 (using brscan-skey-0.2.1-3.amd64.deb) ...
Unpacking replacement brscan-skey:amd64 ...
dpkg: dependency problems prevent configuration of brscan-skey:amd64:
brscan-skey:amd64 depends on libc6 (>= 2.3.4-1).
dpkg: error processing brscan-skey:amd64 (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
brscan-skey:amd64
************************************************** ***********************************************
I tried Running "XSane Image Scanning Program" and a xsane 0.998 window gives error "No device available".
Which dependencies am I missing? or What am I doing wrong?
 

AnonymouseUser

Diamond Member
May 14, 2003
9,943
107
106
Are you sure you're running 64-bit Ubuntu? This error says otherwise:

package architecture (amd64) does not match system (i386)

Go here and paste the result. Here's mine for Debian 64-bit:

Opera/9.80 (X11; Linux x86_64; U; en) Presto/2.9.168 Version/11.50
 

yugpatel

Senior member
Feb 28, 2001
506
0
76
Are you sure you're running 64-bit Ubuntu? This error says otherwise:



Go here and paste the result. Here's mine for Debian 64-bit:

I had a doubt about the OS being 64bit or 32 bit too.
Anyway, here is the "result".

Mozilla/5.0 (X11; Linux i686; rv:5.0) Gecko/20100101 Firefox/5.0

Thanks for your reply and let me know the next step.
 

AnonymouseUser

Diamond Member
May 14, 2003
9,943
107
106
Yeah, you are definitely running 32-bit. If you are wanting to use 64-bit Ubuntu, now would be a good time to switch over, otherwise you'll need the 32-bit drivers from Brother. While it is possible and often necessary to run 32-bit software on a 64-bit OS, the reverse is not possible.

Anytime you see i686, i586, i486, or i386 it's 32-bit. 64-bit is listed as either x86_64 or AMD64.
 

yugpatel

Senior member
Feb 28, 2001
506
0
76
Thanks for your prompt reply once again. I will download 32 bit version of scan-tool and see what happens. If it works then I will go for 64 bit Ubuntu. Ironically, I down loaded 64 bit version printer driver and it works fine. Also, system reported 7.19GB memory, I thought I am running 64 bit OS.
 

yugpatel

Senior member
Feb 28, 2001
506
0
76
Now I reinstalled Ubuntu-64bit version and tried to install printer driver and got the driver installation problem due to architecture mismatch. The driver, the ONLY driver from Brother for MFC-7420 (brmfc7420lpr-2.0.1-1.i386.deb) I believe is a 32 bit driver and gave me error as follows:
***************************************************************************************
bp@bpUbuntu:~/Downloads$ sudo dpkg -i --force-all brmfc7420lpr-2.0.1-1.i386.deb
[sudo] password for bp:
dpkg: warning: overriding problem because --force enabled:
package architecture (i386) does not match system (amd64)
dpkg: regarding brmfc7420lpr-2.0.1-1.i386.deb containing brmfc7420lpr:i386:
brother-lpr-drivers-laser conflicts with brmfc7420lpr
brmfc7420lpr:i386 (version 2.0.1-1) is to be installed.
dpkg: warning: ignoring conflict, may proceed anyway!
(Reading database ... 160844 files and directories currently installed.)
Unpacking brmfc7420lpr:i386 (from brmfc7420lpr-2.0.1-1.i386.deb) ...
Replaced by files in installed package brother-lpr-drivers-laser ...
dpkg: dependency problems prevent configuration of brmfc7420lpr:i386:
brmfc7420lpr:i386 depends on libc6 (>= 2.2.5).
dpkg: error processing brmfc7420lpr:i386 (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
brmfc7420lpr:i386
bp@bpUbuntu:~/Downloads$
**************************************************

In fact I have Ubuntu 32 bit on my laptop and Printer part works but scanner part does not work with MFC-7420.

Any suggestions.
 

AnonymouseUser

Diamond Member
May 14, 2003
9,943
107
106
You need the correct 32-bit libraries installed for your 32-bit drivers to work. Most of them are included in Ubuntu's ia32-libs package, so install that first

Code:
sudo apt-get install ia32-libs

then run

Code:
dpkg-reconfigure brmfc7420lpr-2.0.1-1.i386.deb
 

yugpatel

Senior member
Feb 28, 2001
506
0
76
Here is the output from those two command you suggested:
*****************************************************************************
bp@bpUbuntu:~/Downloads$ sudo apt-get install ia32-libs
Reading package lists... Done
Building dependency tree
Reading state information... Done
ia32-libs is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
bp@bpUbuntu:~/Downloads$
bp@bpUbuntu:~/Downloads$
bp@bpUbuntu:~/Downloads$ ls -lt
total 36
-rw-r--r-- 1 bp bp 33140 2011-08-16 19:11 brmfc7420lpr-2.0.1-1.i386.deb
bp@bpUbuntu:~/Downloads$ sudo dpkg-reconfigure brmfc7420lpr-2.0.1-1.i386.deb
Package `brmfc7420lpr-2.0.1-1.i386.deb' is not installed and no info is available.
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
/usr/sbin/dpkg-reconfigure: brmfc7420lpr-2.0.1-1.i386.deb is not installed
bp@bpUbuntu:~/Downloads$ ^C
bp@bpUbuntu:~/Downloads$
******************************************************************************

Before even you posted the above reply, I tried to search and update the libs but did not work.

I was able to install scanner driver, 64 bit without problem but when I run Xsane from graphic application, I get error "Failed to open device 'brother2:bus7;dev1': Invalid argument". Any suggestion with that.

As usual many thanks for helping me out.
 

AnonymouseUser

Diamond Member
May 14, 2003
9,943
107
106
Ok, looks like the libc6 error is due to not recognizing the installed libc6 as being greater than 2.2.5, so here is a solution for a similar driver found here:

Here is a workaround for the problem:

HOWTO:
Patch brdcp7030lpr-2.0.2-1.i386.deb cupswrapperDCP7030-2.0.2-1.i386.deb for NN

Problem:
dpkg doesn't understand the the libc version 2.13-0ubuntu13 >= 2.3.4-1

Solution:
remove the libc dependency

Instructions:

Create a directory.
move the .deb files into the directory
open a shell
change dir into the directory

For each package do the following:

1. dpkg -x [package].deb common
2. dpkg --control [package].deb
3. vim DEBIAN/control
4. remove the "Dependency: libc (..." line (move to line than press 'dd' than ESC:x)
5. cp -a DEBIAN/ common/
6. dpkg -b common [package].deb
7. dpkg --force-all -i [package].deb
8. rm -rf common DEBIAN

With some additional tweaking (read the other manuals) you should be able to use your printer. The Scanner should work without these steps.

The state of Linux device drivers is really worsening day by day :(
 
Last edited:

yugpatel

Senior member
Feb 28, 2001
506
0
76
I did follow these steps without error:
For each package do the following:

*****************************************************
1. dpkg -x [package].deb common
2. dpkg --control [package].deb
3. vim DEBIAN/control
4. remove the "Dependency: libc (..." line (move to line than press 'dd' than ESC:x)
5. cp -a DEBIAN/ common/
6. dpkg -b common [package].deb
7. dpkg --force-all -i [package].deb
8. rm -rf common DEBIAN
*******************************************************

Now when I try to restart the print job as suggested by Brother site:

******************************************************
5-3. Restart the print system

Command (for lpr): /etc/init.d/lpr restart
Command (for lprng) : /etc/init.d/lprng restart
********************************************************
there is not lpr in /etc/init.d directory. Any suggestion?
Thanks for holding my hand through this process.

It is very discouraging the printer driver installation worked under 32 bit without any problem but not with 64 bit OS.
I am still trying figure out scanner part, as I get error "Failed to open device 'brother2:bus7;dev1': Invalid argument"
Awaiting your response sir.
 

AnonymouseUser

Diamond Member
May 14, 2003
9,943
107
106
You need to install the driver you just edited.

Code:
dpkg -i --force-all brmfc7420lpr-2.0.1-1.i386.deb
 
Last edited:

AnonymouseUser

Diamond Member
May 14, 2003
9,943
107
106
Also, have you installed the cups driver? I looked at it yesterday and it doesn't look like you'll need to edit it like the lpr driver, so installation should be error-free.
 

yugpatel

Senior member
Feb 28, 2001
506
0
76
I think step number 7 installs the edited driver, correct: dpkg --force-all -i [package].deb.

If not let me know.
I did follow the same 7 steps for cups and installed it too.

Here is the output of dpkg -l | grep Brother :
**********************************************************
bp@bpUbuntu:~$ dpkg -l |grep Brother
ii brmfc7420lpr:i386 2.0.1-1 Brother MFC-7420 LPR driver
ii brscan 0.2.4 Brother CUPS Printer Definitions
ii brscan-skey 0.2.1-3 Brother Linux scanner S-KEY tool
ii brscan2 0.2.5-1 Brother Scanner Driver
ii cupswrappermfc7420:i386 2.0.1-2 Brother MFC7420 CUPS wrapper driver
bp@bpUbuntu:~$
*********************************************************

I will wait for your reply before I rerun all 7 steps for for both, printer and cups driver.
 

AnonymouseUser

Diamond Member
May 14, 2003
9,943
107
106
/etc/init.d/lpr should have been installed with the driver, not sure why it isn't there. Maybe it installed elsewhere?

Code:
find / -name 'lpr'
 
Last edited:

AnonymouseUser

Diamond Member
May 14, 2003
9,943
107
106
Looked at this again now that I have some free time. Although I am on Debian, it should be very similar to Ubuntu, so I installed and ran apt-file to search for /etc/init.d/lpr:

Code:
apt-get install apt-file
apt-file update

Code:
root@anonpc:~# apt-file find /etc/init.d/lpr
lprng: /etc/init.d/lprng

All it found was /etc/init.d/lprng, which is included with lprng, so install that and try again:

Code:
apt-get install lprng
 

yugpatel

Senior member
Feb 28, 2001
506
0
76
Looked at this again now that I have some free time. Although I am on Debian, it should be very similar to Ubuntu, so I installed and ran apt-file to search for /etc/init.d/lpr:

Code:
apt-get install apt-file
apt-file update

Code:
root@anonpc:~# apt-file find /etc/init.d/lpr
lprng: /etc/init.d/lprng

All it found was /etc/init.d/lprng, which is included with lprng, so install that and try again:

Code:
apt-get install lprng

I have done all these successfully. What is next SPECIFIC step?
 

AnonymouseUser

Diamond Member
May 14, 2003
9,943
107
106
At this point, you should have /etc/init.d/lprng, so

Code:
Command  (for  lprng)  :  /etc/init.d/lprng  restart

I have had issues in the past where the printer itself needed to be restarted, so reboot the printer as well. Then move to #6:

Step 6. Try a test print

If that doesn't work then you may just need to ask for help at the Ubuntu forums. I really don't know what else to do if it doesn't work now, and if this is any indication of the current state of Brother's printer drivers, then I will be sure to avoid them at all cost in the future.
 

yugpatel

Senior member
Feb 28, 2001
506
0
76
I tried to run that command and I got these:
**************************************************
bp@bpUbuntu:~$ sudo /etc/init.d/lprng restart
[sudo] password for bp:
* Restarting LPRng printer spooler lpd 2011-08-19-10:46:31.877 bpUbuntu no name for printcap entry ':lp=/dev/usb/lp0'
[ OK ]
*************************************************

Also when access Sysrem>administration>printing I get error message:
"Printing service not available. Start the service on this computer or connect to another server."

I will try to post the problem on Ubuntu forum but that forum is not responsive from my two postings there.
 

AnonymouseUser

Diamond Member
May 14, 2003
9,943
107
106
Alright, let's back up and try cups again:

Code:
sudo apt-get install cups

This will remove lprng.

Now go to http://localhost:631/printers and see if your printer is listed.

Step 5a. (for USB Connection) Check your printer on the cups web interface
5a-1. Open a web browser and go to "http://localhost:631/printers".
Check if the Device URI of your printer is "usb://Brother/(your printer's model name)"
Example of a USB printer entry
If the device URI is different from the example above, please go to "Modify Printer" of your printer to select proper device and driver.
If your printer is not listed on "http://localhost:631/printers", please go to "http://localhost:631/admin" and click "Add printer" and select proper device and driver.
 

yugpatel

Senior member
Feb 28, 2001
506
0
76
That did the trick.
Its all working now, printer as well as scanner.
Thanks a bunch and this is why I rely more on anandtech forums than any other.