![从 18.04LTS 升级到 20.04LTS 时出错](https://linux22.com/image/1073794/%E4%BB%8E%2018.04LTS%20%E5%8D%87%E7%BA%A7%E5%88%B0%2020.04LTS%20%E6%97%B6%E5%87%BA%E9%94%99.png)
通过“升级”软件更新程序“,它面临一个错误:
Could not install the package:
/tmp/apt-dpkg-install-JCuWPV/07-apparmor_2.13.3-7ubuntu5.2_amd64.deb package may not be in working state
Please consider supporting a bug report.
new apparmor package pre-installation script subprocess returened error exit status 1
这个过程持续了下去。最后无法安装升级。
The upgrade has aborted. Your system could be in an unstable state. A recovery will run now (dpkg--configure-a)
之后它显示
升级已完成,但升级过程中出现错误。
系统没有通过打扫干净和重启进程一切都失败了。
现在该怎么办?我应该删除 Apparmor 包还是重新安装它?
答案1
同样的问题。我这样做了:
apt --fix-broken install
apt autoremove
apt update && apt upgrade
然后再次:
apt --fix-broken install
apt upgrade
然后它就起作用了。