libnet-config command not found

In this troubleshooting guide we learn how to fix libnet-config command not found error message

Introduction

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

libnet-config: command not found

or when using sudo you get the following error message

sudo: libnet-config: command not found

Solutions to libnet-config: command not found

How To Fix libnet-config: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu libnet-config is provided by libnet1-dev package.

libnet1-dev is:

libnet provides a portable framework for low-level network packet writing and handling.

libnet features portable packet creation interfaces at the IP layer and link layer, as well as a host of supplementary functionality.

Using libnet, quick and simple packet assembly applications can be whipped up with little effort. With a bit more time, more complex programs can be written (Traceroute and ping were easily rewritten using libnet and libpcap).

This package contains the files needed to compile and link programs that use libnet.

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

sudo apt-get -y install libnet1-dev

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

You can also use apt command to install libnet1-dev.

sudo apt -y install libnet1-dev

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

sudo aptitude install libnet1-dev

Summary

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