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

来源:互联网 发布:中国软件发展趋势 编辑:程序博客网 时间:2024/05/20 01:37

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-pipReading package lists... DoneBuilding dependency tree       Reading state information... DoneThe 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-dataUse 'apt-get autoremove' to remove them.The following extra packages will be installed:  python-colorama python-distlib python-html5lib python-pkg-resources  python-setuptoolsSuggested packages:  python-genshi python-distribute python-distribute-docRecommended packages:  build-essential python-dev-allThe following NEW packages will be installed:  python-colorama python-distlib python-html5lib python-pip  python-pkg-resources python-setuptools0 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] yGet: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) ...


原创粉丝点击