从 20.04 升级到 22.04 LTS 失败

从 20.04 升级到 22.04 LTS 失败
dpkg: error processing archive /var/cache/apt/archives/libpam-modules_1.4.0-11ubuntu2_amd64.deb (--unpack):
new libpam-modules:amd64 package pre-installation script subprocess returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/libpam-modules_1.4.0-11ubuntu2_amd64.deb
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/libpam-modules.0.crash'
Exception during pm.DoInstall():  E:Sub-process /usr/bin/dpkg returned an error code (1)

答案1

我遇到了同样的错误消息,可以使用以下命令修复它。

# grep pam_tally /etc/pam.d/*
/etc/pam.d/common-auth
# mv /etc/pam.d/common-auth /etc/pam.d/common-auth.bak
# apt --fix-broken install

相关文章:

相关内容