I'm running Ubuntu 14.04 LTS.
Each time I run an APT or dpkg
command, it does what it supposed to do until it come to the package masalla-icon-theme
(which I'm not using anymore). The package downloads, but as soon as apt tries to unpack it, my computer freezes. This is the error I get when trying to update packages:
dpkg: error processing package masalla-icon-theme (--configure):
package is in a very bad inconsistent state; you should
reinstall it before attempting configuration
I tried waiting but it always stay stuck.
I tried removing the package from /var/lib/dpkg/status
or by emptying the APT cache but this didn't help.
sudo vim /etc/apt/sources.list
remove the line that contains 'masalla-icon-theme' and do an apt-get update. – efthialex Apr 23 '16 at 10:08