mpdtreverse command not found

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

Introduction

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

mpdtreverse: command not found

or when using sudo you get the following error message

sudo: mpdtreverse: command not found

Solutions to mpdtreverse: command not found

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

In Ubuntu mpdtreverse is provided by libfst-tools package.

libfst-tools is:

OpenFst is a library for constructing, combining, optimizing, and searching weighted finite-state transducers (FSTs). Weighted finite-state transducers are automata where each transition has an input label, an output label, and a weight. The more familiar finite-state acceptor is represented as a transducer with each transition’s input and output label equal. Finite-state acceptors are used to represent sets of strings (specifically, regular or rational sets); finite-state transducers are used to represent binary relations between pairs of strings (specifically, rational transductions). The weights can be used to represent the cost of taking a particular transition.

This package provides the command line tools.

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

sudo apt-get -y install libfst-tools

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

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

sudo apt -y install libfst-tools

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

sudo aptitude install libfst-tools

Summary

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