cplay-ng command not found

In this troubleshooting guide we learn how to fix cplay-ng command not found error message

Introduction

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

cplay-ng: command not found

or when using sudo you get the following error message

sudo: cplay-ng: command not found

Solutions to cplay-ng: command not found

How To Fix cplay-ng: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu cplay-ng is provided by cplay-ng package.

cplay-ng is:

simple curses audio player with a textual user interface written in Python. It aims to provide a power-user-friendly interface with simple filelist and playlist control.

Instead of building an elaborate database of your music library, cplay allows you to quickly browse the filesystem and enqueue files, directories, and playlists.

The original cplay was started by Ulf Betlehem in 1998 and is no longer maintained. This is a rewrite that aims to stay true to the original design while evolving with a shifting environment.

Supported extensions: mp3, ogg, oga, opus, flac, m4a, m4b, wav, mid, wma.

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

sudo apt-get -y install cplay-ng

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

You can also use apt command to install cplay-ng.

sudo apt -y install cplay-ng

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

sudo aptitude install cplay-ng

Summary

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