dpkg: error processing package python-cairo (--configure):
package is in a very bad inconsistent state; you should
reinstall it before attempting configuration
python中有一个破坏的包。每当我尝试安装软件包时,都会抛出此错误。
请帮我解决这个问题!谢谢!
答案 0 :(得分:2)
taskkill /PID here_goes_PID /F
答案 1 :(得分:2)
尝试以下代码。它的工作原理
sudo mv /var/lib/dpkg/info/<packagename>.* /tmp/
sudo dpkg --remove --force-remove-reinstreq <packagename>
sudo apt-get remove <packagename>
sudo apt-get autoremove && sudo apt-get autoclean