I installed a cups wrapper for a printer, but it's broken. Now both the Store and Synaptic won't install or remove any packages because the "mfc240ccupswrapper" cannot be repaired or changed. I've tried to force remove it to no avail.
This is the output of attempting to remove the package:
Removing mfc240ccupswrapper ...
/var/lib/dpkg/info/mfc240ccupswrapper.prerm: 3: /usr/local/Brother/Printer/mfc240c/cupswrapper/cupswrappermfc240c: not found
dpkg: error processing mfc240ccupswrapper (--remove):
subprocess installed pre-removal script returned error exit status 127
No apport report written because MaxReports is reached already
/var/lib/dpkg/info/mfc240ccupswrapper.postinst: 3: /usr/local/Brother/Printer/mfc240c/cupswrapper/cupswrappermfc240c: not found
chmod: cannot access `/usr/local/Brother/Printer/mfc240c/cupswrapper': No such file or directory
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
mfc240ccupswrapper