Score:0

Upgrade failing from 20.04 to 22.04 LTS

ph flag
S M
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)
in flag
Welcome to AskUbuntu. Unfortunately there is very little actionable information here to go on. Could you [edit] your question to include whether is this on bare-metal, inside a VM, inside a Docker container, or in WSL? This will make it a bit easier to offer some specific advice
Score:0
mh flag
ytk

I met the same error message and could fix it with the following command.

# 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

Related posts:

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.