I cannot update anything including Zorin. Process halted too many errors

I tried to install brscan for my Brother MFC. I doesn't work but i cannot uninstall it. when I try I get "Process halted because of too many errors". I have tried everything on the internet including -purge. Nothing works. Do I have to re-install Zorin to get rid of this ??

marcin@HPzorin:~$ sudo apt remove --purge brscan
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
brscan
0 upgraded, 0 newly installed, 1 to remove and 86 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 278142 files and directories currently installed.)
Removing brscan (0.2.4) ...
rmdir: failed to remove '/usr/local/Brother/sane/GrayCmData/BHL': No such file o
r directory
rmdir: failed to remove '/usr/local/Brother/sane/GrayCmData/BHL2': No such file
or directory
rmdir: failed to remove '/usr/local/Brother/sane/GrayCmData/BHL2FB': No such fil
e or directory
rmdir: failed to remove '/usr/local/Brother/sane/GrayCmData/BHLFB': No such file
or directory
rmdir: failed to remove '/usr/local/Brother/sane/GrayCmData/BHMFB': No such file
or directory
rmdir: failed to remove '/usr/local/Brother/sane/GrayCmData/BHminiFB': No such f
ile or directory
rmdir: failed to remove '/usr/local/Brother/sane/GrayCmData/YL4': No such file o
r directory
rmdir: failed to remove '/usr/local/Brother/sane/GrayCmData/YL4FB': No such file
or directory
rmdir: failed to remove '/usr/local/Brother/sane/GrayCmData/ZL2': No such file o
r directory
rmdir: failed to remove '/usr/local/Brother/sane/GrayCmData/ZL2FB': No such file
or directory
rmdir: failed to remove '/usr/local/Brother/sane/GrayCmData/ZLe': No such file o
r directory
rmdir: failed to remove '/usr/local/Brother/sane/GrayCmData/ZLeFB': No such file
or directory
rmdir: failed to remove '/usr/local/Brother/sane/GrayCmData': No such file or di
rectory
rmdir: failed to remove '/usr/local/Brother/sane': No such file or directory
dpkg: error processing package brscan (--remove):
installed brscan package post-removal script subprocess returned error exit sta
tus 1
dpkg: too many errors, stopping
Errors were encountered while processing:
brscan
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)

The errors are saying that the files it's trying to uninstall are already gone. Try ls /usr/local/Brother. If it's an empty directory or if the response is that that path doesn't exist at all, something deleted the files without removing the entry in APT's database. I would try repairing the package (I'm on my phone or I'd look up the command line; probably sudo apt repair and then package name.) Once it's repaired, removal should work. If not, there's probably a way to just delete it from APT's database, but I'd treat that as a last resort.

Welcome to the Forum!

Did You checked if the Directory /usr/local/Brother/sane is exists? And how do You have installed this brscan Package? Did You downloaded it from Brother? If yes: Did You check if it is compatible with Ubuntu 22.04 (the Base of Zorin)?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.