driftnet command not found

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

Introduction

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

driftnet: command not found

or when using sudo you get the following error message

sudo: driftnet: command not found

Solutions to driftnet: command not found

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

In Ubuntu driftnet is provided by driftnet package.

driftnet is:

Inspired by EtherPEG, Driftnet is a program which listens to network traffic and picks out images from TCP streams it observes. It is interesting to run it on a host which sees a lot of web traffic.

(Obviously, this is an invasion of privacy of a fairly blatant sort. Also, if you are possessed of Victorian sensibilities, and share an unswitched network with others who are not, you should probably not use it.)

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

sudo apt-get -y install driftnet

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

You can also use apt command to install driftnet.

sudo apt -y install driftnet

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

sudo aptitude install driftnet

Summary

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