The post installation file /var/lib/dpkg/info/python-minimal.postinst runs the following command:
python2.7 -m compileall /usr/share/python/ >/dev/null Running the command manually (without the /dev/null redirect) produces the following error for me: Compiling /usr/share/python/rekall-forensic/lib/python2.7/site-packages/pexpect/async.py ... File "/usr/share/python/rekall-forensic/lib/python2.7/site-packages/pexpect/async.py", line 16 transport, pw = yield from asyncio.get_event_loop()\ ^ SyntaxError: invalid syntax I removed the /usr/share/python/rekall-forensic folder and was able to "apt install -f". Likely a different package is causing you trouble, but try running that command for more information. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to python-defaults in Ubuntu. https://bugs.launchpad.net/bugs/1750586 Title: package python-minimal 2.7.12-1~16.04 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1 Status in python-defaults package in Ubuntu: Confirmed Bug description: There seems to be a dependency snarl: python-minimal is already the newest version (2.7.12-1~16.04). python-minimal set to manually installed. You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: python : PreDepends: python-minimal (= 2.7.11-1) but 2.7.12-1~16.04 is to be installed python-all : Depends: python (= 2.7.12-1~16.04) but 2.7.11-1 is to be installed python-all-dev : Depends: python (= 2.7.12-1~16.04) but 2.7.11-1 is to be installed Depends: libpython-all-dev (= 2.7.12-1~16.04) but 2.7.11-1 is to be installed python-dev : Depends: python (= 2.7.12-1~16.04) but 2.7.11-1 is to be installed Depends: libpython-dev (= 2.7.12-1~16.04) but 2.7.11-1 is to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). apt-get -f install tries to set up python-minimal (2.7.12-1~16.04) and returns 1. ProblemType: Package DistroRelease: Ubuntu 16.04 Package: python-minimal 2.7.12-1~16.04 ProcVersionSignature: Ubuntu 4.4.0-109.132-generic 4.4.98 Uname: Linux 4.4.0-109-generic x86_64 NonfreeKernelModules: nvidia_uvm nvidia ApportVersion: 2.20.1-0ubuntu2.15 Architecture: amd64 Date: Tue Feb 20 08:48:01 2018 DuplicateSignature: package:python-minimal:2.7.12-1~16.04 Setting up python-minimal (2.7.12-1~16.04) ... dpkg: error processing package python-minimal (--configure): subprocess installed post-installation script returned error exit status 1 ErrorMessage: subprocess installed post-installation script returned error exit status 1 InstallationDate: Installed on 2016-10-23 (484 days ago) InstallationMedia: Ubuntu 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160719) RelatedPackageVersions: dpkg 1.18.4ubuntu1.3 apt 1.2.25 SourcePackage: python-defaults Title: package python-minimal 2.7.12-1~16.04 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1 UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python-defaults/+bug/1750586/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp