Brother mcf 8840d package uninstall
My printer will not print.
When I run computer janitor it brings up the below program to be removed.
mcf8840dlpr:i386
Package will be removed
Size: 0B
Package is no longer supported: It is no longer in the Package archive.
Brother print driver
Cleanup fails with the message; System clean up could not complete. Be sure no other package manager such as Synaptic
or Update Manager is running.
It then reports a system problem and sends it off.
How do I remove the package and install a working driver?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu cups Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Manfred Hampl
- Solved:
- Last query:
- Last reply:
Related FAQ:
None Link to a FAQ
Revision history for this message
|
#1 |
Can you give the output of:
sudo apt-get --purge remove mcf8840dlpr:i386; lsb_release -a
Thanks
Revision history for this message
|
#2 |
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package mcf8840dlpr:i386
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04 LTS
Release: 12.04
Codename: precise
Revision history for this message
|
#3 |
dpkg -l | grep mcf
What is output please?
Revision history for this message
|
#5 |
desertdog62@
mkdir: cannot create directory `/home/
desertdog62@
desertdog62@
--2012-06-18 09:56:44-- http://
Resolving www.brother.com (www.brother.
Connecting to www.brother.com (www.brother.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://
--2012-06-18 09:56:44-- http://
Resolving pub.brother.com (pub.brother.
Reusing existing connection to www.brother.com:80.
HTTP request sent, awaiting response... 200 OK
Length: 28906 (28K) [text/plain]
Saving to: `mfc8840dlpr-
100%[==
2012-06-18 09:56:45 (194 KB/s) - `mfc8840dlpr-
desertdog62@
[sudo] password for desertdog62:
Sorry, try again.
[sudo] password for desertdog62:
Sorry, try again.
[sudo] password for desertdog62:
Selecting previously unselected package mfc8840dlpr:i386.
(Reading database ... 235783 files and directories currently installed.)
Preparing to replace mfc8840dlpr:i386 1.1.2-1 (using mfc8840dlpr-
Unpacking replacement mfc8840dlpr:i386 ...
/var/lib/
dpkg: warning: subprocess old post-removal script returned error exit status 127
dpkg - trying script from the new package instead ...
/var/lib/
dpkg: error processing mfc8840dlpr-
subprocess new post-removal script returned error exit status 127
/var/lib/
dpkg: error while cleaning up:
subprocess new post-removal script returned error exit status 127
Errors were encountered while processing:
mfc8840dlpr-
Revision history for this message
|
#6 |
It seems you missed an important step in the installation instructions of the Brother printer driver:
http://
Open a terminal and issue the command
sudo ln -s /etc/init.d/cups /etc/init.d/lpd
and then try the "sudo dpkg -i ..." command again
Revision history for this message
|
#7 |
desertdog62@
ln: failed to create symbolic link `/etc/init.d/lpd': File exists
desertdog62@
mkdir: cannot create directory `/var/spool/lpd': Permission denied
desertdog62@
lppasswd: Only root can add or delete passwords.
desertdog62@
[sudo] password for desertdog62:
Setting /etc/apparmor.
desertdog62@
mkdir: cannot create directory `/usr/share/
desertdog62@
ln: failed to create symbolic link `/etc/init.d/lpd': File exists
desertdog62@
mkdir: cannot create directory `/var/spool/lpd': Permission denied
desertdog62@
ia32-libs: command not found
Revision history for this message
|
#8 |
The messages from your system are contradictory.
The installation complains with
"/etc/init.d/lpd: not found"
And the attempt to repair it with the "sudo ln ..." command comes back with
"`/etc/init.d/lpd': File exists"
Please open a terminal and issue the commands
ls -l /etc/init.d/lpd
file /etc/init.d/lpd
cat /var/lib/
and report the results.
By the way, you tried to execute some commands from http://
Revision history for this message
|
#9 |
desertdog62@
lrwxrwxrwx 1 root root 16 Jun 20 07:39 /etc/init.d/lpd -> /etc/init.d/cups
desertdog62@
/etc/init.d/lpd: symbolic link to `/etc/init.d/cups'
desertdog62@
#!/bin/sh
# ESP Package Manager v3.5.1
/etc/init.d/lpd restart
I am unable to do any updates or install any packages. I continue to get system errors that are being reported and sent out.
Revision history for this message
|
#10 |
So apparently the link for /etc/init.s/lpd is there.
If you try again with
cd ~/brotherdriver
sudo dpkg -i mfc8840dlpr-
what is the output?
Revision history for this message
|
#11 |
desertdog62@
bash: cd: /home/desertdog
desertdog62@
[sudo] password for desertdog62:
dpkg: error processing mfc8840dlpr-
cannot access archive: No such file or directory
Errors were encountered while processing:
mfc8840dlpr-
desertdog62@
Revision history for this message
|
#12 |
Apparently you already deleted the file and directory, so you have to donwload again:
mkdir ~/brotherdriver
cd ~/brotherdriver
wget http://
sudo dpkg -i mfc8840dlpr-
Revision history for this message
|
#13 |
mkdir ~/brotherdriver
cd ~/brotherdriver
wget http://
sudo dpkg -i mfc8840dlpr-
desertdog62@
desertdog62@
desertdog62@
--2012-06-22 06:14:42-- http://
Resolving www.brother.com (www.brother.
Connecting to www.brother.com (www.brother.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://
--2012-06-22 06:14:49-- http://
Resolving pub.brother.com (pub.brother.
Connecting to pub.brother.com (pub.brother.
HTTP request sent, awaiting response... 200 OK
Length: 28906 (28K) [text/plain]
Saving to: `mfc8840dlpr-
100%[==
2012-06-22 06:14:50 (87.2 KB/s) - `mfc8840dlpr-
desertdog62@
[sudo] password for desertdog62:
Sorry, try again.
[sudo] password for desertdog62:
Sorry, try again.
[sudo] password for desertdog62:
Selecting previously unselected package mfc8840dlpr:i386.
(Reading database ... 235783 files and directories currently installed.)
Preparing to replace mfc8840dlpr:i386 1.1.2-1 (using mfc8840dlpr-
Unpacking replacement mfc8840dlpr:i386 ...
initctl: Unknown job: lpd
Setting up mfc8840dlpr:i386 (1.1.2-1) ...
mkdir: cannot create directory `/var/spool/
chown: cannot access `/var/spool/
chgrp: cannot access `/var/spool/
chmod: cannot access `/var/spool/
initctl: Unknown job: lpd
desertdog62@
Revision history for this message
|
#14 |
Try:
sudo mkdir -p /var/spool/
Then retry
Revision history for this message
|
#15 |
desertdog62@
desertdog62@
mkdir: cannot create directory `/home/
desertdog62@
desertdog62@
--2012-06-22 07:29:55-- http://
Resolving www.brother.com (www.brother.
Connecting to www.brother.com (www.brother.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://
--2012-06-22 07:29:55-- http://
Resolving pub.brother.com (pub.brother.
Connecting to pub.brother.com (pub.brother.
HTTP request sent, awaiting response... 200 OK
Length: 28906 (28K) [text/plain]
Saving to: `mfc8840dlpr-
100%[==
2012-06-22 07:29:56 (198 KB/s) - `mfc8840dlpr-
desertdog62@
(Reading database ... 235795 files and directories currently installed.)
Preparing to replace mfc8840dlpr:i386 1.1.2-1 (using mfc8840dlpr-
Unpacking replacement mfc8840dlpr:i386 ...
initctl: Unknown job: lpd
Setting up mfc8840dlpr:i386 (1.1.2-1) ...
initctl: Unknown job: lpd
Revision history for this message
|
#16 |
An error occured. please run Package Manager from the right click menu or apt- get into a terminal to see what is wrong. The error message was: "Unknown Error: "<type exceptions.
Revision history for this message
|
#17 |
The package that you need is available for download from the brother web pages.
Apparently theer was some misinterpretation of the information on the brother driver download pages:
There are two different environments for printing - lpr and cups. You need one. You seem to have cups installed on your system, so you have to add the cupswrapper driver to activate the printer, and not the lpr version which was used in most of the previous commands.
Try the following commands, one after the other:
mkdir ~/brotherdriver
cd ~/brotherdriver
wget -c http://
sudo dpkg -P mfc8840dlpr --force-
sudo dpkg -i cupswrapperMFC8
dpkg -l | grep 8840
wget -c http://
gunzip BR8840_2_GPL.ppd
sudo cp BR8840_2_GPL.ppd /usr/share/ppd
sudo chmod 644 /usr/share/
sudo chown root:root /usr/share/
sudo /etc/init.d/cupsys restart
Please select ALL output and copy/paste it into a new message of theis question thread.
Follow the steps in http://
5a-1. Open a web browser and go to "http://
5a-2. Click "Add Printer" and set the following parameters: Name/Device/
Revision history for this message
|
#18 |
Ups, a typo error:
The command in line number 8 must read
gunzip BR8840_2_GPL.ppd.gz
Revision history for this message
|
#19 |
desertdog62@
mkdir: cannot create directory `/home/
desertdog62@
desertdog62@
--2012-06-26 08:04:46-- http://
Resolving www.brother.com (www.brother.
Connecting to www.brother.com (www.brother.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://
--2012-06-26 08:04:48-- http://
Resolving pub.brother.com (pub.brother.
Connecting to pub.brother.com (pub.brother.
HTTP request sent, awaiting response... 200 OK
The file is already fully retrieved; nothing to do.
desertdog62@
dpkg: warning: there's no installed package matching mfc8840dlpr
dpkg: error: package name in specifier '--force-
desertdog62@
(Reading database ... 235795 files and directories currently installed.)
Preparing to replace cupswrappermfc8
cups stop/waiting
cups start/running, process 3319
Unpacking replacement cupswrappermfc8
Setting up cupswrappermfc8
rm -f /usr/lib/
initctl: Unknown job: lpd
cups stop/waiting
cups start/running, process 3392
desertdog62@
ii mfc8840dlpr:i386 1.1.2-1 Brother lpr Printer Definitions
desertdog62@
--2012-06-26 08:04:56-- http://
Resolving www.brother.com (www.brother.
Connecting to www.brother.com (www.brother.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://
--2012-06-26 08:04:56-- http://
Resolving pub.brother.com (pub.brother.
Connecting to pub.brother.com (pub.brother.
HTTP request sent, awaiting response... 200 OK
Length: 4616 (4.5K) [text/plain]
Saving to: `BR8840_
100%[==
2012-06-26 08:04:57 (914 KB/s) - `BR8840_
desertdog62@
gzip: BR8840_2_GPL.ppd already exists; do you wish to overwrite (y or n)? y
not overwritten
desertdog62@
Revision history for this message
|
#20 |
After re-running the command the problem is mostly fixed. I am able to run updates and computer janitor which cleaned up several outstanding problems. So, I believe this can be closed. Thank everyone for all the help. I really appreciate it.
Revision history for this message
|
#21 |
Thanks Manfred Hampl, that solved my question.
Revision history for this message
|
#22 |
I am happy to read that the package management system is operating again.
Now there is the question if you can print and scan with your device.
If you need that functionality and if you are unable to activate it and need help, please open a new question for that.
And - as it is a duplicate to this question - please set also question https:/