Исправление сломанных пакетов в Debian

Исправление сломанных пакетов в Debian

У меня Debian (wheezy) box, который пришел в негодное состояние. Я не могу установить или удалить какие-либо пакеты, связанные с python, с помощью apt-get (включая обновление или понижение версии самого python), я получаю это:

# apt-get -f install
Setting up python2.7-minimal (2.7.3-6+deb7u2) ...
ImportError: No module named site
dpkg: error processing python2.7-minimal (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of python-minimal:
 python-minimal depends on python2.7-minimal (>= 2.7.3-1~); however:
  Package python2.7-minimal is not configured yet.
dpkg: error processing python-minimal (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python2.7:
 python2.7 depends on python2.7-minimal (= 2.7.3-6+deb7u2); however:
  Package python2.7-minimal is not configured yet.

(и еще миллион подобных ошибок).

Как выйти из этого состояния?

(Примечание: я попал в это состояние, пытаясь установить python-scikit от jessie на систему, которая работает с некоторыми wheezy-backports)

Связанный контент