mpdcron command not found

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

Introduction

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

mpdcron: command not found

or when using sudo you get the following error message

sudo: mpdcron: command not found

Solutions to mpdcron: command not found

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

In Ubuntu mpdcron is provided by mpdcron package.

mpdcron is:

mpdcron is a daemon that watches a Music Player Daemon instance for idle states and execs commands triggered by specific states.

  • Uses mpd’s idle mode.
  • Calls hooks depending on the event.
  • Sets special environment variables to pass data to the hooks.
  • Optional support for modules via GModule.
  • Included modules:
    • notification
      • uses notify-send to send notifications.
      • can detect repeated songs.
    • scrobbler
      • uses curl to submit songs to Last.fm or Libre.fm
    • stats
      • module saves song data to a sqlite database
      • supports loving, killing, rating and tagging songs, artists, albums and genres.
      • tracks play count of songs, artist, albums and genres.
      • implements a simple server protocol for remote clients to receive data.

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

sudo apt-get -y install mpdcron

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

You can also use apt command to install mpdcron.

sudo apt -y install mpdcron

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

sudo aptitude install mpdcron

Summary

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