I'm using a Debian based distribution (e.g. Ubuntu, Kubuntu etc). When installing the CUPS Wrapper driver, I get the following error message: "/usr/local/Brother/cupswrapper/cupswrapper[model name]: No such file or directory". (Linux)
1. Uninstall cupswrapper:
Comment out the lines which include "lpadmin" from:
/var/lib/dpkg/info/cupswrapper[model name].prerm
/var/lib/dpkg/info/cupswrepper[model name].postinst
Unpack the package
dpkg --unpack cupswrapper[model name].[version].dpkg
Open /usr/local/Brother/cupswrapper/cupswrapper[model name] to edit.
Look for the line with "lpadmin -p [model name] -E -v .......".
Change "-m" to "-P" in the line
Add the file-path of the PPD file written in the line.
the file path = "/usr/share/cups/model/"
Example.
BEFORE (Type the whole command as a single line before hitting enter).:
lpadmin -p MFC9420CN -E -v usb:/dev/usb/lp0 -m brmfc9420cn.ppd
AFTER (Type the whole command as a single line before hitting enter).:
lpadmin -p MFC9420CN -E -v usb:/dev/usb/lp0 -P /usr/share/cups/model/brmfc9420cn.ppd
*** if you use Debian and it doesn't have lpadmin, please delete the whole line which refers to lpadmin.