Author: Mike Burrows Date: To: Hampshire LUG Discussion List Subject: Re: [Hampshire] [Fwd: can't get rid of a package]
> So try: >
> $ sudo aptitude purge mfc240ccupswrapper
>
> Cheers,
> Andy
> --------------------------------------------------------------
Hi Andy.
Think i removed every thing using the above script.
Re-installed the brother driver for cups.
had another go at the cupswrapper and got this lot:
marvin:/home/testermike/brother# dpkg -i --force-all
--force-architecture mfc240ccupswrapper-1.0.0-9.i386.deb
Selecting previously deselected package mfc240ccupswrapper.
(Reading database ... 153116 files and directories currently installed.)
Preparing to replace mfc240ccupswrapper 1.0.0-9 (using
mfc240ccupswrapper-1.0.0-9.i386.deb) ...
/var/lib/dpkg/info/mfc240ccupswrapper.prerm: line
3: /usr/local/Brother/Printer/mfc240c/cupswrapper/cupswrappermfc240c: No
such file or directory
dpkg: warning - old pre-removal script returned error exit status 127
dpkg - trying script from the new package instead ...
/var/lib/dpkg/tmp.ci/prerm: line
3: /usr/local/Brother/Printer/mfc240c/cupswrapper/cupswrappermfc240c: No
such file or directory
dpkg: error processing mfc240ccupswrapper-1.0.0-9.i386.deb (--install):
subprocess new pre-removal script returned error exit status 127
/var/lib/dpkg/info/mfc240ccupswrapper.postinst: line
3: /usr/local/Brother/Printer/mfc240c/cupswrapper/cupswrappermfc240c: No
such file or directory
dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 127
Errors were encountered while processing:
mfc240ccupswrapper-1.0.0-9.i386.deb
marvin:/home/testermike/brother#
I'm not sure if the driver and wrapper installed correctly anyway (I
somehow doubt it) but certainly the printer does not appear in CUPS.