Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I tried to remove python2.6 from my Debian system:

$ 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

I did not expect fabric to be removed because it has an OR dependency on python2.6 and python2.7 (and I got the latter installed):

$ 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
share|improve this question
up vote 4 down vote accepted

Checking the reverse dependencies on the other packages reveals the cause:

$ apt-cache show python-nose | grep Depends
Depends: python-pkg-resources, python2.7, python (>= 2.6.6-7~), python (<< 2.8), python2.6

There is already a bug reported about the issue.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.