10.04.2 on Eee PC, will not recognise printer

Asked by Allan Bigham

Eee PC 1005HA, Ubuntu 10.04.2 a full install,not dual boot, Brother HL2040 printer.

Printer plugged in to USB port, Admin>Printing> displays "Printing-Localhost" which shows "Not Connected", the submenu Server>New shows printer greyed out.

In Firefox http://localhost:631 returns "cannot establish a connection"

10.04 on a P4 desktop detected and installed the printer in question with no problems; the printer and cable are OK.
The 3 USB ports on the 1005HA all respond normally to MemStks and an external 500GB HDD so the ports are OK.

Of the complete install I expected some problems, but a difficulty with a printer installation was definitely not one of them! Can anyone help please?

Question information

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

run:

cd; wget http://www.brother.com/pub/bsc/linux/dlf/brhl2040lpr-2.0.1-1.i386.deb; sudo dpkg -i ./brhl2040lpr-2.0.1-1.i386.deb; rm ./brhl2040lpr-2.0.1-1.i386.deb; http://www.brother.com/pub/bsc/linux/dlf/cupswrapperHL2040-2.0.1-2.i386.deb; sudo dpkg -i ./cupswrapperHL2040-2.0.1-2.i386.deb; rm ./cupswrapperHL2040-2.0.1-2.i386.deb

Reboot the system with the printer attached and it will be fine.

Revision history for this message
Allan Bigham (bighama) said :
#2

....many thanks for the above, I have run it. I am new at using terminals; looks like I have a conflict, what am I doing wrong. Also if another printer type is installed later will it require this procedure to be followed?

Here is a copy of the run:

allan@allan-netbook:~$ wget http://www.brother.com/pub/bsc/linux/dlf/brhl2040lpr-2.0.1-1.i386.deb
--2011-04-19 11:37:02-- http://www.brother.com/pub/bsc/linux/dlf/brhl2040lpr-2.0.1-1.i386.deb
Resolving www.brother.com... 60.234.9.248, 60.234.9.250
Connecting to www.brother.com|60.234.9.248|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://pub.brother.com/pub/com/bsc/linux/dlf/brhl2040lpr-2.0.1-1.i386.deb [following]
--2011-04-19 11:37:03-- http://pub.brother.com/pub/com/bsc/linux/dlf/brhl2040lpr-2.0.1-1.i386.deb
Resolving pub.brother.com... 60.234.9.249, 60.234.9.248
Reusing existing connection to www.brother.com:80.
HTTP request sent, awaiting response... 200 OK
Length: 33152 (32K) [text/plain]
Saving to: `brhl2040lpr-2.0.1-1.i386.deb'

100%[======================================>] 33,152 186K/s in 0.2s

2011-04-19 11:37:04 (186 KB/s) - `brhl2040lpr-2.0.1-1.i386.deb' saved [33152/33152]

allan@allan-netbook:~$ sudo dpkg -i ./brhl2040lpr-2.0.1-1.i386.deb; rm./brhl2040lpr-2.0.1-1.i386.deb
[sudo] password for allan:
Selecting previously deselected package brhl2040lpr.
dpkg: regarding ./brhl2040lpr-2.0.1-1.i386.deb containing brhl2040lpr:
 brother-lpr-drivers-laser conflicts with brhl2040lpr
  brhl2040lpr (version 2.0.1-1) is to be installed.
dpkg: error processing ./brhl2040lpr-2.0.1-1.i386.deb (--install):
 conflicting packages - not installing brhl2040lpr
Errors were encountered while processing:
 ./brhl2040lpr-2.0.1-1.i386.deb
bash: rm./brhl2040lpr-2.0.1-1.i386.deb: No such file or directory

allan@allan-netbook:~$ http://www.brother.com/pub/bsc/linux/dlf/cupswrapperHL2040-2.0.1-2.i386.deb
bash: http://www.brother.com/pub/bsc/linux/dlf/cupswrapperHL2040-2.0.1-2.i386.deb: No such file or directory

allan@allan-netbook:~$ sudo dpkg -i ./cupswrapperHL2040-2.0.1-2.i386.deb
dpkg: error processing ./cupswrapperHL2040-2.0.1-2.i386.deb (--install):
 cannot access archive: No such file or directory
Errors were encountered while processing:
 ./cupswrapperHL2040-2.0.1-2.i386.deb

allan@allan-netbook:~$ rm./cupswrapperHL2040-2.0.1-2.i386.deb
bash: rm./cupswrapperHL2040-2.0.1-2.i386.deb: No such file or directory

allan@allan-netbook:~$

Revision history for this message
Allan Bigham (bighama) said :
#3
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

ok then run:

sudo apt-get --purge remove brother-lpr-drivers-laser; sudo apt-get --purge autoremove

Then retry.

Revision history for this message
Allan Bigham (bighama) said :
#5

As you suggested, I've run:

sudo apt-get --purge remove brother-lpr-drivers-laser; sudo apt-get --purge autoremove

and then reran the original suggestion, which was OK until:

allan@allan-netbook:~$ rm./brhl2040lpr-2.0.1-1.i386.deb
bash: rm./brhl2040lpr-2.0.1-1.i386.deb: No such file or directory
allan@allan-netbook:~$ wget http://www.brother.com/pub/bsc/linux/dlf/cupswrapperHL2040-2.0.1-2.i386.deb
--2011-04-20 10:34:29-- http://www.brother.com/pub/bsc/linux/dlf/cupswrapperHL2040-2.0.1-2.i386.deb
Resolving www.brother.com... 60.234.9.248, 60.234.9.250
Connecting to www.brother.com|60.234.9.248|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://pub.brother.com/pub/com/bsc/linux/dlf/cupswrapperHL2040-2.0.1-2.i386.deb [following]
--2011-04-20 10:34:30-- http://pub.brother.com/pub/com/bsc/linux/dlf/cupswrapperHL2040-2.0.1-2.i386.deb
Resolving pub.brother.com... 60.234.9.248, 60.234.9.249
Reusing existing connection to www.brother.com:80.
HTTP request sent, awaiting response... 200 OK
Length: 11746 (11K) [text/plain]
Saving to: `cupswrapperHL2040-2.0.1-2.i386.deb'

100%[======================================>] 11,746 30.7K/s in 0.4s

2011-04-20 10:34:31 (30.7 KB/s) - `cupswrapperHL2040-2.0.1-2.i386.deb' saved [11746/11746]

allan@allan-netbook:~$ sudo dpkg -i ./cupswrapperHL2040-2.0.1-2.i386.deb
(Reading database ... 125495 files and directories currently installed.)
Unpacking cupswrapperhl2040 (from .../cupswrapperHL2040-2.0.1-2.i386.deb) ...
Setting up cupswrapperhl2040 (2.0.1-2) ...
/usr/local/Brother/cupswrapper/cupswrapperHL2040-2.0.1: 64: cannot create /usr/share/cups/model/HL2040.ppd: Directory nonexistent
cp: cannot stat `/usr/share/cups/model/HL2040.ppd': No such file or directory
dpkg: error processing cupswrapperhl2040 (--install):
 subprocess installed post-installation script returned error exit status 1
lpinfo: Connection refused
lpinfo: Connection refused
lpadmin: Unable to connect to server: Connection refused
Errors were encountered while processing:
 cupswrapperhl2040
allan@allan-netbook:~$

so I manually set up the model subdirectory: /usr/share/cups/model/HL2040.ppd:

and reran:

sudo dpkg -i ./cupswrapperHL2040-2.0.1-2.i386.deb

with this as a result:

allan@allan-netbook:~$ sudo dpkg -i ./cupswrapperHL2040-2.0.1-2.i386.deb
(Reading database ... 125501 files and directories currently installed.)
Preparing to replace cupswrapperhl2040 2.0.1-2 (using .../cupswrapperHL2040-2.0.1-2.i386.deb) ...
lpadmin: Unable to connect to server: Connection refused
Unpacking replacement cupswrapperhl2040 ...
Setting up cupswrapperhl2040 (2.0.1-2) ...

lpinfo: Connection refused
lpinfo: Connection refused
lpadmin: Unable to connect to server: Connection refused
allan@allan-netbook:~$

What do you make of this? Yet on my P4 with 10.04 the printer is recognised. At least the purge has released a bit of disk space!

Regards

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#6

Not sure, those 2 files are the brother drivers from the brother site. You will need to fight those packages like that till it drops in.

Revision history for this message
andrew thomas (atswartz) said :
#7
Revision history for this message
Allan Bigham (bighama) said :
#8

actionparsnip and andrew, I have finally resorted to a complete reinstall, which has resolved the problem. I must have corrupted cups unwittingly at some stage, I don't know how. The time I've put in trying to resolve the issue, along with the help you've given; it took less time to do the reinstall!! Thanks, and Regards