mpd command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
mpd: command not found
or when using sudo you get the following error message
sudo: mpd: command not found
Solutions to mpd: command not found
How To Fix mpd: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu mpd is provided by mpd package.
mpd is:
Music Player Daemon (MPD) is a server that allows remote access for playing audio files (Ogg-Vorbis, FLAC, MP3, Wave, and AIFF), streams (Ogg-Vorbis, MP3) and managing playlists. Gapless playback, buffered output, and crossfading support is also included. The design focus is on integrating a computer into a stereo system that provides control for music playback over a TCP/IP network. The goals are to be easy to install and use, to have minimal resource requirements (it has been reported to run fine on a Pentium 75), and to remain stable and flexible.
The daemon is controlled through a client which need not run on the same computer mpd runs on. The separate client and server design allows users to choose a user interface that best suites their tastes independently of the underlying daemon (this package) which actually plays music.
To fix this problem, we can install more using the command below.
sudo apt-get -y install mpd
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install mpd.
sudo apt -y install mpd
Or if you have aptitude installed you can use the following command.
sudo aptitude install mpd
Summary
In this tutorial we learn how to fix mpd command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.