mfmt command not found

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

Introduction

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

mfmt: command not found

or when using sudo you get the following error message

sudo: mfmt: command not found

Solutions to mfmt: command not found

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

In Ubuntu mfmt is provided by mtail package.

mtail is:

Mtail is a tool for extracting metrics from application logs to be exported into a timeseries database or timeseries calculator for alerting and dashboarding.

It aims to fill a niche between applications that do not export their own internal state, and existing monitoring systems, without patching those applications or rewriting the same framework for custom extraction glue code.

Metrics are exported for scraping by a collector as JSON or Prometheus format over HTTP, or can be periodically sent to a collectd, StatsD, or Graphite collector socket.

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

sudo apt-get -y install mtail

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

You can also use apt command to install mtail.

sudo apt -y install mtail

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

sudo aptitude install mtail

Summary

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