bpfc command not found

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

Introduction

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

bpfc: command not found

or when using sudo you get the following error message

sudo: bpfc: command not found

Solutions to bpfc: command not found

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

In Ubuntu bpfc is provided by netsniff-ng package.

netsniff-ng is:

netsniff-ng is a high performance Linux network sniffer for packet inspection. It can be used for protocol analysis, reverse engineering or network debugging. The gain of performance is reached by ‘zero-copy’ mechanisms, so that the kernel does not need to copy packets from kernelspace to userspace.

netsniff-ng toolkit currently consists of the following utilities:

  • netsniff-ng: a zero-copy packet analyzer, pcap capturing/replaying tool
  • trafgen: a multithreaded low-level zero-copy network packet generator
  • mausezahn: high-level packet generator for appliances with Cisco-CLI
  • ifpps: a top-like kernel networking and system statistics tool
  • curvetun: a lightweight curve25519-based multiuser IP tunnel
  • astraceroute: an autonomous system trace route and DPI testing utility
  • flowtop: a top-like netfilter connection tracking tool
  • bpfc: a [seccomp-]BPF (Berkeley packet filter) compiler, JIT disassembler

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

sudo apt-get -y install netsniff-ng

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

You can also use apt command to install netsniff-ng.

sudo apt -y install netsniff-ng

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

sudo aptitude install netsniff-ng

Summary

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