2017-04-26 158 views
1

) 我試圖用ubunto在gcloud服務器上安裝pip 16.04 我得到了這個錯誤信息。希望你能幫助我。在google-cloud上安裝pip時出錯

https://pastebin.com/Pdyt5n5j

也許pastbin是更好的閱讀。

[email protected]:~/gcloudstuff# sudo apt-get install python-pip Reading package lists... Done Building dependency tree
Reading state information... Done The following additional packages will be installed: binutils build-essential cpp cpp-5 dpkg-dev fakeroot g++ g++-5 gcc gcc-5 libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libasan2 libatomic1 libc-dev-bin libc6-dev libcc1-0 libcilkrts5 libdpkg-perl libexpat1-dev libfakeroot libfile-fcntllock-perl libgcc-5-dev libgomp1 libisl15 libitm1 liblsan0 libmpc3 libmpx0 libpython-all-dev libpython-dev libpython2.7 libpython2.7-dev libquadmath0 libstdc++-5-dev libtsan0 libubsan0 linux-libc-dev make manpages-dev python-all python-all-dev python-dev python-pip-whl python-setuptools python-wheel python2.7-dev Suggested packages: binutils-doc cpp-doc gcc-5-locales debian-keyring g++-multilib g++-5-multilib gcc-5-doc libstdc++6-5-dbg gcc-multilib autoconf automake libtool flex bison gdb gcc-doc gcc-5-multilib libgcc1-dbg libgomp1-dbg libitm1-dbg libatomic1-dbg libasan2-dbg liblsan0-dbg libtsan0-dbg libubsan0-dbg libcilkrts5-dbg libmpx0-dbg libquadmath0-dbg glibc-doc libstdc++-5-doc make-doc python-setuptools-doc The following NEW packages will be installed: binutils build-essential cpp cpp-5 dpkg-dev fakeroot g++ g++-5 gcc gcc-5 libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libasan2 libatomic1 libc-dev-bin libc6-dev libcc1-0 libcilkrts5 libdpkg-perl libexpat1-dev libfakeroot libfile-fcntllock-perl libgcc-5-dev libgomp1 libisl15 libitm1 liblsan0 libmpc3 libmpx0 libpython-all-dev libpython-dev libpython2.7 libpython2.7-dev libquadmath0 libstdc++-5-dev libtsan0 libubsan0 linux-libc-dev make manpages-dev python-all python-all-dev python-dev python-pip python-pip-whl python-setuptools python-wheel python2.7-dev 0 upgraded, 49 newly installed, 0 to remove and 0 not upgraded. Need to get 837 kB/69.0 MB of archives. After this operation, 192 MB of additional disk space will be used. Do you want to continue? [Y/n] y Err:1 http://security.ubuntu.com/ubuntu xenial-security/main amd64 linux-libc-dev amd64 4.4.0-71.92 404 Not Found [IP: 192.158.31.252 80] Err:1 http://security.ubuntu.com/ubuntu xenial-security/main amd64 linux-libc-dev amd64 4.4.0-71.92 404 Not Found [IP: 192.158.31.252 80] E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_4.4.0-71.92_amd64.deb 404 Not F ound [IP: 192.158.31.252 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

+0

我現在有完全相同的問題。任何進展呢? – bsautermeister

回答

1

我已經看到了同樣的錯誤消息,但可以通過運行解決這個問題:

sudo apt-get update 

之後,我可以安裝PIP/PIP 3沒有任何問題:

sudo apt-get install python3-pip 
0

或者如果你想python2運行:

$ sudo apt-get update 
$ sudo apt-get install python3-pip