![修复 Debian 上损坏的软件包](https://linux22.com/image/1419737/%E4%BF%AE%E5%A4%8D%20Debian%20%E4%B8%8A%E6%8D%9F%E5%9D%8F%E7%9A%84%E8%BD%AF%E4%BB%B6%E5%8C%85.png)
我有一个 debian (wheezy) 盒子,它已经陷入了困境。我无法使用 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 的 wheezy 系统上安装 jessie 的 python-scikit 时陷入了这种状态)