Removing virtualenvwrapper (4.3.1-2) ... Purging configuration files for virtualenvwrapper (4.3.1-2) ... Removing python-stevedore (1.12.0-1) ... Removing python-pbr (1.8.0-4ubuntu1) ... Purging configuration files for python-pbr (1.8.0-4ubuntu1) ... Removing python-pip (8.1.1-2ubuntu0.4) ... File "/usr/bin/pyclean", line 63 except (IOError, OSError), e: ^ SyntaxError: invalid syntax dpkg: error processing package python-pip (--purge): subprocess installed pre-removal script returned error exit status 1 Traceback (most recent call last): File "/usr/bin/pycompile", line 35, in from debpython.version import SUPPORTED, debsorted, vrepr, \ File "/usr/share/python/debpython/version.py", line 24, in from ConfigParser import SafeConfigParser ImportError: No module named 'ConfigParser' dpkg: error while cleaning up: subprocess installed post-installation script returned error exit status 1 Removing python-virtualenv (15.0.1+ds-3ubuntu1) ... Removing python-setuptools (20.7.0-1) ... Removing python-pkg-resources (20.7.0-1) ... File "/usr/bin/pyclean", line 63 except (IOError, OSError), e: ^ SyntaxError: invalid syntax dpkg: error processing package python-pkg-resources (--purge): subprocess installed pre-removal script returned error exit status 1 Removing python-six (1.10.0-3) ... File "/usr/bin/pyclean", line 63 except (IOError, OSError), e: ^ SyntaxError: invalid syntax dpkg: error processing package python-six (--purge): subprocess installed pre-removal script returned error exit status 1