I am running Ubuntu 11.04 on a standard box.
I have been trying print to a Brother dcp7065dn printer without success.
I first fetched and attempted to install the lpr driver from the Brother
website. This failed.
I ran:
dpkg -i -force-all dcp7065dnlpr-2.1.0-1.i386.deb
and got:
Unpacking replacement dcp7065dnlpr-2.1.0-1.i386 ...
start: Unknown job: lpd
dpkg: warning: subprocess old post-removal script returned error exit
status 1
dpkg - trying script from the new package instead ...
start: Unknown job: lpd
dpkg: error processing dcp7065dnlpr-2.1.0-1.i386.deb (--install):
subprocess new post-removal script returned error exit status 1
start: Unknown job: lpd
dpkg: error while cleaning up:
subprocess new post-removal script returned error exit status 1
Errors were encountered while processing:
dcp7065dnlpr-2.1.0-1.i386.deb
I then tried:
sudo dpkg -P dcp7065dnlpr-2.1.0-1.i386
and got:
dpkg: warning: there's no installed package matching dcp7065dnlpr-2.1.0-1.i386
If I try:
sudo apt-get install -f
I get:
Preparing to replace dcp7065dnlpr 2.1.0-1 (using
.../dcp7065dnlpr-2.1.0-1.i386.deb) ...
Unpacking replacement dcp7065dnlpr ...
start: Unknown job: lpd
dpkg: warning: subprocess old post-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
start: Unknown job: lpd
dpkg: error processing
/home/rocky/MyDebs/./OLD/dcp7065dnlpr-2.1.0-1.i386.deb (--unpack):
subprocess new post-removal script returned error exit status 1
start: Unknown job: lpd
dpkg: error while cleaning up:
subprocess new post-removal script returned error exit status 1
Errors were encountered while processing:
/home/rocky/MyDebs/./OLD/dcp7065dnlpr-2.1.0-1.i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
If I start up Synaptic Package Manager and select Brother and then package:
dcp7065dnlpr
(installed version: 2.1.0-1)
(latest version 2.1.0-1)
(Description Brother DCP-7065DN LPR driver)
and then try installs, reinstalls, removes, or complete removals I run into
similar problems.
On advice from someone in my local LUG I eventually I was able to get the command:
sudo dpkg -P dcp7065dnlpr-2.1.0-1.i386
to work by editing the files postinst and postrm in /var/lib/dpkg/info/
and commenting out commands like:
/etc/init.d/lpd restart
I then tried:
sudo /etc/init.d/lpd restart
and got:
Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the stop(8) and then start(8) utilities,
e.g. stop lpd ; start lpd. The restart(8) utility is also available.
start: Unknown job: lpd
If I try:
sudo start lpd
I get:
start: Unknown job: lpd
If while in /etc/inid.d I do:
ls -l lpd
I get:
lrwxrwxrwx 1 root root 16 2011-09-26 13:33 lpd -> /etc/init.d/cups
If I do:
ls -l cups
I get:
lrwxrwxrwx 1 root root 21 2011-09-18 02:39 cups ->/lib/init/upstart-job
If while in /lib/init I do:
ls -l upstart-job
I get:
-rwxr-xr-x 1 root root 2182 2011-04-20 16:45 upstart-job
So this file exists. It is a shell script.
I am no expert with shell scripts but my interpretation of the
shell script is that it runs:
>> start lpd.
which explains its output.
I don't know how to fix this problem so I went back to the Brother
web site and downloaded the cups version of the driver for the printer.
This installed without problems.
I don't know if I am then supposed to start cups somehow or if it is started
with the install.
In any case I then tried to add the printer (system/administration/printing).
I tried many times and ways both through by router and through a direct connection
to my printer but nothing worked. I can't give a clear explanation as to what
I did because am no longer sure. I currently have 5 printer Icons in the printer
GUI but none of them work and I don't know how to get rid of them.
Note that if I did a database search from the Printer GUI/page my printer driver is
not one of the drivers listed and trying the dcp7045lprdn printer driver
also didn't work.
So here are some questions:
1) What is the problem with lpd, should I fix it and if so how?
2) Do I need to start cups now that I have it installed?
3) Should I uninstall cups and go back to the lpr driver?
4) How do I get rid of the icons on the printer GUI page that don't work.
5) Are my problems likely to be simplified if I upgrade to Ubuntu 11.10?
6) A reinstall seems like overkill but will it help?
Any advice most welcome.
Ralph Boland
Bookmarks