Debian Wheezy上的Bug Python 2.7.7 VS 2.7.9

Debian Wheezy上的Bug Python 2.7.7 VS 2.7.9,python,debian,apt-get,Python,Debian,Apt Get,我想在我的Debian Wheezy上安装Python 2.7.9,我已经从Debian站点下载了.deb文件。不幸的是,现在我显然引起了一个bug,这是我在apt get升级后得到的: Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these.

我想在我的Debian Wheezy上安装Python 2.7.9,我已经从Debian站点下载了.deb文件。不幸的是,现在我显然引起了一个bug,这是我在apt get升级后得到的:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 libpython2.7 : Depends: python2.7 (= 2.7.3-6+deb7u2) but 2.7.9-2 is installed
 python2.7 : Depends: python2.7-minimal (= 2.7.9-2) but 2.7.3-6+deb7u2 is installed
             Depends: libpython2.7-stdlib (= 2.7.9-2) but it is not installable
 python2.7-dev : Depends: python2.7 (= 2.7.3-6+deb7u2) but 2.7.9-2 is installed
E: Unmet dependencies. Try using -f.

如果我尝试“apt get-f安装”,它会要求我从操作系统中删除超过2GB的内容,我不希望这样。有什么想法吗?

在使用Debian等发行版时,正确的方法是使用官方存储库,即使用apt get install,而不是使用dpkg-i下载和安装

如果您直接使用dpkg,apt需要的重要信息就会丢失

我给你的建议是:

1-在手动安装的软件包上使用dpkg-p撤消更改

2-运行apt获取更新

3-查找包含apt-apt cache search python=或不包含版本的包


4-如果您找不到想要的版本,您可以使用其他官方Debian存储库,将其包含在apt源代码列表文件中

修复方法如下:基本上问题是

python2.7 (= 2.7.3-6+deb7u2) but 2.7.9-2 is installed

我已经下载了python版本2.7.3-6+deb7u2,并用一个简单的dpkg-I安装了它。降级为自动

您两次包含文本?dpkg-p不工作;但是dpkg-configurelibpython2.7给出:dpkg:依赖性问题阻止libpython2.7的配置:libpython2.7依赖于python2.7=2.7.3-6+deb7u2;但是:系统上python2.7的版本是2.7.9-2。dpkg:error processing libpython2.7-configure:dependency problems-在处理libpython2.7时遇到未配置的错误:有没有办法将Python降级到上一个版本?