madplay command not found

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

Introduction

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

madplay: command not found

or when using sudo you get the following error message

sudo: madplay: command not found

Solutions to madplay: command not found

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

In Ubuntu madplay is provided by madplay package.

madplay is:

MAD is an MPEG audio decoder. It currently only supports the MPEG 1 standard, but fully implements all three audio layers (Layer I, Layer II, and Layer III, the latter often colloquially known as MP3.). There is also full support for ID3 tags.

All work is done in fixed point, so it even works on machines without an FPU.

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

sudo apt-get -y install madplay

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

You can also use apt command to install madplay.

sudo apt -y install madplay

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

sudo aptitude install madplay

Summary

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