torify command not found

In this troubleshooting guide we learn how to fix torify command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

torify: command not found

or when using sudo you get the following error message

sudo: torify: command not found

Solutions to torify: command not found

How To Fix torify: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu torify is provided by tor package.

tor is:

Tor is a connection-based low-latency anonymous communication system.

Clients choose a source-routed path through a set of relays, and negotiate a “virtual circuit” through the network, in which each relay knows its predecessor and successor, but no others. Traffic flowing down the circuit is decrypted at each relay, which reveals the downstream relay.

Basically, Tor provides a distributed network of relays. Users bounce their TCP streams (web traffic, ftp, ssh, etc) around the relays, and recipients, observers, and even the relays themselves have difficulty learning which users connected to which destinations.

This package enables only a Tor client by default, but it can also be configured as a relay and/or a hidden service easily.

Client applications can use the Tor network by connecting to the local socks proxy interface provided by your Tor instance. If the application itself does not come with socks support, you can use a socks client such as torsocks.

Note that Tor does no protocol cleaning on application traffic. There is a danger that application protocols and associated programs can be induced to reveal information about the user. Tor depends on Torbutton and similar protocol cleaners to solve this problem. For best protection when web surfing, the Tor Project recommends that you use the Tor Browser Bundle, a standalone tarball that includes static builds of Tor, Torbutton, and a modified Firefox that is patched to fix a variety of privacy bugs.

To fix this problem, we can install more using the command below.

sudo apt-get -y install tor

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install tor.

sudo apt -y install tor

Or if you have aptitude installed you can use the following command.

sudo aptitude install tor

Summary

In this tutorial we learn how to fix torify command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.