I tried installing and uninstalling drivers for my Brother Printer. Instead of uninstalling, Kpackage shows several version of the install. I tried to uninstall in Kpackage and get the following:
DEBIAN_FRONTEND=readline; export DEBIAN_FRONTEND; apt-get remove --yes mfc620cnlpr ;echo RESULT=$?
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package cupswrappermfc620cn needs to be reinstalled, but I can't find an archive for it.
RESULT=100
So I try to reinstall and get the following:
dpkg -i '///opt/users/brother/mfc620cnlpr-1.0.2-1.i386.deb' ;echo RESULT=$?
(Reading database ... 89652 files and directories currently installed.)
Preparing to replace mfc620cnlpr 1.0.2-1 (using .../mfc620cnlpr-1.0.2-1.i386.deb) ...
Unpacking replacement mfc620cnlpr ...
(Noting disappearance of brscan2, which has been completely replaced.)
rmdir: /usr/local/Brother/sane/GrayCmData/ALL: No such file or directory
rmdir: /usr/local/Brother/sane/GrayCmData/AL: No such file or directory
rmdir: /usr/local/Brother/sane/GrayCmData: No such file or directory
rmdir: /usr/local/Brother/sane: No such file or directory
dpkg: error processing ///opt/users/brother/mfc620cnlpr-1.0.2-1.i386.deb (--install):
subprocess post-removal script (for disappearance) script returned error exit status 1
Errors were encountered while processing:
///opt/users/brother/mfc620cnlpr-1.0.2-1.i386.deb
RESULT=1
When I try to open Synaptic I get the following:
E: The package cupswrappermfc620cn needs to be reinstalled, but I can't find an archive for it.
E: Internal error opening cache (1). Please report.
and Synaptic closes.
Not sure where to go from here. How do I fix this?
SOLVED - Synaptic and Kpackage
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
SOLVED - Synaptic and Kpackage
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
The Brother .deb packages worked in Kubuntu but are killing installation programs in Mint. I'm going to download the RPM's and use alien to create the deb packages and run those to see if I get better results. I'm at the point now that I can get KPackage and Synaptic to at least open, but I can;t install anything because of corrupt brscan2 package. I need to restart to install packages after the brscan2 package installation becomes corrupt.
Found this on the Ubuntu forums:
Open a console and type in the following:
Code:
sudo gedit /var/lib/dpkg/status
Search through the file for any reference to taskjuggler and CAREFULLY delete all of that entry.
Save the file
Code:
sudo apt-get update
Your problem should now be solved, as Synaptic can no longer see this errant package and as disk space is taken up, it will be over-written.
So in my case I looked for reference to brscan2 and deleted that entry and now all is well.
Open a console and type in the following:
Code:
sudo gedit /var/lib/dpkg/status
Search through the file for any reference to taskjuggler and CAREFULLY delete all of that entry.
Save the file
Code:
sudo apt-get update
Your problem should now be solved, as Synaptic can no longer see this errant package and as disk space is taken up, it will be over-written.
So in my case I looked for reference to brscan2 and deleted that entry and now all is well.