SOLVED - Synaptic and Kpackage

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
gman
Level 2
Level 2
Posts: 95
Joined: Thu May 24, 2007 3:56 pm
Location: "Key West" Milwaukee

SOLVED - Synaptic and Kpackage

Post by gman »

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?
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.
gman
Level 2
Level 2
Posts: 95
Joined: Thu May 24, 2007 3:56 pm
Location: "Key West" Milwaukee

Post by gman »

This is the first time I have ever encountered this in a distro and it is rather disturbing. If I have to reinstall I'm going to blow a gasket!
gman
Level 2
Level 2
Posts: 95
Joined: Thu May 24, 2007 3:56 pm
Location: "Key West" Milwaukee

Post by gman »

Should also mention that every time I try to run apt-get something from command line I get the following:

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.
gman
Level 2
Level 2
Posts: 95
Joined: Thu May 24, 2007 3:56 pm
Location: "Key West" Milwaukee

Post by gman »

Not quite sure what I did, but a few more attempts to reinstall in KPackage seemed to work.
gman
Level 2
Level 2
Posts: 95
Joined: Thu May 24, 2007 3:56 pm
Location: "Key West" Milwaukee

Post by gman »

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.
gman
Level 2
Level 2
Posts: 95
Joined: Thu May 24, 2007 3:56 pm
Location: "Key West" Milwaukee

Post by gman »

Installation programs hosed again by brscan2. Now I get the following whne trying to install packages:

E: brscan2: subprocess post-removal script returned error exit status 1
gman
Level 2
Level 2
Posts: 95
Joined: Thu May 24, 2007 3:56 pm
Location: "Key West" Milwaukee

Post by gman »

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.
exploder
Level 15
Level 15
Posts: 5623
Joined: Tue Feb 13, 2007 10:50 am
Location: HartfordCity, Indiana USA

Post by exploder »

Nice solution! Were you able to get the printer working?
gman
Level 2
Level 2
Posts: 95
Joined: Thu May 24, 2007 3:56 pm
Location: "Key West" Milwaukee

Post by gman »

I was able to get the printer working by using advice from some threads on the Ubuntu forum. I'm working on a how for the Brother printer install. I may also work on a wireless how to for RTL8187.
Locked

Return to “Software & Applications”