作者:手机用户2502940275 | 来源:互联网 | 2023-02-05 15:41
)我尝试使用ubunto 16.04在gcloud服务器上安装pip,但出现此错误消息。希望你能帮助我。
https://pastebin.com/Pdyt5n5j
也许pastbin更好看。
root@bascic:~/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?
1> bsautermeist..:
我已经看到了相同的错误消息,但是可以通过运行来解决:
sudo apt-get update
之后,我可以没有任何问题地安装pip / pip3:
sudo apt-get install python3-pip