tcpprep command not found

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

Introduction

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

tcpprep: command not found

or when using sudo you get the following error message

sudo: tcpprep: command not found

Solutions to tcpprep: command not found

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

In Ubuntu tcpprep is provided by tcpreplay package.

tcpreplay is:

Tcpreplay is aimed at testing the performance of a NIDS by replaying real background network traffic in which to hide attacks. Tcpreplay allows you to control the speed at which the traffic is replayed, and can replay arbitrary tcpdump traces. Unlike programmatically-generated artificial traffic which doesn’t exercise the application/protocol inspection that a NIDS performs, and doesn’t reproduce the real-world anomalies that appear on production networks (asymmetric routes, traffic bursts/lulls, fragmentation, retransmissions, etc.), tcpreplay allows for exact replication of real traffic seen on real networks. It included the following executables tcpprep, tcprewrite, tcpreplay-edit, tcpbridge and pcap based captures are possible.

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

sudo apt-get -y install tcpreplay

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

You can also use apt command to install tcpreplay.

sudo apt -y install tcpreplay

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

sudo aptitude install tcpreplay

Summary

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