I'm trying to fix a dpkg error with one of my packages, python-zope.hookable
.
The dpgk -l command looks like this:
pFR python-zope.hookable 4.0.4-4build2 amd64 Hookable object support
However, when I run sudo dpkg -P --force-all python-zope.hookable
, I mysteriously get this output:
dpkg: python-zope.hookable: dependency problems, but removing anyway as you requested:
python-zope.component depends on python-zope.hookable; however:
Package python-zope.hookable is to be removed.
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: package is in a very bad inconsistent state; you should
reinstall it before attempting a removal
(Reading database ... 871356 files and directories currently installed.)
Removing python-zope.hookable (4.0.4-4build2) ...
Killed
E: namespace:121: cannot remove /usr/lib/python2.7/dist-packages/zope/__init__.py
Creating an empty file at /usr/lib/python2.7/dist-packages/zope/__init__.py
simply gives the same error, but without the last line. I suspect this is an issue with all python packages on my machine installed with dpkg, though I dare not test it.
This issue is preventing me from running apt-get install
and apt-get remove
, and dpkg --configure -a
does not seem to change anything.
I'm really at my wits' end, and I'm open to drastic solutions.
/var/log/syslog
for any traces of 'process killed' or 'oom-killer' or such.