运行sudo apt-get install python报错

来源:1-7 Google_cloud无GPU环境搭建

weixin_慕仰7418186

2021-03-09

运行sudo apt-get install python之后输入y然后报错,404 not found。
Do you want to continue? [Y/n] y
Ign:1 http://us-east1.gce.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpython2.7-minimal amd64 2.7.1
7-1~18.04ubuntu1.2
Ign:2 http://us-east1.gce.archive.ubuntu.com/ubuntu bionic-updates/main amd64 python2.7-minimal amd64 2.7.17-1
~18.04ubuntu1.2
Ign:3 http://us-east1.gce.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpython2.7-stdlib amd64 2.7.17
-1~18.04ubuntu1.2
Err:1 http://security.ubuntu.com/ubuntu bionic-updates/main amd64 libpython2.7-minimal amd64 2.7.17-1~18.04ubu
ntu1.2
404 Not Found [IP: 35.196.129.83 80]
Ign:4 http://us-east1.gce.archive.ubuntu.com/ubuntu bionic-updates/main amd64 python2.7 amd64 2.7.17-1~18.04ub
untu1.2
Err:2 http://security.ubuntu.com/ubuntu bionic-updates/main amd64 python2.7-minimal amd64 2.7.17-1~18.04ubuntu
1.2
404 Not Found [IP: 35.196.129.83 80]
Err:3 http://security.ubuntu.com/ubuntu bionic-updates/main amd64 libpython2.7-stdlib amd64 2.7.17-1~18.04ubun
tu1.2
404 Not Found [IP: 35.196.129.83 80]
Err:4 http://security.ubuntu.com/ubuntu bionic-updates/main amd64 python2.7 amd64 2.7.17-1~18.04ubuntu1.2
404 Not Found [IP: 35.196.129.83 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/python2.7/libpython2.7-minimal_2.7.17-1~18.04
ubuntu1.2_amd64.deb 404 Not Found [IP: 35.196.129.83 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/python2.7/python2.7-minimal_2.7.17-1~18.04ubu
ntu1.2_amd64.deb 404 Not Found [IP: 35.196.129.83 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/python2.7/libpython2.7-stdlib_2.7.17-1~18.04u
buntu1.2_amd64.deb 404 Not Found [IP: 35.196.129.83 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/python2.7/python2.7_2.7.17-1~18.04ubuntu1.2_a
md64.deb 404 Not Found [IP: 35.196.129.83 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

写回答

2回答

正十七

2021-03-21

另:可以参考tensorflow的官方pip安装文档:https://www.tensorflow.org/install/pip

0
0

正十七

2021-03-21

需要安装python3啦: sudo apt install python3-dev python3-pip python3-venv

0
0

Google老师亲授 TensorFlow2.0 入门到进阶

Tensorflow2.0实战—以实战促理论的方式学习深度学习

1849 学习 · 896 问题

查看课程