Solved: Package is in a very bad inconsistent state
This worked for me after pretty much scouring the whole of AskUbuntu and Ubuntu forums! (Source). I'm running Lubuntu 14.04
sudo mv /var/lib/dpkg/info/<packagename>.* /tmp/
sudo dpkg --remove --force-remove-reinstreq <packagename>
sudo apt-get remove <packagename>
sudo apt-get autoremove && sudo apt-get autoclean
Make sure that your PPA is set up.
Remove the broken package via the following command:
sudo dpkg --remove --force-remove-reinstreq zramswap-enabler
Install the package again:
sudo apt-get install zramswap-enabler
After restart (not necessary), you are able to install the updates correctly!
Actually you can fix any "Package is in a very bad inconsistent state” issues with this solution!
'd try cleaning the status of my installation before resorting to uninstalling whatever created the problem:
apt-get autoclean
apt-get update
apt-get upgrade
apt-get install -f
much better way to solve this in most cases and in at least one instance had helped me when the other way wouldn't work (because huge dependencies on the package to be removed)
4 reshenie:
Just reinstall the package first:
apt-get install --reinstall zramswap-enabler
https://askubuntu.com/questions/148715/how-to-fix-package-is-in-a-very-bad-inconsistent-state-error