通过“升级”软件更新程序“,它面临一个错误:
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
然后它就起作用了。