snmptrapfmt command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
snmptrapfmt: command not found
or when using sudo you get the following error message
sudo: snmptrapfmt: command not found
Solutions to snmptrapfmt: command not found
How To Fix snmptrapfmt: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu snmptrapfmt is provided by snmptrapfmt package.
snmptrapfmt is:
This package contains a configurable snmp trap handler daemon for snmpd. The output of this trap handler daemon may be specified via a configuration file and written to a logfile or to the syslog daemon. During installation of this package, the configuration file for the snmptrapd daemon is changed (old version is saved) to activate the trap handler. The snmpd and snmptrapd daemons are restarted.
To fix this problem, we can install more using the command below.
sudo apt-get -y install snmptrapfmt
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install snmptrapfmt.
sudo apt -y install snmptrapfmt
Or if you have aptitude installed you can use the following command.
sudo aptitude install snmptrapfmt
Summary
In this tutorial we learn how to fix snmptrapfmt command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.