Check your BT5 version: cat /etc/debian_version
You can also display the distribution version by: lsb_release -a
According to the author, the instructions are for the "squeeze" version of BT5.
C&P from http://www.binbert.com/blog/2011/06/how-to-install-tor-on-backtrack-5/
kudos to the writer, although I have not tested this on my own, it looks good.
Tor is an open source Anonymous Internet tool. It protects your personal identification from tracking systems by changing the source IP address frequently. Application will create many virtual tunnels through the tor network.
By default Tor is not integrated in BackTrack 5. Why use Tor on Backtrack ? Normally Tor is used to protect the browsing security but Tor can be used for network scanning tools and other information gathering tools, in my next article i will explain how to configure Tor for console applications.
Follow the installation steps:
Open /etc/apt/sources.list file and add following line
deb http://deb.torproject.org/torproject.org squeeze main
if you have "lucid", you can try to enter: deb http://deb.torproject.org/torproject.org lucid main
Open command prompt and run following commands
gpg --keyserver keys.gnupg.net --recv 886DDD89
gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -
apt-get update
apt-get install tor tor-geoipdb
apt-get install privoxy
After installing Privoxy, Open /etc/privoxy/config and append follwing line
forward-socks4a / 127.0.0.1:9050
/etc/init.d/privoxy start
Configure your clients with Ip address 127.0.0.1 and port 8118
To check if you are on the onion network, go to http://cmyip.com or http://www.whatismyip.com to know your current ip address.