How to install rar (no installation candidate)?
I need the package rar
. But I get this error whenever I try to install it:
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.
What must I do to get rar
?
Solution 1:
Install with the following commands,
sudo apt-get install unrar-free
Solution 2:
rar
is provided in the multiverse component, so you must enable that repository. To do this, open up the Software Sources window in any of three ways:
- Press Alt+F2 and run
software-properties-gtk
. (Usesoftware-properties-kde
instead if this is a Kubuntu system.) - Open the Software Updater (or Update Manager, in older releases) and click Settings... at the lower-left corner of the window.
- Open the Software Center and go to Edit > Software Sources....
In the Ubuntu Software tab of the Software Sources window, under **Downloadable from the Internet*, one of the checkboxes is:
- Software restricted by copyright or legal issues (multiverse)
Check that box. You may be prompted for your password, to make the change. After you've done so and the box has a check in it, click Close to close the Software Sources window. Now try installing again.
(If it still doesn't work and you're installing from the Terminal with apt-get
, try running apt-get update
then attempting the installation again.)
How to find software with "no installation candidate"?
To find out why you might not have been able to install rar
, the first thing I did was to go to packages.ubuntu.com
and search for it.
Searching for rar
in all supported releases (can also search one specific release).
The results revealed it to be in the multiverse component.
Solution 3:
Package rar
exists in multiverse: http://packages.ubuntu.com/quantal/rar
Multiverse is a non-free repositorie so... make sure you enable it/have it enabled.
apt-cache policy rar
tells you where to find it:
$ apt-cache policy rar rar: Installed: (none) Candidate: 1:3.7.1-1 Version table: 1:3.7.1-1 0 500 http://nl.archive.ubuntu.com hardy/multiverse Packages