首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法在BeagleBoneBlack (revC)上安装python3

无法在BeagleBoneBlack (revC)上安装python3
EN

Stack Overflow用户
提问于 2020-09-06 06:02:18
回答 2查看 526关注 0票数 1

BeagleBoneBlack revC附带安装了Python2。但我们需要运行Python3。

但是,尝试使用apt-get安装python3会失败。它似乎试图安装下载站点上不存在的3.2版(请参阅http://ftp.us.debian.org/debian/pool/main/p/python3-defaults/ )

代码语言:javascript
复制
root@beaglebone:~# sudo apt-get install python3 -V
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
   python3-minimal (3.2.3-6)
   python3.2 (3.2.3-7+deb7u1)
   python3.2-minimal (3.2.3-7+deb7u1)
Suggested packages:
   python3-doc (3.2.3-6)
   python3-tk (3.2.3-1)
   python3.2-doc (3.2.3-7+deb7u1)
   binfmt-support (2.0.12)
The following NEW packages will be installed:
   python3 (3.2.3-6)
   python3-minimal (3.2.3-6)
   python3.2 (3.2.3-7+deb7u1)
   python3.2-minimal (3.2.3-7+deb7u1)
0 upgraded, 4 newly installed, 0 to remove and 240 not upgraded.
Need to get 4246 kB of archives.
After this operation, 13.4 MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
WARNING: The following packages cannot be authenticated!
  python3.2-minimal python3.2 python3-minimal python3
Install these packages without verification [y/N]? y
Err http://security.debian.org/ wheezy/updates/main python3.2-minimal armhf 3.2.3-7+deb7u1
  404  Not Found [IP: 151.101.0.204 80]
Err http://security.debian.org/ wheezy/updates/main python3.2 armhf 3.2.3-7+deb7u1
  404  Not Found [IP: 151.101.0.204 80]
Err http://ftp.us.debian.org/debian/ wheezy/main python3-minimal all 3.2.3-6
  404  Not Found [IP: 64.50.233.100 80]
Err http://ftp.us.debian.org/debian/ wheezy/main python3 all 3.2.3-6
  404  Not Found [IP: 64.50.233.100 80]
Failed to fetch http://security.debian.org/pool/updates/main/p/python3.2/python3.2-minimal_3.2.3-7+deb7u1_armhf.deb  404  Not Found [IP: 151.101.0.204 80]
Failed to fetch http://security.debian.org/pool/updates/main/p/python3.2/python3.2_3.2.3-7+deb7u1_armhf.deb  404  Not Found [IP: 151.101.0.204 80]
Failed to fetch http://ftp.us.debian.org/debian/pool/main/p/python3-defaults/python3-minimal_3.2.3-6_all.deb  404  Not Found [IP: 64.50.233.100 80]
Failed to fetch http://ftp.us.debian.org/debian/pool/main/p/python3-defaults/python3_3.2.3-6_all.deb  404  Not Found [IP: 64.50.233.100 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

当尝试指定版本时,它也会失败:

代码语言:javascript
复制
root@beaglebone:~# sudo apt-get install python3=3.4
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Version '3.4' for 'python3' was not found

有什么建议吗?

谢谢!

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2020-09-06 16:35:22

我建议获取他们提供的图像的更新版本。我知道python3预装在他们的Buster版本的镜像上。

https://beagleboard.org/latest-images

票数 1
EN

Stack Overflow用户

发布于 2020-09-08 21:01:31

没错。wheezy很老了,在上面浪费时间是没有意义的。将debian镜像升级到最新版本很容易解决这个问题。谢谢!

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/63758895

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档