Public bug reported: Recently upgraded from a regularly updated Ubuntu 14.04 LTS to Ubuntu 16.04. I have had a problem with dpkg complaining about struct and then python-minimal.
I tried to remove the existing python2.7 packages ( later /usr/lib/python2.7 as well ) and then doing a clean install of python 2.7. I think I might have missed some python2.7 and saw a python2.7.5 doc package. ProblemType: Package DistroRelease: Ubuntu 16.04 Package: python2.7-minimal 2.7.12-1~16.04 ProcVersionSignature: Ubuntu 4.4.0-31.50-generic 4.4.13 Uname: Linux 4.4.0-31-generic x86_64 NonfreeKernelModules: nvidia_uvm nvidia ApportVersion: 2.20.1-0ubuntu2.1 AptOrdering: python2.7-minimal: Install python2.7: Install python2.7-minimal: Configure python2.7: Configure NULL: ConfigurePending Architecture: amd64 Date: Tue Jul 19 18:11:15 2016 DuplicateSignature: package:python2.7-minimal:2.7.12-1~16.04 Setting up python2.7-minimal (2.7.12-1~16.04) ... python2.7: can't open file '/usr/lib/python2.7/py_compile.py': [Errno 2] No such file or directory dpkg: error processing package python2.7-minimal (--configure): subprocess installed post-installation script returned error exit status 2 ErrorMessage: subprocess installed post-installation script returned error exit status 2 RelatedPackageVersions: dpkg 1.18.4ubuntu1.1 apt 1.2.12~ubuntu16.04.1 SourcePackage: python2.7 Title: package python2.7-minimal 2.7.12-1~16.04 failed to install/upgrade: subprocess installed post-installation script returned error exit status 2 UpgradeStatus: Upgraded to xenial on 2016-06-17 (32 days ago) ** Affects: python2.7 (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-package xenial -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1604638 Title: package python2.7-minimal 2.7.12-1~16.04 failed to install/upgrade: subprocess installed post-installation script returned error exit status 2 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/1604638/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs