首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Raspberry pi 4 ubuntu 20.04 (64位)缺少包

Raspberry pi 4 ubuntu 20.04 (64位)缺少包
EN

Ask Ubuntu用户
提问于 2020-07-12 14:04:28
回答 1查看 1.6K关注 0票数 0

我刚刚安装了ubuntu服务器64位到我的raspberry pi (与官方的映像程序),开始使用它,但许多软件包找不到。比如rubypython3-libotrrent等,我得到的不是E: Unable to locate package libboost-python就是E: Package 'python3-libtorrent' has no installation candidate。您有什么解决方案吗,我以前使用过raspbian,它工作得很好,但是速度更慢。谢谢你的回复!

编辑

我的apt更新输出:

代码语言:javascript
复制
Hit:1 http://ppa.launchpad.net/deluge-team/stable/ubuntu focal InRelease
Hit:2 http://ports.ubuntu.com/ubuntu-ports focal InRelease
Hit:3 http://ppa.launchpad.net/fish-shell/release-3/ubuntu focal InRelease
Get:4 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease [107 kB]
Get:5 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease [98.3 kB]
Get:6 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease [107 kB]
Fetched 312 kB in 2s (153 kB/s)  
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.

sudo apt install ruby的输出:

代码语言:javascript
复制
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package ruby is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'ruby' has no installation candidate

编辑2

增加以下几行:

代码语言:javascript
复制
deb http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse

导致错误:

代码语言:javascript
复制
sudo apt update
Hit:1 http://ports.ubuntu.com/ubuntu-ports focal InRelease
Hit:2 http://ppa.launchpad.net/deluge-team/stable/ubuntu focal InRelease                         
Hit:3 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease                                                                                
Hit:4 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease                                                                              
Get:5 http://archive.ubuntu.com/ubuntu focal InRelease [265 kB]                                       
Hit:6 http://ppa.launchpad.net/fish-shell/release-3/ubuntu focal InRelease                      
Hit:7 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease                             
Get:8 http://security.ubuntu.com/ubuntu focal-security InRelease [107 kB]     
Get:9 http://archive.ubuntu.com/ubuntu focal-updates InRelease [107 kB]
Ign:10 http://archive.ubuntu.com/ubuntu focal/main arm64 Packages   
Get:11 http://archive.ubuntu.com/ubuntu focal/main Translation-en [506 kB]
Get:12 http://archive.ubuntu.com/ubuntu focal/main arm64 c-n-f Metadata [28.6 kB]
Get:13 http://archive.ubuntu.com/ubuntu focal/restricted arm64 Packages [1300 B]
Get:13 http://archive.ubuntu.com/ubuntu focal/restricted arm64 Packages [1300 B]
Get:13 http://archive.ubuntu.com/ubuntu focal/restricted arm64 Packages [1300 B]
Get:13 http://archive.ubuntu.com/ubuntu focal/restricted arm64 Packages [1300 B]
Get:13 http://archive.ubuntu.com/ubuntu focal/restricted arm64 Packages [1300 B]
Get:13 http://archive.ubuntu.com/ubuntu focal/restricted arm64 Packages [1300 B]
Ign:13 http://archive.ubuntu.com/ubuntu focal/restricted arm64 Packages
Ign:20 http://archive.ubuntu.com/ubuntu focal/universe arm64 Packages
Ign:21 http://archive.ubuntu.com/ubuntu focal/multiverse arm64 Packages
Ign:10 http://archive.ubuntu.com/ubuntu focal/main arm64 Packages
Ign:13 http://archive.ubuntu.com/ubuntu focal/restricted arm64 Packages
Ign:20 http://archive.ubuntu.com/ubuntu focal/universe arm64 Packages
Ign:21 http://archive.ubuntu.com/ubuntu focal/multiverse arm64 Packages
Ign:10 http://archive.ubuntu.com/ubuntu focal/main arm64 Packages
Ign:13 http://archive.ubuntu.com/ubuntu focal/restricted arm64 Packages
Ign:20 http://archive.ubuntu.com/ubuntu focal/universe arm64 Packages
Get:21 http://archive.ubuntu.com/ubuntu focal/multiverse arm64 Packages [139 kB]
Get:21 http://archive.ubuntu.com/ubuntu focal/multiverse arm64 Packages [139 kB]
Get:21 http://archive.ubuntu.com/ubuntu focal/multiverse arm64 Packages [139 kB]
Get:21 http://archive.ubuntu.com/ubuntu focal/multiverse arm64 Packages [139 kB]
Get:21 http://archive.ubuntu.com/ubuntu focal/multiverse arm64 Packages [139 kB]
Get:21 http://archive.ubuntu.com/ubuntu focal/multiverse arm64 Packages [139 kB]
Get:21 http://archive.ubuntu.com/ubuntu focal/multiverse arm64 Packages [139 kB]
Get:21 http://archive.ubuntu.com/ubuntu focal/multiverse arm64 Packages [139 kB]
Ign:21 http://archive.ubuntu.com/ubuntu focal/multiverse arm64 Packages
Ign:30 http://archive.ubuntu.com/ubuntu focal-updates/main arm64 Packages
Ign:31 http://archive.ubuntu.com/ubuntu focal-updates/restricted arm64 Packages
Ign:32 http://archive.ubuntu.com/ubuntu focal-updates/universe arm64 Packages
Ign:10 http://archive.ubuntu.com/ubuntu focal/main arm64 Packages
Ign:13 http://archive.ubuntu.com/ubuntu focal/restricted arm64 Packages
Ign:20 http://archive.ubuntu.com/ubuntu focal/universe arm64 Packages
Ign:21 http://archive.ubuntu.com/ubuntu focal/multiverse arm64 Packages
Ign:30 http://archive.ubuntu.com/ubuntu focal-updates/main arm64 Packages
Ign:31 http://archive.ubuntu.com/ubuntu focal-updates/restricted arm64 Packages
Ign:32 http://archive.ubuntu.com/ubuntu focal-updates/universe arm64 Packages
Ign:10 http://archive.ubuntu.com/ubuntu focal/main arm64 Packages
Ign:13 http://archive.ubuntu.com/ubuntu focal/restricted arm64 Packages
Ign:20 http://archive.ubuntu.com/ubuntu focal/universe arm64 Packages
Ign:21 http://archive.ubuntu.com/ubuntu focal/multiverse arm64 Packages
Ign:30 http://archive.ubuntu.com/ubuntu focal-updates/main arm64 Packages
Ign:31 http://archive.ubuntu.com/ubuntu focal-updates/restricted arm64 Packages
Ign:32 http://archive.ubuntu.com/ubuntu focal-updates/universe arm64 Packages
Err:10 http://archive.ubuntu.com/ubuntu focal/main arm64 Packages
  404  Not Found [IP: 91.189.88.142 80]
Ign:33 http://security.ubuntu.com/ubuntu focal-security/main arm64 Packages
Get:34 http://security.ubuntu.com/ubuntu focal-security/main Translation-en [46.8 kB]
Get:35 http://security.ubuntu.com/ubuntu focal-security/main arm64 c-n-f Metadata [3224 B]
Get:36 http://security.ubuntu.com/ubuntu focal-security/restricted arm64 Packages [932 B]
Get:36 http://security.ubuntu.com/ubuntu focal-security/restricted arm64 Packages [932 B]
Get:36 http://security.ubuntu.com/ubuntu focal-security/restricted arm64 Packages [932 B]
Get:36 http://security.ubuntu.com/ubuntu focal-security/restricted arm64 Packages [932 B]
Get:36 http://security.ubuntu.com/ubuntu focal-security/restricted arm64 Packages [932 B]
Get:36 http://security.ubuntu.com/ubuntu focal-security/restricted arm64 Packages [932 B]
Ign:13 http://archive.ubuntu.com/ubuntu focal/restricted arm64 Packages          
Ign:20 http://archive.ubuntu.com/ubuntu focal/universe arm64 Packages            
Ign:21 http://archive.ubuntu.com/ubuntu focal/multiverse arm64 Packages
Ign:30 http://archive.ubuntu.com/ubuntu focal-updates/main arm64 Packages        
Ign:31 http://archive.ubuntu.com/ubuntu focal-updates/restricted arm64 Packages  
Ign:32 http://archive.ubuntu.com/ubuntu focal-updates/universe arm64 Packages    
Ign:30 http://archive.ubuntu.com/ubuntu focal-updates/main arm64 Packages        
Ign:31 http://archive.ubuntu.com/ubuntu focal-updates/restricted arm64 Packages
Ign:32 http://archive.ubuntu.com/ubuntu focal-updates/universe arm64 Packages
Err:30 http://archive.ubuntu.com/ubuntu focal-updates/main arm64 Packages
  404  Not Found [IP: 91.189.88.142 80]
Ign:36 http://security.ubuntu.com/ubuntu focal-security/restricted arm64 Packages
Ign:43 http://security.ubuntu.com/ubuntu focal-security/universe arm64 Packages
Ign:33 http://security.ubuntu.com/ubuntu focal-security/main arm64 Packages
Ign:31 http://archive.ubuntu.com/ubuntu focal-updates/restricted arm64 Packages
Ign:32 http://archive.ubuntu.com/ubuntu focal-updates/universe arm64 Packages
Ign:36 http://security.ubuntu.com/ubuntu focal-security/restricted arm64 Packages
Ign:43 http://security.ubuntu.com/ubuntu focal-security/universe arm64 Packages
Ign:33 http://security.ubuntu.com/ubuntu focal-security/main arm64 Packages
Ign:36 http://security.ubuntu.com/ubuntu focal-security/restricted arm64 Packages
Ign:43 http://security.ubuntu.com/ubuntu focal-security/universe arm64 Packages
Ign:33 http://security.ubuntu.com/ubuntu focal-security/main arm64 Packages
Ign:36 http://security.ubuntu.com/ubuntu focal-security/restricted arm64 Packages
Ign:43 http://security.ubuntu.com/ubuntu focal-security/universe arm64 Packages
Ign:33 http://security.ubuntu.com/ubuntu focal-security/main arm64 Packages
Ign:36 http://security.ubuntu.com/ubuntu focal-security/restricted arm64 Packages
Ign:43 http://security.ubuntu.com/ubuntu focal-security/universe arm64 Packages
Err:33 http://security.ubuntu.com/ubuntu focal-security/main arm64 Packages
  404  Not Found [IP: 91.189.91.39 80]
Ign:36 http://security.ubuntu.com/ubuntu focal-security/restricted arm64 Packages
Ign:43 http://security.ubuntu.com/ubuntu focal-security/universe arm64 Packages
Fetched 479 kB in 4s (109 kB/s)      
Reading package lists... Done
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal/main/binary-arm64/Packages  404  Not Found [IP: 91.189.88.142 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-updates/main/binary-arm64/Packages  404  Not Found [IP: 91.189.88.142 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/focal-security/main/binary-arm64/Packages  404  Not Found [IP: 91.189.91.39 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
EN

回答 1

Ask Ubuntu用户

发布于 2020-07-12 15:20:06

我看过这两本指南了。一个用于Ubuntu,另一个用于拉斯班 (都是基于Debian的,因此大多数包是相同的,可以从公共来源安装)。

两者似乎都使用sudo apt install ruby-full,鲁比满,而不是红宝石。

如果这不起作用,你可以考虑使用sudo snap install ruby –classic,如果你可以使用snap。

在我的盒子上运行apt列表:

代码语言:javascript
复制
apt list ruby
Listing... Done
ruby/bionic 1:2.5.1 amd64

此外,您应该用版本更新您的问题。

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

https://askubuntu.com/questions/1258480

复制
相关文章

相似问题

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