Getting scanner capability of Brother DCP-145 properly loaded.

Asked by Franklin Percival

Still struggling with DCP-145C scanner drivers, by dint of following instructions on Brother Solutions site. It seems to have everything it wants, but 'Simple Scan' won't detect it, and the printer itself doesn't recognise it's powers. The following extract from 'Terminal' looks OK to me until we get to the first <b>'DCP-145C : brother3:bus6;dev1 : USB Active'</b>, but I could be mistaken. The system didn't like 'scan' for a command, and suggested I install some other packages, which I did to no avail. ShouldI remove anything I've added, and if so, how? Or do I just start again?

f@Kyril:~/Downloads$ sudo aa-complain cupsd
Setting /etc/apparmor.d/usr.sbin.cupsd to complain mode.
f@Kyril:~/Downloads$ sudo dpkg -i --force-all brscan3-0.2.11-4.i386.deb
Selecting previously deselected package brscan3.
(Reading database ... 159312 files and directories currently installed.)
Unpacking brscan3 (from brscan3-0.2.11-4.i386.deb) ...
Setting up brscan3 (0.2.11-4) ...
f@Kyril:~/Downloads$ sudo dpkg -i --force-all brscan-skey-0.2.1-3.i386.deb
Selecting previously deselected package brscan-skey.
(Reading database ... 159330 files and directories currently installed.)
Unpacking brscan-skey (from brscan-skey-0.2.1-3.i386.deb) ...
Setting up brscan-skey (0.2.1-3) ...
f@Kyril:~/Downloads$ dpkg -l | grep Brother
ii brscan-skey 0.2.1-3 Brother Linux scanner S-KEY tool
ii brscan3 0.2.11-4 Brother Scanner Driver
ii dcp145ccupswrapper 1.1.2-2 Brother CUPS Inkjet Printer Definitions
ii dcp145clpr 1.1.2-2 Brother lpr Inkjet Printer Definitions
f@Kyril:~/Downloads$ brscan-skey
f@Kyril:~/Downloads$ brscan-skey -l

 DCP-145C : brother3:bus6;dev1 : USB Active

f@Kyril:~/Downloads$
f@Kyril:~/Downloads$ scan from SCANNER brother3:bus6;dev1 TO /ROOT/BRSCAN.Sp7525The program 'scan' can be found in the following packages:
 * dvb-apps
 * mailutils-mh
 * nmh
Try: sudo apt-get install <selected package>
dev1: command not found
f@Kyril:~/Downloads$ sudo scan from SCANNER brother3:bus6;dev1 TO /ROOT/BRSCAN.Sp7525
sudo: scan: command not found
dev1: command not found
f@Kyril:~/Downloads$ sudo scan from SCANNER brother3:bus6;dev1 TO /ROOT/BRSCAN.Sp7525
sudo: scan: command not found
dev1: command not found
f@Kyril:~/Downloads$ scan from SCANNER brother3:bus6;dev1 TO /ROOT/BRSCAN.Sp7525The program 'scan' can be found in the following packages:
 * dvb-apps
 * mailutils-mh
 * nmh
Try: sudo apt-get install <selected package>
dev1: command not found
f@Kyril:~/Downloads$ sudo apt-get install dvb-apps
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed
  dvb-apps
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 711kB of archives.
After this operation, 6,525kB of additional disk space will be used.
Get:1 http://gb.archive.ubuntu.com/ubuntu/ maverick/universe dvb-apps i386 1.1.1+rev1355-1ubuntu1 [711kB]
Fetched 711kB in 1s (599kB/s)
Selecting previously deselected package dvb-apps.
(Reading database ... 159335 files and directories currently installed.)
Unpacking dvb-apps (from .../dvb-apps_1.1.1+rev1355-1ubuntu1_i386.deb) ...
Setting up dvb-apps (1.1.1+rev1355-1ubuntu1) ...
f@Kyril:~/Downloads$ scan from brother3:bus6;dev1 to /root/brscan/brscan.sP7525scanimage: rounded value of br-x from 215.9 to 215.88 scanimage: rounded value of br-y from 355.6 to 355.67
scanning from
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
main:2284: FATAL: failed to open '/dev/dvb/adapter0/frontend0': 2 No such file or directory
dev1: command not found
f@Kyril:~/Downloads$ sudo scan from brother3:bus6;dev1 to /root/brscan/brscan.sP7525
scanning from
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
main:2284: FATAL: failed to open '/dev/dvb/adapter0/frontend0': 2 No such file or directory
dev1: command not found
f@Kyril:~/Downloads$ sudo apt-get install mailutils-mh
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libgsasl7 libmailutils2 libntlm0
Suggested packages:
  mailutils mh-e
The following NEW packages will be installed
  libgsasl7 libmailutils2 libntlm0 mailutils-mh
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,463kB of archives.
After this operation, 6,459kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://gb.archive.ubuntu.com/ubuntu/ maverick/universe libntlm0 i386 1.1-1 [18.1kB]
Get:2 http://gb.archive.ubuntu.com/ubuntu/ maverick/universe libgsasl7 i386 1.4.4-1ubuntu1 [188kB]
Get:3 http://gb.archive.ubuntu.com/ubuntu/ maverick/universe libmailutils2 i386 1:2.1+dfsg1-6 [1,043kB]
Get:4 http://gb.archive.ubuntu.com/ubuntu/ maverick/universe mailutils-mh i386 1:2.1+dfsg1-6 [1,214kB]
Fetched 2,463kB in 6s (371kB/s)
Selecting previously deselected package libntlm0.
(Reading database ... 160623 files and directories currently installed.)
Unpacking libntlm0 (from .../libntlm0_1.1-1_i386.deb) ...
Selecting previously deselected package libgsasl7.
Unpacking libgsasl7 (from .../libgsasl7_1.4.4-1ubuntu1_i386.deb) ...
Selecting previously deselected package libmailutils2.
Unpacking libmailutils2 (from .../libmailutils2_1%3a2.1+dfsg1-6_i386.deb) ...
Selecting previously deselected package mailutils-mh.
Unpacking mailutils-mh (from .../mailutils-mh_1%3a2.1+dfsg1-6_i386.deb) ...
Setting up libntlm0 (1.1-1) ...
Setting up libgsasl7 (1.4.4-1ubuntu1) ...
Setting up libmailutils2 (1:2.1+dfsg1-6) ...
Setting up mailutils-mh (1:2.1+dfsg1-6) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
f@Kyril:~/Downloads$ sudo apt-get install nmh
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  citadel-mta citadel-server db4.6-util libcitadel2 libdb4.6 libdb4.7
  libsieve2-1
Suggested packages:
  exmh mh-e mh-book
Recommended packages:
  mail-transport-agent metamail
The following NEW packages will be installed
  citadel-mta citadel-server db4.6-util libcitadel2 libdb4.6 libdb4.7
  libsieve2-1 nmh
0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
Need to get 4,189kB of archives.
After this operation, 12.3MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://gb.archive.ubuntu.com/ubuntu/ maverick/universe libdb4.6 i386 4.6.21-16 [576kB]
Get:2 http://gb.archive.ubuntu.com/ubuntu/ maverick/universe db4.6-util i386 4.6.21-16 [108kB]
Get:3 http://gb.archive.ubuntu.com/ubuntu/ maverick/main libdb4.7 i386 4.7.25-9 [638kB]
Get:4 http://gb.archive.ubuntu.com/ubuntu/ maverick/universe libsieve2-1 i386 2.2.6-1 [76.2kB]
Get:5 http://gb.archive.ubuntu.com/ubuntu/ maverick/universe nmh i386 1.3-1 [2,341kB]
Get:6 http://gb.archive.ubuntu.com/ubuntu/ maverick/universe libcitadel2 i386 7.72-2 [63.7kB]
Get:7 http://gb.archive.ubuntu.com/ubuntu/ maverick/universe citadel-server i386 7.72-3 [375kB]
Get:8 http://gb.archive.ubuntu.com/ubuntu/ maverick/universe citadel-mta i386 7.72-3 [10.8kB]
Fetched 4,189kB in 5s (780kB/s)
Preconfiguring packages ...
Selecting previously deselected package libdb4.6.
(Reading database ... 160779 files and directories currently installed.)
Unpacking libdb4.6 (from .../libdb4.6_4.6.21-16_i386.deb) ...
Selecting previously deselected package db4.6-util.
Unpacking db4.6-util (from .../db4.6-util_4.6.21-16_i386.deb) ...
Selecting previously deselected package libdb4.7.
Unpacking libdb4.7 (from .../libdb4.7_4.7.25-9_i386.deb) ...
Selecting previously deselected package libsieve2-1.
Unpacking libsieve2-1 (from .../libsieve2-1_2.2.6-1_i386.deb) ...
Selecting previously deselected package nmh.
Unpacking nmh (from .../archives/nmh_1.3-1_i386.deb) ...
Selecting previously deselected package libcitadel2.
Unpacking libcitadel2 (from .../libcitadel2_7.72-2_i386.deb) ...
Selecting previously deselected package citadel-server.
Unpacking citadel-server (from .../citadel-server_7.72-3_i386.deb) ...
Selecting previously deselected package citadel-mta.
Unpacking citadel-mta (from .../citadel-mta_7.72-3_i386.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up libdb4.6 (4.6.21-16) ...
Setting up db4.6-util (4.6.21-16) ...
Setting up libdb4.7 (4.7.25-9) ...
Setting up libsieve2-1 (2.2.6-1) ...
Setting up nmh (1.3-1) ...
Setting up libcitadel2 (7.72-2) ...
Setting up citadel-server (7.72-3) ...
Adding group `citadel' (GID 125) ...
Done.
Adding system user `citadel' (UID 115) ...
Adding new user `citadel' (UID 115) with group `citadel' ...
Not creating home directory `/var/lib/citadel'.
applying your settings.
no /etc/aliases found.
sendcommand: started (pid=13383) running in citadel
Attaching to server...
Kyril Citadel server ready.
Authenticated as an internal program.
DOWN
231 Shutting down server. Goodbye.
sendcommand: processing ended.
Setting up citadel-mta (7.72-3) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
f@Kyril:~/Downloads$ dpkg -l | grep Brother
ii brscan-skey 0.2.1-3 Brother Linux scanner S-KEY tool
ii brscan3 0.2.11-4 Brother Scanner Driver
ii dcp145ccupswrapper 1.1.2-2 Brother CUPS Inkjet Printer Definitions
ii dcp145clpr 1.1.2-2 Brother lpr Inkjet Printer Definitions
f@Kyril:~/Downloads$ brscan-skey
f@Kyril:~/Downloads$ brscan-skey -l

 DCP-145C : brother3:bus6;dev1 : USB Active

f@Kyril:~/Downloads$ scan from : brother3:bus6;dev1 to /root/brscan/brscan.sP7525
scanning from
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
main:2284: FATAL: failed to open '/dev/dvb/adapter0/frontend0': 2 No such file or directory
dev1: command not found
f@Kyril:~/Downloads$ sudo scan from : brother3:bus6;dev1 to /root/brscan/brscan.sP7525
scanning from
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
main:2284: FATAL: failed to open '/dev/dvb/adapter0/frontend0': 2 No such file or directory
dev1: command not found
f@Kyril:~/Downloads$

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu simple-scan Edit question
Assignee:
No assignee Edit question
Solved by:
wojox
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Install simple-scan and try that

Revision history for this message
Franklin Percival (franklin-percival) said :
#2

As Isaid in my opening para., 'simple-scan' can't find the DCP-145. I've removed simple-scan and reinstalled it, but still no joy. Sometimes I get a red bar saying 'can't find scanner', sometimes the hourglass equivalent.

Revision history for this message
Franklin Percival (franklin-percival) said :
#3

Have hunted around the BS site and found this, which may or may not help, given that I'm on 10.10. How do I open "/lib/udev/rules.d/40-libsane.rules" file, please?

Ubuntu 9.10, 10.04
    1. Open "/lib/udev/rules.d/40-libsane.rules" file.
    2.Add the following two lines to the end of the device list. (Before the line "# The following rule will disable ..."):

    The lines to be added---------------------------

    # Brother scanners
    ATTRS{idVendor}=="04f9", ENV{libsane_matched}="yes"

    3. Restart the OS.

Revision history for this message
Franklin Percival (franklin-percival) said :
#4

Tried using GIMP per BS site instructions (File-Create-Xsane), selected my device which was there as an option but got an error message stating "failed to open device 'brother3:bus6;dev1': invalid argument.

Revision history for this message
Best wojox (wojox) said :
#5

Gimp?
Copy and paste this in the terminal:

gksudo gedit /lib/udev/rules.d/40-libsane.rules

Then add this to the bottom before the #:

# Brother scanners
ATTRS{idVendor}=="04f9", ENV{libsane_matched}="yes"

Save, close, and reboot.

Revision history for this message
Franklin Percival (franklin-percival) said :
#6

wojox, actionparsnip,

The hump you've got between your shoulder blades is your wings growing. Absolute angels both. I haven't done anything on command lines for years - RPG2 on punched cards processed on a remote main-frame, MBasic on a Sun Desktop machine the size of a modest family saloon, remember? Oh yes, I must not forget DOS 3.1! Everything now up and running, and I am grateful to you both, also the wider community.

Many thanks,

f.

Revision history for this message
Franklin Percival (franklin-percival) said :
#7

Thanks wojox, that solved my question.