Posts: 75
jhsu
Joined: 02 Jan 2010
#1
Where am I going wrong?

The drivers and instructions are at
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_prn.html#MFC-240C"
linktext was:"http://welcome.solutions.brother.com/bs ... l#MFC-240C"
====================================
" onclick="window.open(this.href);return false

The results are:
root@mepis1:/home/jhsu/jhsu-drivers# ls
mfc240ccupswrapper-1.0.1-1.i386.deb mfc240clpr-1.0.1-1.i386.deb
root@mepis1:/home/jhsu/jhsu-drivers# dpkg -i --force-all *lpr*
(Reading database ... 61937 files and directories currently installed.)
Preparing to replace mfc240clpr 1.0.1-1 (using mfc240clpr-1.0.1-1.i386.deb) ...
Unpacking replacement mfc240clpr ...
Setting up mfc240clpr (1.0.1-1) ...
mkdir: cannot create directory `/var/spool/lpd/mfc240c': No such file or directory
chown: cannot access `/var/spool/lpd/mfc240c': No such file or directory
chgrp: cannot access `/var/spool/lpd/mfc240c': No such file or directory
chmod: cannot access `/var/spool/lpd/mfc240c': No such file or directory
root@mepis1:/home/jhsu/jhsu-drivers# dpkg -i --force-all *cups*
(Reading database ... 61937 files and directories currently installed.)
Preparing to replace mfc240ccupswrapper 1.0.1-1 (using mfc240ccupswrapper-1.0.1-1.i386.deb) ...
lpadmin: The printer or class was not found.
* Restarting Common Unix Printing System: cupsd [ ok ]
Unpacking replacement mfc240ccupswrapper ...
Setting up mfc240ccupswrapper (1.0.1-1) ...
/usr/local/Brother/Printer/mfc240c/cupswrapper/cupswrappermfc240c: 70: cannot create /usr/share/cups/model/brmfc240c.ppd: Directory nonexistent
/usr/local/Brother/Printer/mfc240c/cupswrapper/cupswrappermfc240c: 274: cannot create /usr/share/cups/model/brmfc240c.ppd: Directory nonexistent
chmod: cannot access `/usr/share/cups/model/brmfc240c.ppd': No such file or directory
cp: cannot stat `/usr/share/cups/model/brmfc240c.ppd': No such file or directory
chmod: cannot access `/usr/share/ppd/brmfc240c.ppd': No such file or directory
* Restarting Common Unix Printing System: cupsd [ ok ]
lpadmin: Unable to copy PPD file!
root@mepis1:/home/jhsu/jhsu-drivers# dpkg -l | grep Brother
ii mfc240ccupswrapper 1.0.1-1 Brother CUPS Inkjet Printer Definitions
ii mfc240clpr 1.0.1-1 Brother lpr Inkjet Printer Definitions
root@mepis1:/home/jhsu/jhsu-drivers#
Posts: 18
teresaejunior
Joined: 05 Jan 2010
#2
There is an error with the installer script in the package. Should you create the directory /var/spool/lpd/mfc240c
AS ROOT, dont forget the -p flag:

Code: Select all

mkdir -p /var/spool/lpd/mfc240c
And try installing it again, or if new errors, post them back!