报错信息
After you get that error, try sudo apt-get -f install to force an install of the files that didn't get loaded because of the error.
Then try sudo apt-get update again, sudo apt-get -f install back and forth until only the package that has the error is left.
正在安装软件的时候,强行结束(出错、退出安装)安装程序。
这时, 软件依赖关系就被破坏掉了。
apt install -f
也不管用了。
现在即使重新安装该软件也不行了, 怎么办呢?
解决办法
sudo dpkg configure -a # delete the problematic package
sudo apt autoremove **packages listed above**
sudo apt clean
sudo apt install **package you want to install**
- 先重新配置软件依赖。
- 然后删除上面所有依赖的软件
- 清理
- 重新安装软件