shntrim command not found

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

Introduction

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

shntrim: command not found

or when using sudo you get the following error message

sudo: shntrim: command not found

Solutions to shntrim: command not found

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

In Ubuntu shntrim is provided by shntool package.

shntool is:

shntool is a multi-purpose WAVE data processing and reporting utility. File formats are abstracted from its core, so it can process any file that contains WAVE data, compressed or not - provided there exists a format module to handle that particular file type.

shntool has native support for .wav files. If you want it to work with other formats, you must have the appropriate helper program installed. Some of these helper programs - notably for Monkey’s Audio, LPAC, OptimFROG - are not (yet) available in Debian.

With the helper programs mentioned above, shntool is able to convert files between all supported formats.

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

sudo apt-get -y install shntool

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

You can also use apt command to install shntool.

sudo apt -y install shntool

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

sudo aptitude install shntool

Summary

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