
我有一個 debian(氣喘吁籲)盒子,它已經進入了一個扭曲的狀態。我無法使用 apt-get 安裝或刪除任何與 python 相關的套件(包括升級或降級 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.
(還有一百萬個類似的錯誤)。
如何從這種狀態中恢復過來?
(注意:我透過嘗試在一個帶有一些 wheezy-backports 的系統上安裝來自 jessie 的 python-scikit 進入了這種狀態)