[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

bothersome Brother package



I couldn't get a .deb from Brother (for printing) to install and now I
can't seem to get rid off it whatever I do (see below - it wouldn't
in/de-stall since some directories not present so I created them but it
doesn't help NB /usr/local has lots of my valuable data too!). I don't
need it since I've sorted how to print to the Brother printer without
said .deb but with it hanging about it's making present 'apt-get's very
messy. All help welcome - couldn't see how to sort this mess out from
the man pages.


michael@ratty:~$ dpkg -C
The following packages are only half configured, probably due to
problems
configuring them the first time.  The configuration should be retried
using
dpkg --configure <package> or the configure menu option in dselect:
 hl5150dlpr           Brother lpr Printer Definitions

michael@ratty:~$ sudo apt-get remove --purge hl5150dlpr
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be REMOVED:
  hl5150dlpr*
0 upgraded, 0 newly installed, 1 to remove and 28 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue? [Y/n]
(Reading database ... 106822 files and directories currently installed.)
Removing hl5150dlpr ...
dpkg - warning: while removing hl5150dlpr, unable to remove directory
`/usr/loca l': Device or resource busy - directory may be a mount
point ?
/var/lib/dpkg/info/hl5150dlpr.postrm: line 3: /etc/init.d/lpd: No such
file or d irectory
dpkg: error processing hl5150dlpr (--purge):
 subprocess post-removal script returned error exit status 127
/var/lib/dpkg/info/hl5150dlpr.postinst: line
3: /usr/local/Brother/inf/setupPrin tcap: No such file or directory
/var/lib/dpkg/info/hl5150dlpr.postinst: line 4: /etc/init.d/lpd: No such
file or  directory
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 127
Errors were encountered while processing:
 hl5150dlpr
E: Sub-process /usr/bin/dpkg returned an error code (1)
michael@ratty:~$ dpkg -C
The following packages are only half installed, due to problems during
installation.  The installation can probably be completed by retrying
it;
the packages can be removed using dselect or dpkg --remove:
 hl5150dlpr           Brother lpr Printer Definitions

michael@ratty:~$ sudo mkdir -p /usr/local/Brother/inf
michael@ratty:~$ sudo
touch /usr/local/Brother/inf/setupPrintcap /etc/init.d/lpd
michael@ratty:~$ sudo apt-get remove --purge hl5150dlpr Reading Package
Lists... Done
Building Dependency Tree... Done
The following packages will be REMOVED:
  hl5150dlpr
0 upgraded, 0 newly installed, 1 to remove and 28 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue? [Y/n]
(Reading database ... 106809 files and directories currently installed.)
Removing hl5150dlpr ...
dpkg - warning: while removing hl5150dlpr, unable to remove directory
`/usr/loca l': Device or resource busy - directory may be a mount
point ?
/var/lib/dpkg/info/hl5150dlpr.postrm: line 3: /etc/init.d/lpd:
Permission denied
dpkg: error processing hl5150dlpr (--remove):
 subprocess post-removal script returned error exit status 126
Errors were encountered while processing:
 hl5150dlpr
E: Sub-process /usr/bin/dpkg returned an error code (1)
michael@ratty:~$ dpkg -C
The following packages are only half installed, due to problems during
installation.  The installation can probably be completed by retrying
it;
the packages can be removed using dselect or dpkg --remove:
 hl5150dlpr           Brother lpr Printer Definitions

michael@ratty:~$ sudo dpkg --remove hl5150dlpr
(Reading database ... 106809 files and directories currently installed.)
Removing hl5150dlpr ...
dpkg - warning: while removing hl5150dlpr, unable to remove directory
`/usr/loca l': Device or resource busy - directory may be a mount
point ?
/var/lib/dpkg/info/hl5150dlpr.postrm: line 3: /etc/init.d/lpd:
Permission denied
dpkg: error processing hl5150dlpr (--remove):
 subprocess post-removal script returned error exit status 126
Errors were encountered while processing:
 hl5150dlpr

-- 
Michael Bane
Atmospheric Physics Group
University of Manchester



Reply to: