python-pip : Depends: python-setuptools (= 0.6c1) 問題

來源:互聯網
上載者:User

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) ...


相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.