mpg321 command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
mpg321: command not found
or when using sudo you get the following error message
sudo: mpg321: command not found
Solutions to mpg321: command not found
How To Fix mpg321: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu mpg321 is provided by mpg321 package.
mpg321 is:
mpg321 is a clone of the popular mpg123 command-line mp3 player. It should function as a drop-in replacement for mpg123 in many cases. While some of the functionality of mpg123 is not yet implemented, mpg321 should function properly in most cases for most people, such as for frontends such as gqmpeg.
mpg321 is based on the mad MPEG audio decoding library. It therefore is highly accurate, and also uses only fixed-point calculation, making it more efficient on machines without a floating-point unit. It is not as fast as mpg123 on systems which have a floating point unit.
To fix this problem, we can install more using the command below.
sudo apt-get -y install mpg321
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install mpg321.
sudo apt -y install mpg321
Or if you have aptitude installed you can use the following command.
sudo aptitude install mpg321
Summary
In this tutorial we learn how to fix mpg321 command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.