On Thu, Nov 11, 2021 at 12:38:33PM -0500, Stephen P. Molnar wrote: > I am running buster on my Linux platform. >
Perhaps consider updating to Bullseye (Debian 11) as the latest stable version. Printer driver support has been improved and many printers now run "driverless" and work out of the box. > I have installed a new Brother Laser print using the current Brother Linux > installer. > If this is the Brother installer from Brother - a commercial product - we probably can't help. Take it up with Brother? How did you download it - from where - and how did you install it > The printer is working, but when I try running Synaptic I get an error: > > E: The package brscan4 needs to be reinstalled, but I can't find an archive > for it. > E: Internal error opening cache (1). Please report. > That suggest that this wasn't a Debian package recognised by packaging databases, maybe. > I tried Goggling but didn't find any solutions. Then I tried uninstalling > the offending package and got an error: > > comp@AbNormal:~/Downloads/Brother-MFC-L2710DW$ sudo ./uninstaller_brscan4 > [sudo] password for comp: > dpkg: error processing package brscan4 (--purge): > package is in a very bad inconsistent state; you should > reinstall it before attempting a removal > Errors were encountered while processing: > brscan4 > Not properly installed: you might apt-get --fix-install If the worst is the worst, dpkg --configure -a might help. The last resort is forcibly deleting bits of package and manually amending the package database which is somthing you _really_ don't want to do unless absolutely unavoidable. > That failed. Fin ally, I tried reinstalling with dpkg, which also failed. > The complete log is attached. > > At this point I am completely beyond my depth in even starting to understand > the error messages, let alone solving it. > > Help will be much appreciated. > > Thanks in advance. > > -- > Stephen P. Molnar, Ph.D. > www.molecular-modeling.net > 614.312.7528 (c) > Skype: smolnar1 > > comp@AbNormal:~/Downloads/Brother-MFC-L2710DW$ l > total 544 > -rw-r--r-- 1 root root 109890 May 7 2021 brscan4-0.4.10-1.amd64.deb > -rw-r--r-- 1 root root 71758 May 7 2021 brscan-skey-0.3.1-2.amd64.deb > -rwxr-xr-- 1 comp comp 143001 Nov 10 07:28 linux-brprinter-installer-2.2.3-1 > -rw-r--r-- 1 root root 80536 Nov 11 07:25 mfcl2710dwpdrv-4.0.0-1a.i386.deb > -rw-r--r-- 1 root root 122978 May 7 2021 mfcl2710dwpdrv-4.0.0-1.i386.deb > -rw-r--r-- 1 comp comp 5907 Nov 11 07:26 run.installer.log > -rwxr--r-- 1 root root 96 Nov 11 07:26 uninstaller_brscan4 > -rwxr--r-- 1 root root 43 Nov 11 07:26 uninstaller_brscan-skey > -rwxr--r-- 1 root root 1177 Nov 11 07:26 uninstaller_MFCL2710DW > comp@AbNormal:~/Downloads/Brother-MFC-L2710DW$ sudo ./uninstaller_brscan4 > [sudo] password for comp: > dpkg: error processing package brscan4 (--purge): > package is in a very bad inconsistent state; you should > reinstall it before attempting a removal > Errors were encountered while processing: > brscan4 > comp@AbNormal:~/Downloads/Brother-MFC-L2710DW$ sudo dpkg -i > brscan4-0.4.10-1.amd64.deb > Selecting previously unselected package brscan4. > (Reading database ... 495753 files and directories currently installed.) > Preparing to unpack brscan4-0.4.10-1.amd64.deb ... > /var/lib/dpkg/info/brscan4.prerm: 3: /var/lib/dpkg/info/brscan4.prerm: > /opt/brother/scanner/brscan4/setupSaneScan4: not found > /var/lib/dpkg/info/brscan4.prerm: 4: /var/lib/dpkg/info/brscan4.prerm: > /opt/brother/scanner/brscan4/udev_uninstall.sh: not found > rm: cannot remove '/opt/brother/scanner/brscan4/udev_uninstall.sh': No such > file or directory > dpkg: warning: old brscan4 package pre-removal script subprocess returned > error exit status 1 > dpkg: trying script from the new package instead ... > /var/lib/dpkg/tmp.ci/prerm: 3: /var/lib/dpkg/tmp.ci/prerm: > /opt/brother/scanner/brscan4/setupSaneScan4: not found > /var/lib/dpkg/tmp.ci/prerm: 4: /var/lib/dpkg/tmp.ci/prerm: > /opt/brother/scanner/brscan4/udev_uninstall.sh: not found > rm: cannot remove '/opt/brother/scanner/brscan4/udev_uninstall.sh': No such > file or directory > dpkg: error processing archive brscan4-0.4.10-1.amd64.deb (--install): > new brscan4 package pre-removal script subprocess returned error exit status > 1 > This software is based in part on the work of the Independent JPEG Group. > /var/lib/dpkg/info/brscan4.postinst: 18: /var/lib/dpkg/info/brscan4.postinst: > /opt/brother/scanner/brscan4/setupSaneScan4: not found > /var/lib/dpkg/info/brscan4.postinst: 19: /var/lib/dpkg/info/brscan4.postinst: > /opt/brother/scanner/brscan4/udev_config.sh: not found > dpkg: error while cleaning up: > installed brscan4 package post-installation script subprocess returned error > exit status 127 > Errors were encountered while processing: > brscan4-0.4.10-1.amd64.deb > comp@AbNormal:~/Downloads/Brother-MFC-L2710DW$ > Manually delete all files under /opt/brother/scanner/* and try again? Hope this helps in some smwall way at least. With every good wish, as ever, Andy Cater