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

Solution 1:

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

Simply removing the package shouldn't be done since it could leave behind files or directories that were not cleaned by the removal script. If you want to remove it, do it afterwards the reinstallation.