Thursday, September 28, 2006

apt-get error fixed

The situation: I was searching for a new lite version of java IDE to works with my kanotix box on the internet when suddenly i stumbled up with jEdit. So i decided to try the software . After browsing the packages.debian.org, i perform the apt-get operation to download and install jEdit. Unfortunately it is somehow corrupted, and it affect my apt-get command too!

The Problem: Everytime I tried to perform upgrade/installation/whatsover using apt-get, it really pissed me off with this message:

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


The Solution: Force uninstall it using this command in terminal:

root@localhost:~# dpkg --force-all -r jedit


And here's the output:
root@localhost:~# dpkg --force-all -r 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.
160172 files and directories currently installed.)
Removing jedit ...


Viola! My apt-get works!!
Supposedly this will work on any other packages too =)

1 Comments:

At 6:04 AM, Anonymous Anonymous said...

you can always go back to debian packages and rpm in case of messing up stuffs like this

 

Post a Comment

<< Home