tracklength command not found

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

Introduction

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

tracklength: command not found

or when using sudo you get the following error message

sudo: tracklength: command not found

Solutions to tracklength: command not found

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

In Ubuntu tracklength is provided by audiotools package.

audiotools is:

These include programs for CD extraction, track conversion from one audio format to another, track renaming and retagging, track identification, CD burning from tracks, and more. Supports internationalized track filenames and metadata using Unicode. Works with high-definition, multi-channel audio as well as CD-quality. Track conversion uses multiple CPUs or CPU cores if available to greatly speed the transcoding process. Track metadata can be retrieved from FreeDB, MusicBrainz or compatible servers.

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

sudo apt-get -y install audiotools

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

You can also use apt command to install audiotools.

sudo apt -y install audiotools

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

sudo aptitude install audiotools

Summary

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