DPKG – Fix ‘Package is in a Very Bad Inconsistent State’ Error

dpkg

Recently, i was installing the new version from 13.04 to 13.10 ubuntu while also watching a video. Well, guess what happened, my desktop crashed for like 4 minutes and then upon gaining access to the desktop again everything seemed messed up like box symbols where characters should be.

I know it was a bad idea but i decided to reboot halting the installation process and now i am stuck with this error.

dpkg: error processing unity-lens-photos (--configure):
package is in a very bad inconsistent state - you should reinstall it before attempting configuration.

Errors were encountered while processing: untity-lens-photos
e: subprocess /usr/bin/dpkg returned an error code (1).

And it pretty much pops up everytime i try to upgrade, or install anything. This was after i finished updating the rest of my files. I have tried many things and read many threads. I am really lost right now, please help.

Also i have no access to a panel and i am currently trying everything in the terminal. Attempts to install a gnome panel have been halted by the error.

Best Answer

package is in a very bad inconsistent state - you should reinstall it before attempting configuration.

The issue is easy to fix. Just reinstall the package:

sudo apt-get --reinstall install unity-lens-photos
Related Question