LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Unable to install Brother printer drivers (https://www.linuxquestions.org/questions/linux-hardware-18/unable-to-install-brother-printer-drivers-919356/)

siouxzieq 12-18-2011 01:30 PM

Unable to install Brother printer drivers
 
I'm using Mint Isadora 64 bit
I followed instructions from Brother solutions on how to install Linux drivers for my DCP195C printer but didn't get very far, downloaded the LPR driver package and put it on desktop ran suggested code and got this

roo@manzanita-desktop ~ $ rpm -ihv --nodeps (lpr-dcp195clpr-1.1.3-1.i386.rpm
bash: syntax error near unexpected token `('

Which i don't understand,:scratch:

tried to install from the command line with apt-get but had no success there either.
I sometimes feel very frustrated, i'm not a programmer and spend so much time trying to install hardware and software and don't seem to be learning :confused: I also think i may be messing up my OS, i seem to have lots of problems doing anything from the command line, have read a bunch of tutorials and articles on how to 'conquer the command line' i copy the code and follow instructions but it hardly ever works! None of my media players will play movies now either, but i guess that's another post. Thanks for any help.

sadiqdm 12-18-2011 05:43 PM

As Mint is based on Ubuntu/Debian, you need the .deb version of the driver. It is also safer to do the install from the GUI. I just download the drivers to a directory as a normal user, make sure the permissions allow the file to be executed (right click and select properties > permissions), then do a right click and select "open with package installer". It will ask for your password, and should then run the install.

So far I have had no problems with Brother drivers on Ubuntu since 9.04 (just finished upgrading my laptop to 11.04 and it kept the old drivers), Mint 11 & 12, and Suse 10 & 11.

sadiqdm 12-19-2011 05:02 AM

Follow up:

Discovered a problem this morning when re-installing Brother DCP135C drivers on a 64bit machine. The drivers for this printer on the Brother website are old and a marked "i386". The 64bit machine sees this as the "wrong architecture", so the package installer won't work. I did it using the command line method, and although it threw up some errors it worked perfectly when I loaded the Cups admin page. This was using Ubuntu 11.04 & the instructions from here - http://welcome.solutions.brother.com...ion_scn1a.html

jhw 12-19-2011 05:36 AM

Quote:

Originally Posted by siouxzieq (Post 4553092)
roo@manzanita-desktop ~ $ rpm -ihv --nodeps (lpr-dcp195clpr-1.1.3-1.i386.rpm
bash: syntax error near unexpected token `('

Which i don't understand,:scratch:

Remove the '(' from the command and try again.

siouxzieq 12-24-2011 11:47 AM

Hello and Happy Christmas everybody :) thanks so much for great help and advice, did as suggested Sadiq but ran into problems that now have me stuck again!

Here's what i did and where i got

roo@manzanita-desktop ~ $ cd Downloads
roo@manzanita-desktop ~/Downloads $ rpm -ihv --nodeps lpr-dcp195clpr-1.1.3-1.i386.rpm
rpm: please use alien to install rpm packages on Debian, if you are really sure use --force-debian switch. See README.Debian for more details.
roo@manzanita-desktop ~/Downloads $ rpm ihv --force-debian lpr-dcp195clpr-1.1.3-1.i386.rpm
RPM version 4.7.2
Copyright (C) 1998-2002 - Red Hat, Inc.
This program may be freely redistributed under the terms of the GNU GPL

Usage: rpm [-afgpWcdlsKiv?] [-a|--all] [-f|--file] [-g|--group]
[-p|--package] [-W|--ftswalk] [--pkgid] [--hdrid] [--fileid]
[--specfile] [--triggeredby] [--whatrequires] [--whatprovides]
[--nomanifest] [-c|--configfiles] [-d|--docfiles] [--dump]
[-l|--list] [--queryformat=QUERYFORMAT] [-s|--state]
[--nofiledigest] [--nomd5] [--nofiles] [--nodeps] [--noscript]
[--comfollow] [--logical] [--nochdir] [--nostat] [--physical]
[--seedot] [--xdev] [--whiteout] [--addsign] [-K|--checksig]
[--delsign] [--import] [--resign] [--nodigest] [--nosignature]
[--initdb] [--rebuilddb] [--aid] [--allfiles] [--allmatches]
[--badreloc] [-e|--erase=<package>+] [--excludedocs]
[--excludepath=<path>] [--fileconflicts] [--force] [--force-debian]
[-F|--freshen=<packagefile>+] [-h|--hash] [--ignorearch]
[--ignoreos] [--ignoresize] [-i|--install] [--justdb] [--nodeps]
[--nofiledigest] [--nomd5] [--nocontexts] [--noorder] [--nosuggest]
[--noscripts] [--notriggers] [--oldpackage] [--percent]
[--prefix=<dir>] [--relocate=<old>=<new>] [--replacefiles]
[--replacepkgs] [--test] [-U|--upgrade=<packagefile>+] [--quiet]
[-D|--define='MACRO EXPR'] [-E|--eval='EXPR'] [--macros=<FILE:...>]
[--nodigest] [--nosignature] [--rcfile=<FILE:...>] [-r|--root=ROOT]
[--querytags] [--showrc] [--quiet] [-v|--verbose] [--version]
[-?|--help] [--usage] [--scripts] [--setperms] [--setugids]
[--conflicts] [--obsoletes] [--provides] [--requires] [--info]
[--changelog] [--xml] [--triggers] [--last] [--dupes]
[--filesbypkg] [--fileclass] [--filecolor] [--fscontext]
[--fileprovide] [--filerequire] [--filecaps]

roo@manzanita-desktop ~/Downloads $ apt-get install dcp195clpr-1.1.3-1.i386.rpm
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
roo@manzanita-desktop ~/Downloads $ dpkg -i --force-all dcp195ccupswrapper-1.1.3-1.i386.rpm
dpkg: operation requires read/write access to dpkg status area
roo@manzanita-desktop ~/Downloads $ dpkg -i --force-all dcp195ccupswrapper-1.1.3-1.i386.rpm
dpkg: operation requires read/write access to dpkg status area
roo@manzanita-desktop ~/Downloads $ apt-get install dcp195ccupswrapper-1.1.3-1.i386.rpm
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
roo@manzanita-desktop ~/Downloads $

know i'm doing something wrong! am definately logged in as root with administrator priviledges have checked 'file allowed to be executed' in the permissions on cups wrapper and all are read and write! so does dpkg status area mean something else?

Thanks for the translation jhw "Remove the '(' from the command and try again" was much clearer than "syntax error near unexpected token `('" :-)

FredGSanford 12-24-2011 06:32 PM

You need the lpr & cupswrapper .deb files if you're using Mint, not the .rpm version.

http://welcome.solutions.brother.com...efore.html#004

If you're using the 64 bit version, Read the Readme file, which states this as requirements:

Quote:

Pre-required Procedure (5)
Related distributions
Debian 64 bit version, Ubuntu 64 bit version
Related products/drivers
printer/PC-FAX drivers
Requirement
ia32-libs or lib32stdc++ is required to be installed.

siouxzieq 12-29-2011 10:20 AM

Thanks FredG,
Knew i needed the .deb files but for some reason didn't see them on the download page and thought rpm was all there was so i'd give it a try, Doh!! how newbie :) found them once i looked again. Logged in as ordinary user, used sudo and got this:
manzanita@manzanita-desktop ~ $ sudo apt-get install dcp195clpr-1.1.3-1.i386.deb[sudo] password for manzanita:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package dcp195clpr-1.1.3-1.i386.deb

So then i moved files from desktop to Downloads did ls and made sure they were there and got same thing!?

manzanita@manzanita-desktop ~/Downloads $ sudo apt-get install dcp195clpr-1.1.3-1.i386.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package dcp195clpr-1.1.3-1.i386.deb

Tried the code from Brother solutions and got this

manzanita@manzanita-desktop ~/Downloads $ sudo dpkg -i --force-all lpr-dcp195clpr-1.1.3-1.i386.deb
dpkg: error processing lpr-dcp195clpr-1.1.3-1.i386.deb (--install):
cannot access archive: No such file or directory
Errors were encountered while processing:
lpr-dcp195clpr-1.1.3-1.i386.deb

So did ls again and it says it's there!

manzanita@manzanita-desktop ~/Downloads $ ls
coyote-1.jpg dcp195clpr-1.1.3-1.i386(1).deb
dcp195ccupswrapper-1.1.3-1.i386.deb

Checked 'execute file as program' box read the Readme and checked requirements were installed
So.....?? help much appreciated

FredGSanford 12-30-2011 02:10 AM

What happens if you run dpkg -i --force-all lpr-dcp195clpr-1.1.3-1.i386, without the .deb part? It should not need the --force-all flag either.

It's been awhile since I ran a Debian type distro but with my AIO, it installed without issues. Mine is a different model.

siouxzieq 01-04-2012 04:35 PM

Thanks again Fred but no that just produced the same message, have been looking at some other forum posts on this printer but still stuck :confused:


All times are GMT -5. The time now is 11:38 PM.