Eri*_*vik 3 package-management apt rar software-installation
我已经根据类似问题添加了多元宇宙存储库。我还在https://packages.ubuntu.com/jammy/rar上确认该包应该位于该存储库中。
我的版本:
ubuntu@ubuntu:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy
Run Code Online (Sandbox Code Playgroud)
资料来源:
ubuntu@ubuntu:~$ sudo grep -v '^#' /etc/apt/sources.list
deb http://ports.ubuntu.com/ubuntu-ports jammy main restricted
deb http://ports.ubuntu.com/ubuntu-ports jammy-updates main restricted
deb http://ports.ubuntu.com/ubuntu-ports jammy universe
deb http://ports.ubuntu.com/ubuntu-ports jammy-updates universe
deb http://ports.ubuntu.com/ubuntu-ports jammy multiverse
deb http://ports.ubuntu.com/ubuntu-ports jammy-updates multiverse
deb http://ports.ubuntu.com/ubuntu-ports jammy-backports main restricted universe multiverse
deb http://ports.ubuntu.com/ubuntu-ports jammy-security main restricted
deb http://ports.ubuntu.com/ubuntu-ports jammy-security universe
deb http://ports.ubuntu.com/ubuntu-ports jammy-security multiverse
Run Code Online (Sandbox Code Playgroud)
我已经运行 apt update 但仍然收到错误:
ubuntu@ubuntu:~$ sudo apt install rar
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package rar 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 'rar' has no installation candidate
Run Code Online (Sandbox Code Playgroud)
我缺少什么?
在你的 中sources.list,你有很多ports.ubuntu.com资源,这意味着你可能有一个 ARM 处理器。
在https://packages.ubuntu.com/jammy/rar中,您可以看到它仅适用于amd64,即常见的 64 位 x86 处理器(这对于专有软件来说很常见,供应商不提供软件包64 位 x86 系统以外的任何系统)。
该软件包不适用于 ARM,这就是您收到此错误消息的原因。
据该网站介绍,这个flatpak 包适用于 ARM,并且可以解压 rar 档案。
sudo apt install flatpak
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install flathub io.github.peazip.PeaZip
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1202 次 |
| 最近记录: |