如何安装rar(没有安装候选)?

Ale*_*lex 15 installation apt compression software-sources 12.04

我需要包裹rar。但是每当我尝试安装它时都会收到此错误:

Reading package Lists... Done
Building dependency tree
Reading state information... Done
Package rar ist not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only available form another source
E: package 'rar' has no installation candidate.
Run Code Online (Sandbox Code Playgroud)

我必须做什么才能得到rar

Eli*_*gan 16

rarmultiverse 组件中提供,因此您必须启用该存储库。为此,请通过以下三种方式中的任意一种打开“软件源”窗口:

  • Alt+F2并运行software-properties-gtk。(software-properties-kde如果这是 Kubuntu 系统,请改用。)
  • 打开软件更新程序(或更新管理器,在旧版本中)并单击窗口左下角的设置...。
  • 打开软件中心并转到Edit > Software Sources...

软件源窗口显示 Ubuntu 软件选项卡,鼠标指针悬停在多宇宙存储库组件的复选框标签上

在“软件源”窗口的“ Ubuntu 软件”选项卡中,**可从 Internet 下载* 下的复选框之一是:

  • 受版权或法律问题限制的软件(多元宇宙)

选中那个框。系统可能会提示您输入密码以进行更改。完成此操作并选中该框后,单击“关闭”关闭“软件源”窗口。现在再次尝试安装。

(如果它仍然不起作用并且您正在从终端安装apt-get,请尝试运行apt-get update然后再次尝试安装。)

如何找到“没有安装候选”的软件?

为了找出您可能无法安装的原因rar,我做的第一件事就是去packages.ubuntu.com搜索它。

在所有当前支持的版本中搜索 rar 包。
搜索rar在所有支持版本(也可以搜索一个特定版本)。

结果显示它位于多元宇宙组件中。

rar 的搜索结果(在所有非 EoL 版本中搜索)。


小智 14

使用以下命令安装,

sudo apt-get install unrar-free

  • 请阅读[如何写出好的答案](http://askubuntu.com/help/how-to-answer) (6认同)

Rin*_*ind 5

rar存在于多元宇宙:http : //packages.ubuntu.com/quantal/rar

Multiverse 是一个非免费的存储库,所以...确保您启用它/已启用它。

apt-cache policy rar 告诉你在哪里可以找到它:

$ apt-cache 策略 rar
.rar:
  已安装:(无)
  候选人:1:3.7.1-1
  版本表:
     1:3.7.1-1 0
        500 个 http://nl.archive.ubuntu.com hardy/multiverse 包