stapbpf command not found

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

Introduction

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

stapbpf: command not found

or when using sudo you get the following error message

sudo: stapbpf: command not found

Solutions to stapbpf: command not found

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

In Ubuntu stapbpf is provided by systemtap package.

systemtap is:

SystemTap provides infrastructure to simplify the gathering of information about the running Linux system. This assists diagnosis of a performance or functional problem. SystemTap eliminates the need for the developer to go through the tedious and disruptive instrument, recompile, install, and reboot sequence that may be otherwise required to collect data.

SystemTap provides a simple command line interface and scripting language for writing instrumentation for a live running system.

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

sudo apt-get -y install systemtap

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

You can also use apt command to install systemtap.

sudo apt -y install systemtap

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

sudo aptitude install systemtap

Summary

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