mib2c-update command not found

In this troubleshooting guide we learn how to fix mib2c-update command not found error message

Introduction

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

mib2c-update: command not found

or when using sudo you get the following error message

sudo: mib2c-update: command not found

Solutions to mib2c-update: command not found

How To Fix mib2c-update: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu mib2c-update is provided by libsnmp-dev package.

libsnmp-dev is:

The Simple Network Management Protocol (SNMP) provides a framework for the exchange of management information between agents (servers) and clients.

The Net-SNMP development files include the library headers, static libraries, net-snmp-config scripts and documentation needed for development of custom SNMP applications.

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

sudo apt-get -y install libsnmp-dev

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

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

sudo apt -y install libsnmp-dev

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

sudo aptitude install libsnmp-dev

Summary

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