Running into this error while installing cassandra
Unpacking python-setuptools (30.3.0) ...
dpkg: error processing archive /var/cache/apt/archives/python-setuptools_30.3.0_all.deb (--unpack):
trying to overwrite '/usr/lib/python2.7/dist-packages/pkg_resources/extern/__init__.py', which is also in package python-pkg-resources 20.7.0-1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/python-setuptools_30.3.0_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
I'm unable to purge python-pkg-resources
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
python-aptdaemon : Depends: python-pkg-resources but it is not going to be installed
python-chardet : Depends: python-pkg-resources but it is not going to be installed
python-cryptography : Depends: python-setuptools (>= 11.3) but it is not going to be installed
python-zope.interface : Depends: python-setuptools but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
aditya@konoha2:/var/lib/dpkg/info$
I'm stuck, unable to install anything or even clean the current installation. Any help will be appreciated.