pcap2mjr command not found

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

Introduction

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

pcap2mjr: command not found

or when using sudo you get the following error message

sudo: pcap2mjr: command not found

Solutions to pcap2mjr: command not found

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

In Ubuntu pcap2mjr is provided by janus-tools package.

janus-tools is:

janus is a general purpose WebRTC server/gateway with a minimal footprint.

This package contains the following helper tools:

  • janus-pp-rec - extract media file from a Janus recording
  • pcap2mjr - convert a pcap dump to a Janus recording
  • mjr2pcap - convert a Janus recording to pcap format

Packages gstreamer1.0-plugins-good gstreamer1.0-x are needed for included example streaming script.

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

sudo apt-get -y install janus-tools

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

You can also use apt command to install janus-tools.

sudo apt -y install janus-tools

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

sudo aptitude install janus-tools

Summary

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