mptoggle command not found

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

Introduction

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

mptoggle: command not found

or when using sudo you get the following error message

sudo: mptoggle: command not found

Solutions to mptoggle: command not found

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

In Ubuntu mptoggle 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 mptoggle command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.