Ubuntu, Inconsistent apt-get State

I recently installed a debian package that left apt-get in a very bad state. Whenever I tried to upgrade or install a package I received the following error.

% sudo apt-get upgrade
Reading package lists… Done
Building dependency tree… Done
E: The package jedit needs to be reinstalled, but I can’t find an archive for it.

If I tried to uninstall the package I would get the following.

% sudo dpkg –remove jedit
dpkg: error processing jedit (–remove):
Package is in a very bad inconsistent state – you should
reinstall it before attempting a removal.
Errors were encountered while processing: jedit

The only way I was able to get the package manager working properly was to run

% sudo dpkg –force-remove-reinstreq –remove jedit
dpkg – warning, overriding problem because –force enabled:
Package is in a very bad inconsistent state – you should
reinstall it before attempting a removal.
(Reading database …
dpkg: serious warning: files list file for package `jedit’ missing, assuming package has no files currently installed.
107365 files and directories currently installed.)
Removing jedit …


 
 
 

Leave a Reply


Mmm, I am really impressed with NOVO coffee. Very good! Maybe it's just because I've been drinking the Folgers coffee at the office.

Just saved $290 by changing the damn radiator myself

Doh, I ran out of propane halfway through a brew session. That added an extra hour to an already long brew day.

Follow me on Twitter