gethostlatency-bpfcc command not found

In this troubleshooting guide we learn how to fix gethostlatency-bpfcc command not found error message

Introduction

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

gethostlatency-bpfcc: command not found

or when using sudo you get the following error message

sudo: gethostlatency-bpfcc: command not found

Solutions to gethostlatency-bpfcc: command not found

How To Fix gethostlatency-bpfcc: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu gethostlatency-bpfcc is provided by bpfcc-tools package.

bpfcc-tools is:

BPF Compiler Collection (BCC) is a toolkit for creating efficient kernel tracing and manipulation programs

It makes use of extended BPF (Berkeley Package Filter) and provides tools for BPF based Linux IO analysis, networking, monitoring and more

This package provides the command-line tools and examples

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

sudo apt-get -y install bpfcc-tools

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

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

sudo apt -y install bpfcc-tools

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

sudo aptitude install bpfcc-tools

Summary

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