我尝试删除python2.6
从我的 Debian 系统:
$ sudo apt-get purge python2.6
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
fabric* python-nose* python-pip* python2.6*
0 upgraded, 0 newly installed, 4 to remove and 0 not upgraded.
After this operation, 11.0 MB disk space will be freed.
Do you want to continue [Y/n]? n
Abort.
我没有期待fabric
被删除,因为它具有 OR 依赖关系python2.6
和python2.7
(我安装了后者):
$ apt-cache show fabric | grep Depends
Depends: python2.7 | python2.6, python (>= 2.6.6-7~), python (<< 2.8), python-paramiko (>= 1.6), python-pkg-resources, python-nose
答案1
检查对其他包的反向依赖性揭示了原因:
$ apt-cache show python-nose | grep Depends
Depends: python-pkg-resources, python2.7, python (>= 2.6.6-7~), python (<< 2.8), python2.6
已经有一个错误报告了该问题。