我无法访问软件中心。我尝试删除并重新安装它,但失败并出现以下错误:
$ sudo apt-get remove software-center
dpkg: error processing package software-center (--remove):
package is in a very bad inconsistent state; you should
reinstall it before attempting a removal
Errors were encountered while processing:
software-center
E: Sub-process /usr/bin/dpkg returned an error code (1)
$ sudo apt-get update && sudo apt-get upgrade
dpkg: error processing package software-center (--configure):
package is in a very bad inconsistent state; you should
reinstall it before attempting configuration
Errors were encountered while processing:
software-center
E: Sub-process /usr/bin/dpkg returned an error code (1)
我应该怎么办?
答案1
看来您手动删除了software-center
软件包安装的一些文件。您需要重新安装它。
跑步
sudo apt-get install --reinstall software-center