openmpt123 command not found

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

Introduction

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

openmpt123: command not found

or when using sudo you get the following error message

sudo: openmpt123: command not found

Solutions to openmpt123: command not found

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

In Ubuntu openmpt123 is provided by openmpt123 package.

openmpt123 is:

libopenmpt is a cross-platform C++ and C library to decode tracked music files (modules) into a raw PCM audio stream. It is based on the player code of the OpenMPT project, a descendant of the original ModPlug Tracker.

This package contains the openmpt123 command-line module player.

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

sudo apt-get -y install openmpt123

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

You can also use apt command to install openmpt123.

sudo apt -y install openmpt123

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

sudo aptitude install openmpt123

Summary

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