“软件包处于非常糟糕的不一致状态 – 您应该在尝试配置之前重新安装它。”

最近,我正在安装从13.04到13.10 ubuntu的新版本,同时还在观看video。 好吧,猜猜发生了什么,我的桌面崩溃了4分钟,然后再次访问桌面,一切似乎搞乱了像字符应该是的盒子符号。

我知道这是一个坏主意,但我决定重新启动暂停安装过程,现在我遇到了这个错误。

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). 

每当我尝试升级或安装任何东西时,它都会弹出。 这是在我完成其余文件更新后。 我尝试了很多东西并阅读了很multithreading。 我现在真的迷路了,请帮忙。

此外,我无法访问面板,我目前正在尝试终端中的所有内容。 错误导致尝试安装gnome面板。

package处于非常糟糕的不一致状态 – 您应该在尝试配置之前重新安装它。

这个问题很容易解决。 只需重新安装包:

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

尝试通过运行以下命令删除untity-lens-photos包,

 sudo dpkg -r untity-lens-photos 

然后通过运行重新安装它,

 sudo apt-get install untity-lens-photos