I'm trying to install tor on my Kali Linux 2016.1 (kali-rolling). When I type apt-get install tor in Terminal, this error appears:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package tor 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 'tor' has no installation candidate

How can I fix this and install tor?


I tried this: http://www.blackmoreops.com/2013/12/16/installing-tor-kali-linux/ - I added deb http://deb.torproject.org/torproject.org wheezy main to sources file, but it didn't help at all, so I deleted this string and now it's in a default condition

  • What Kali version? – Will Feb 3 '16 at 13:37
  • @Will 2016.1, latest version – nikrom3000 Feb 3 '16 at 13:39
  • Can you show cat /etc/apt/sources.list? – Will Feb 3 '16 at 13:43
  • So far, I'm going to suggest running: apt-get clean && apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y which should get apt and your system packages up to date. – Will Feb 3 '16 at 13:48
  • @Will, see my updated answer. I tried this, no change at all – nikrom3000 Feb 3 '16 at 13:53

I found the solution:

Firstly, I ran:

echo -e "deb http://http.kali.org/kali sana main non-free contrib\ndeb http://security.kali.org/kali-security/ sana/updates main contrib non-free" > /etc/apt/sources.list

and then

apt-get update
apt-get update --fix-missing 

After this Tor was installed normally with apt-get install tor.

protected by Community Jun 4 '16 at 21:22

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.