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.


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

I had the same problem with the library libgcc1:i386. After running sudo apt-get --reinstall install libgcc1, I got following message:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies.
 libgcc1:i386 : Depends: libc6:i386 (>= 2.2.4)
 but it is not going to be installed

So at the end, simply running

sudo apt-get -f install

repaired the package installation.

Afterwards I removed it, because I did not needed it.


Try to remove untity-lens-photos package by running the below command,

sudo dpkg -r untity-lens-photos

And then reinstall it by running,

sudo apt-get install untity-lens-photos

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.