I tried installing the .deb package for jedit. Big mistake :-). Not only that Ubuntu refused installing it, but it also brought my synaptic into an incosistent state: every time I started synaptic I was getting this error:

The package jedit needs to be reinstalled, but I can't find an archive for it

and then no package was displayed. One of the reasons I like Linux (Ubuntu) over Windows is apt and the synaptic interface. Imagine my desolation.

I tried various “apt-get remove jedit”, clean, autoclean options. No luck. Neither the guys on Ubuntu mailing list could help me out here. Tried removing it using dpkg and I got

dpkg: error processing jedit (--purge):

Package is in a very bad inconsistent state - you should reinstall it before

attempting a removal.

Errors were encountered while processing: jedit

But I finally got it working. This command forced the removal of my incosistent jedit package:

dpkg --remove --force-remove-reinstreq jedit

Update: after I managed to fix it and post this entry, I was finally pointed on ubuntu users mailing list to http://ubuntuforums.org/showthread.php?t=232849&highlight=jedit. Phew! lots of replies before the author figured the answer for himself.

22 responses to “The package jedit needs to be reinstalled, but I can’t find an archive for it

  1. Just wanted to say thank for the solution. Just a quick note, if you copy & paste code the hyphens join together, causing the command line fail.
    Just make use there are two hyphens, ie. ‘ – – ‘ before force and remove.

  2. I had the same problem with the drivers of a Brother multifunction.

    I could fix the problem with ‘dpkg –remove –force-remove-reinstreq mfc9070lpr’. But first, had to remove all the archives (scripts) whose name began with mfc9070 in the directory /var/lib/dpkg/info/ .

    I expect it will be useful.

  3. Thanks chas, I had the same problem with maya (awcommon package), and I didn’t manage to fix my problem (which I created myself), but canceling the files in the /var/lib/dpkg/info/ directory solved my problem!

  4. @maarten

    can you help me on removing this awcommon. I’ve tried everthing bu no luck at all. I really don’t know any way around this.. please help…

Leave a Comment:

Your email address will not be published. Required fields are marked *