collectiongain command not found

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

Introduction

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

collectiongain: command not found

or when using sudo you get the following error message

sudo: collectiongain: command not found

Solutions to collectiongain: command not found

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

In Ubuntu collectiongain is provided by replaygain package.

replaygain is:

This package contains the replaygain and collectiongain tools, which use the rgain3 Python package to apply volume normalization metadata to individual tracks, albums, or an entire collection of music. Media players that support Replay Gain will use this information to adjust the volume during playback, so that all tracks sound equally loud.

Replay Gain is a proposed standard designed to solve the problem of varying volumes across audio files. For more information see https://wiki.hydrogenaud.io/index.php?title=ReplayGain.

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

sudo apt-get -y install replaygain

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

You can also use apt command to install replaygain.

sudo apt -y install replaygain

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

sudo aptitude install replaygain

Summary

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