python-pip : Depends: python-setuptools (= 0.6c1) 问题

http://luojinghappy.blog.51cto.com/683032/1629661



安装apt-get install python-pip 遇到以下问题。


root@saltstackminion:~# apt-get install python-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 python-pip : Depends: python-setuptools (>= 0.6c1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

解决办法:

First remove the python-pkg-resources completely using

 sudo apt-get purge python-pkg-resources

Once completed successfully, first  run

  sudo apt-get -f install

then

   sudo apt-get install python-pip



fabric@ubuntu:~/soft$  sudo apt-get install python-pip
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  app-install-data apt-xapian-index gir1.2-gmenu-3.0 laptop-detect
  libqt4-designer libqt4-help libqt4-opengl libqt4-scripttools libqt4-svg
  libqt4-test libqtassistantclient4 libqtwebkit4 oneconf-common
  python-commandnotfound python-debtagshw python-defer python-dirspec
  python-gdbm python-httplib2 python-oneconf python-openssl python-pam
  python-piston-mini-client python-qt4 python-serial python-sip
  python-twisted-bin python-xapian python3-oneconf python3-piston-mini-client
  software-center-aptdaemon-plugins ubuntu-extras-keyring
  ubuntuone-client-data
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  python-colorama python-distlib python-html5lib python-pkg-resources
  python-setuptools
Suggested packages:
  python-genshi python-distribute python-distribute-doc
Recommended packages:
  build-essential python-dev-all
The following NEW packages will be installed:
  python-colorama python-distlib python-html5lib python-pip
  python-pkg-resources python-setuptools
0 upgraded, 6 newly installed, 0 to remove and 1 not upgraded.
Need to get 604 kB of archives.
After this operation, 2,699 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty/universe python-colorama all 0.2.5-0.1ubuntu1 [18.3 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ trusty/universe python-distlib all 0.1.8-1 [113 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ trusty/main python-html5lib all 0.999-2 [83.2 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu/ trusty/main python-pkg-resources all 3.3-1ubuntu1 [61.9 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu/ trusty/main python-setuptools all 3.3-1ubuntu1 [230 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu/ trusty/universe python-pip all 1.5.4-1 [97.7 kB]
Fetched 604 kB in 7s (77.7 kB/s)                                               
Selecting previously unselected package python-colorama.
(Reading database ... 168441 files and directories currently installed.)
Preparing to unpack .../python-colorama_0.2.5-0.1ubuntu1_all.deb ...
Unpacking python-colorama (0.2.5-0.1ubuntu1) ...
Selecting previously unselected package python-distlib.
Preparing to unpack .../python-distlib_0.1.8-1_all.deb ...
Unpacking python-distlib (0.1.8-1) ...
Selecting previously unselected package python-html5lib.
Preparing to unpack .../python-html5lib_0.999-2_all.deb ...
Unpacking python-html5lib (0.999-2) ...
Selecting previously unselected package python-pkg-resources.
Preparing to unpack .../python-pkg-resources_3.3-1ubuntu1_all.deb ...
Unpacking python-pkg-resources (3.3-1ubuntu1) ...
Selecting previously unselected package python-setuptools.
Preparing to unpack .../python-setuptools_3.3-1ubuntu1_all.deb ...
Unpacking python-setuptools (3.3-1ubuntu1) ...
Selecting previously unselected package python-pip.
Preparing to unpack .../python-pip_1.5.4-1_all.deb ...
Unpacking python-pip (1.5.4-1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up python-colorama (0.2.5-0.1ubuntu1) ...
Setting up python-distlib (0.1.8-1) ...
Setting up python-html5lib (0.999-2) ...
Setting up python-pkg-resources (3.3-1ubuntu1) ...
Setting up python-setuptools (3.3-1ubuntu1) ...
Setting up python-pip (1.5.4-1) ...


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

0X码上链

你的鼓将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值