Hello and thank you for filing this bug report. It seems like you must have some local configuration change, as the issue is:
Preparing to unpack .../python-cryptography_1.2.3-1ubuntu0.1_i386.deb ... File "/usr/bin/pyclean", line 63 except (IOError, OSError), e: ^ SyntaxError: invalid syntax dpkg: warning: subprocess old pre-removal script returned error exit status 1 dpkg: trying script from the new package instead ... File "/usr/bin/pyclean", line 63 except (IOError, OSError), e: ^ SyntaxError: invalid syntax dpkg: error processing archive /var/cache/apt/archives/python-cryptography_1.2.3-1ubuntu0.1_i386.deb (--unpack): subprocess new pre-removal script returned error exit status 1 which is not a syntax error in python2, but is in python3. Did you by any chance change your default python interpreter (/usr/bin/python) to python3 (not recommended or allowed by PEP). Can you provide: apt-cache policy python-minimal python -V outputs? ** Changed in: python-cryptography (Ubuntu) Status: New => Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1647901 Title: package python-cryptography 1.2.3-1 failed to install/upgrade: subprocess new pre-removal script returned error exit status 1 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python-cryptography/+bug/1647901/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs