LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-16-2018, 04:41 PM   #1
Thane
Member
 
Registered: Aug 2006
Location: Ontario,Canada
Distribution: Linux Mint19.3 Cinnamon 64bit
Posts: 223

Rep: Reputation: Disabled
Scanner will not install on fresh installation of Mint 19 64bit


Brother DCP-7030 scanner which was working fine on installations up to and including Mint 18.3 64bit will not work on new-from-scratch Mint 19 v2 64bit installation. The printer worked fine out of the box but scanner drivers weren't installed as per terminal command:
Code:
dpkg -l | grep Brother
I tried installing from brscan3-0.2.13-1.amd64.deb (from the Brother website) with no success. In the past I have had to copy the installed files from
Code:
/usr/lib64/
into
Code:
/usr/lib/
(see below). I have done this.
Code:
/usr/lib64/libbrscandec3.so.1.0.0
		/usr/lib64/libbrscandec3.so
		/usr/lib64/libbrscandec3.so.1
and the sane folder which includes the files
Code:
/usr/lib64/sane/libsane-brother3.so.1.0.7
			/usr/lib64/sane/libsane-brother3.so.1
			/usr/lib64/sane/libsane-brother3.so
Also in the past I have subsequently needed to use vim to edit the /lib/udev/rules.d/40-libsane1.rules (now 60-libsane1.rules and no longer a "40" file) to add
Code:
# Brother scanners 
	      ATTRS{idVendor}=="04f9", ENV{libsane_matched}="yes"
just before the last entry of the file. I have tried doing the above-mentioned and also logging out/logging back in and even rebooting. Still wasn't working.

So I removed the copied files and the edit to the 60-libsane1.rules file and started again, in an attempt to reinstall using Brother's all-in-one lpr, scanner and CUPSwrapper Install Tool linux-brprinter-installer-2.2.1-1.gz and installed from terminal as per their accompanying instructions. The installation seemed to be going well (for 2 or 3 minutes with a lot of I think ia32lib type files, etc flashing by onscreen. Did not accept the URI option since I have a usb printer. Rebooted and no joy. So I copied the lib64 files back into lib and updated 60-libsane1.rules file again. No joy on another reboot.

Checked in Synaptic for broken packages and it seemed to show a broken ia32-libs. Clicking on Fix Broken Packages eventually yeilds the following error message:

E: /var/cache/apt/archives/libsane1_1.0.27-1~experimental3ubuntu2_i386.deb: trying to overwrite shared '/lib/udev/rules.d/60-libsane1.rules', which is different from other instances of package libsane1:i386

Output of uname -r:
$ uname -r
4.15.0-36-generic

Not sure where to go from here.
 
Old 10-17-2018, 12:40 AM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Try 'sane-find-scanner' and 'scanimage' to try to locate the scanner. And: https://wiki.archlinux.org/index.php/SANE
 
Old 10-17-2018, 09:50 AM   #3
Thane
Member
 
Registered: Aug 2006
Location: Ontario,Canada
Distribution: Linux Mint19.3 Cinnamon 64bit
Posts: 223

Original Poster
Rep: Reputation: Disabled
Have tried suggestions AwesomeMachine. But no success yet.
Code:
sudo sane-find-scanner
[sudo] password for a: 

  # sane-find-scanner will now attempt to detect your scanner. If the
  # result is different from what you expected, first make sure your
  # scanner is powered up and properly connected to your computer.

  # No SCSI scanners found. If you expected something different, make sure that
  # you have loaded a kernel SCSI driver for your SCSI adapter.

found USB scanner (vendor=0x04f9, product=0x01ea) at libusb:001:004
  # Your USB scanner was (probably) detected. It may or may not be supported by
  # SANE. Try scanimage -L and read the backend's manpage.

  # Not checking for parallel port scanners.

  # Most Scanners connected to the parallel port or other proprietary ports
  # can't be detected by this program.
Code:
:~$ scanimage -L

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).

Trying leads from the Archlinux Sane page suggestion, I do not have a
Quote:
/usr/lib/udev/rules.d/49-sane.rule
but here is the output of the last bit from my
Quote:
/lib/udev/rules.d/60-libsane1.rules
:


Code:
="HP", ATTRS{model}=="C7670A", ENV{libsane_matched}="yes"
#Brother scanners
ATTRS{idVendor}=="04f9",ENV{libsane_matched}="yes"
LABEL="libsane_rules_end"
04f9 has always been the valid Vendor id for my DCP-7030.

Also from the Archlinux Sane page, I have tried unplugging and reconnecting the DCP-7030. No success.
And
Quote:
lsusb
yields:
Code:
Bus 001 Device 004: ID 04f9:01ea Brother Industries, Ltd DCP-7030
 
Old 10-17-2018, 10:00 AM   #4
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
Have you rebooted after the udev rule mod? Also, can you run the commands AwesomeMachine suggested using sudo to see if this is a perms issue?
 
Old 10-17-2018, 10:16 AM   #5
Thane
Member
 
Registered: Aug 2006
Location: Ontario,Canada
Distribution: Linux Mint19.3 Cinnamon 64bit
Posts: 223

Original Poster
Rep: Reputation: Disabled
update

Yes sevendogsbsd, I have rebooted after the udev mod and I have also tried the
Quote:
scanimage -L
and the
Quote:
sane-find-scanner
listings with sudo. No joy yet I'm afraid.
 
Old 10-17-2018, 10:39 AM   #6
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
This may be a case where only the brother software works because SANE does not support any brother scanners: http://sane-project.org/sane-mfgs.html#Z-BROTHER

So it would appear that the brother scanner set up might be your only option. Not sure why it stopped working - clearly your system recognizes the existence of the hardware. Maybe parsing through the brother installation script to see where lib files get installed and ensure they are in the correct locations will help?

Sorry, that's about all I have at this point...
 
Old 10-17-2018, 02:14 PM   #7
Thane
Member
 
Registered: Aug 2006
Location: Ontario,Canada
Distribution: Linux Mint19.3 Cinnamon 64bit
Posts: 223

Original Poster
Rep: Reputation: Disabled
Thanks sevendogsbsd. I guess I will have another look at the Brother website. I'm sure I've done the same type of installation this time, that I have done in the past up to and including Mint 18.3. I did see that Brother had both 64bit and 32bit installations available. I chose the 64bit to match my system. Might the 32bit installation have been better in anyone's experience?
 
Old 10-17-2018, 02:18 PM   #8
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
I would say stick with the 64 bit because that's what your system supports. My .02
 
Old 10-17-2018, 05:55 PM   #9
Thane
Member
 
Registered: Aug 2006
Location: Ontario,Canada
Distribution: Linux Mint19.3 Cinnamon 64bit
Posts: 223

Original Poster
Rep: Reputation: Disabled
Brother DCP-7030 scanner problem solved

Got it. Went through the Brother website again and found a section in OS's for linux. On the following page, http://support.brother.com/g/s/id/li...rect=on#f00107 the solution was in the first listing for ubuntu 16.10 - cannot scan from Brother.

For the section,
Code:
I'm using Ubuntu 16.10. I cannot scan from my Brother Machine.

Install the "libusb-0.1-4".

    Command : sudo apt-get update

    Command : sudo apt-get install libusb-0.1-4
, a check for libusb-0.1-4 showed it to be already present.

The final solution was in the following section,
Code:
I cannot find the Brother Machine.

    Related Distribution : Ubuntu, LinuxMint, Debian

    Related Scanner Driver : brscan, brscan2, brscan3



Check if the following directory exist.

For 64bit Users:
/usr/lib/x86_64-linux-gnu/sane
 
For 32bit Users:
/usr/lib/i386-linux-gnu/sane


Type the following command if the above directory exist.

For 64bit Users:
Command : sudo cp /usr/lib64/sane/libsane-brother* /usr/lib/x86_64-linux-gnu/sane

For 32bit Users:
Command : sudo cp /usr/lib/sane/libsane-brother* /usr/lib/i386-linux-gnu/sane
Copying these files solved the problem. Scanner is working fine again. Many thanks for the help friends.
 
Old 03-08-2019, 07:50 PM   #10
Gerry P.
LQ Newbie
 
Registered: Dec 2017
Location: Quebec, Canada
Distribution: Linux Mint 19 Mate 64 bit
Posts: 3

Rep: Reputation: Disabled
Step by step instructions for newbie

Hi, I'm using linux mint 19, 64 bit version with a DCP-7030 machine. The printer worked out of the box but the scanner didn't. Thane provided the solution but I'm a newbie. So if anyone can provide step by step command line instructions then I would be infinitely grateful, because I am losing hope.

Thanks,

Gerry
 
Old 03-09-2019, 10:17 AM   #11
Thane
Member
 
Registered: Aug 2006
Location: Ontario,Canada
Distribution: Linux Mint19.3 Cinnamon 64bit
Posts: 223

Original Poster
Rep: Reputation: Disabled
Brother DCP-7030 scanner driver installation

Hi my Belle Province friend. I think this should get you going, as best as I can remember.

Download the latest 64bit scanner driver from this page on the Brother site (Sorry no French version.)

https://support.brother.com/g/b/down...566&dlang=true

Read the EULA at bottom of page and accept.

---------------------


Turn on your DCP-7030 and plug in the usb cable at the back.
Open the Terminal and use the cd command to change to the folder you downloaded the scanner driver file into.
Prefacing with the "
Code:
sudo
" command (without the quotes), enter

Code:
dpkg -i --force-all brscan3-0.2.13-1.amd64.deb
(The "brscan3-0.2.13-1.amd64.deb" driver to the left is the latest one on the download page as of a few minutes ago.)

As I recall, at some point during the installation you will see a prompt asking about usb useage. Click on the "No" option if you're using usb. The installation should then finish.

Check to see if the driver has been installed by entering the
Code:
dpkg -l | grep Brother
command and you should see your Brother scanner driver (and also your other printer drivers) listed as successfully installed.

Now comes the part where I found the stumbling block. In my Mint 19 case the Brother driver was looking for files in a certain location, when they were actually elsewhere. Follow this last bit and you should have success:

From the Brother support pages,
Quote:
I'm using Ubuntu 16.10. I cannot scan from my Brother Machine.

Install the "libusb-0.1-4".
Command :
Code:
sudo apt-get update
Command :
Code:
sudo apt-get install libusb-0.1-4
, a check for libusb-0.1-4 showed it to be already present.

The final solution was in the following section,

Quote:
I cannot find the Brother Machine.

Related Distribution : Ubuntu, LinuxMint, Debian

Related Scanner Driver : brscan, brscan2, brscan3



Check if the following directory exist.

For 64bit Users:
/usr/lib/x86_64-linux-gnu/sane
 

Command :
Code:
sudo cp /usr/lib64/sane/libsane-brother* /usr/lib/x86_64-linux-gnu/sane
 
2 members found this post helpful.
Old 03-11-2019, 03:20 PM   #12
Gerry P.
LQ Newbie
 
Registered: Dec 2017
Location: Quebec, Canada
Distribution: Linux Mint 19 Mate 64 bit
Posts: 3

Rep: Reputation: Disabled
My scanner works

Hello Thane,

Somehow, the solution you provided didn't work for me. I suspect that it has something to do with using vim to copy udev rules as you previously explained. Not knowing how to do that, here's what I did:

-According to: https://bugs.launchpad.net/ubuntu/+s...s/+bug/1728012

a) command:sudo ln -sfr /usr/lib64/libbrscandec* /usr/lib/x86_64-linux-gnu
b) command:sudo ln -sfr /usr/lib64/sane/libsane-brother* /usr/lib/x86_64-linux-gnu/sane
c) reboot

I then went to Brother's website and downloaded the driver install tool and let it do the work for me by following the instructions. Here is the link: https://support.brother.com/g/b/down...030_all&os=128

Finally, I applied this command which was the key to success:

command:sudo cp /usr/lib64/sane/libsane-brother* /usr/lib/x86_64-linux-gnu/sane


Without this command line as provided by Thane, my scanner did not work. So thank you, Thane and the LinuxQuestions community.
 
1 members found this post helpful.
Old 03-11-2019, 06:37 PM   #13
Thane
Member
 
Registered: Aug 2006
Location: Ontario,Canada
Distribution: Linux Mint19.3 Cinnamon 64bit
Posts: 223

Original Poster
Rep: Reputation: Disabled
Glad you got it working Gerry. cheers
 
Old 12-16-2019, 06:04 AM   #14
Tilly
Member
 
Registered: Dec 2019
Distribution: Ubuntu; Mint
Posts: 53

Rep: Reputation: 13
Thank you!

I know this has been 'quiet' for a while but in the UK our 'month day' is the other way round so perhaps I'll be forgiven.

I've spent 2 and a half days trying to get my DCP-7030 to scan. Although the drivers were obviously there and at one level Ubuntu 19 'knew' there was a scanner, both Document Scanner and xsane couldn't 'see' a scanner at all. I'm new to Linux (about August) so very careful walkthroughs are extremely useful to me. Like Gerry, Thane's final line was what solved it! Thank you so much!!!! I was starting to think that the easiest way forward was a new scanner! I'm using Ubuntu 19.10 on this machine and Mint on another elderly PC so I'm assuming that the Minty one will be much easier to link to the printer/scanner... now I've got it working on Ubuntu 19. But thank you again!
 
Old 12-16-2019, 08:51 AM   #15
Thane
Member
 
Registered: Aug 2006
Location: Ontario,Canada
Distribution: Linux Mint19.3 Cinnamon 64bit
Posts: 223

Original Poster
Rep: Reputation: Disabled
Glad we could be of help Tilly. Best of the Season!
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Taking Linux Mint 64bit OS clone, fresh install, moved from one laptop to another apollo1980 Linux - Software 1 10-11-2017 10:05 PM
No GRUBbootloader to choose os when starting pc - linux mint cinnamon 64bit fresh install wiegetz Linux - Software 2 05-19-2016 10:32 PM
Mint 17 fresh install RandyGG Linux - Newbie 8 02-07-2015 12:47 AM
[SOLVED] Slackware 13.37 64bit, Kernel Panic Error, Fresh install KvK Slackware 13 03-24-2014 07:18 PM
[SOLVED] how to keep printer/scanner drivers when performing a fresh install yaloo Linux - Newbie 5 06-09-2012 11:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration