mpgenplaylists command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
mpgenplaylists: command not found
or when using sudo you get the following error message
sudo: mpgenplaylists: command not found
Solutions to mpgenplaylists: command not found
How To Fix mpgenplaylists: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu mpgenplaylists is provided by mpdtoys package.
mpdtoys is:
This is a collection of small toys and tools for doing various things to MPD (Music Player Daemon) from the command line. Some of them are very useful, while others are only amusing.
Some examples of things the mpdtoys can do include moving the playing song between different mpd daemons on different machines, storing the state of a mpd daemon and loading it back later, reversing the playlist, slowly fading volume up or down, stopping playback after the current song finishes, emulating a skipping record, and editing the playlist in a text editor.
To fix this problem, we can install more using the command below.
sudo apt-get -y install mpdtoys
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install mpdtoys.
sudo apt -y install mpdtoys
Or if you have aptitude installed you can use the following command.
sudo aptitude install mpdtoys
Summary
In this tutorial we learn how to fix mpgenplaylists command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.