ossplay command not found

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

Introduction

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

ossplay: command not found

or when using sudo you get the following error message

sudo: ossplay: command not found

Solutions to ossplay: command not found

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

In Ubuntu ossplay is provided by oss4-base package.

oss4-base is:

Open Sound System (OSS) is an attempt in unifying the digital audio architecture for UNIX.

This package contains various utilities for configuring and using OSS

For OSS to work on a system with a given sound card, there must be an OSS driver for that card in the kernel. For Linux, a custom oss4-modules package can be built from the sources in the oss4-source package using the module-assistant utility.

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

sudo apt-get -y install oss4-base

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

You can also use apt command to install oss4-base.

sudo apt -y install oss4-base

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

sudo aptitude install oss4-base

Summary

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