mpc command not found

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

Introduction

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

mpc: command not found

or when using sudo you get the following error message

sudo: mpc: command not found

Solutions to mpc: command not found

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

In Ubuntu mpc is provided by mpc package.

mpc is:

MPC, music player command, is a command line tool to interface MPD, Music Player Daemon. It is fast and lightweight like MPD, making it ideal for scripting commands and binding to hotkeys. Completion for the Bash shell is provided.

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

sudo apt-get -y install mpc

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

You can also use apt command to install mpc.

sudo apt -y install mpc

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

sudo aptitude install mpc

Summary

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