Public bug reported: I got the error while upgrading my os.
ProblemType: Package DistroRelease: Ubuntu 20.04 Package: ansible 2.9.6+dfsg-1 ProcVersionSignature: Ubuntu 5.13.0-39.44~20.04.1-generic 5.13.19 Uname: Linux 5.13.0-39-generic x86_64 ApportVersion: 2.20.11-0ubuntu27.23 Architecture: amd64 CasperMD5CheckResult: skip Date: Mon Apr 18 13:22:14 2022 DpkgTerminalLog: Removing ansible (2.9.6+dfsg-1) ... /var/lib/dpkg/info/ansible.prerm: 6: py3clean: not found dpkg: error processing package ansible (--remove): installed ansible package pre-removal script subprocess returned error exit status 127 dpkg: too many errors, stopping DuplicateSignature: package:ansible:2.9.6+dfsg-1 Removing ansible (2.9.6+dfsg-1) ... /var/lib/dpkg/info/ansible.prerm: 6: py3clean: not found dpkg: error processing package ansible (--remove): installed ansible package pre-removal script subprocess returned error exit status 127 ErrorMessage: installed ansible package pre-removal script subprocess returned error exit status 127 InstallationDate: Installed on 2021-08-16 (244 days ago) InstallationMedia: Ubuntu 20.04.2.0 LTS "Focal Fossa" - Release amd64 (20210209.1) PackageArchitecture: all Python3Details: /usr/bin/python3.8, Python 3.8.10, python3-minimal, 3.8.2-0ubuntu2 PythonDetails: /usr/bin/python2.7, Python 2.7.18, python-is-python2, 2.7.17-4 RelatedPackageVersions: dpkg 1.19.7ubuntu3 apt 2.0.6 SourcePackage: ansible Title: package ansible 2.9.6+dfsg-1 failed to install/upgrade: installed ansible package pre-removal script subprocess returned error exit status 127 UpgradeStatus: No upgrade log present (probably fresh install) mtime.conffile..etc.ansible.ansible.cfg: 2021-10-14T21:49:50.379726 ** Affects: ansible (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-package focal need-duplicate-check -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1969355 Title: package ansible 2.9.6+dfsg-1 failed to install/upgrade: installed ansible package pre-removal script subprocess returned error exit status 127 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ansible/+bug/1969355/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs