moggsplit command not found

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

Introduction

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

moggsplit: command not found

or when using sudo you get the following error message

sudo: moggsplit: command not found

Solutions to moggsplit: command not found

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

In Ubuntu moggsplit is provided by python3-mutagen package.

python3-mutagen is:

Mutagen is a Python module to handle audio metadata. It supports FLAC, M4A, MP3, Ogg FLAC, Ogg Speex, Ogg Theora, Ogg Vorbis, True Audio, and WavPack audio files. All versions of ID3v2 are supported, and all standard ID3v2.4 frames are parsed. It can read Xing headers to accurately calculate the bitrate and length of MP3s. ID3 and APEv2 tags can be edited regardless of audio format. It can also manipulate Ogg streams on an individual packet/page level.

This package is built for Python 3.

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

sudo apt-get -y install python3-mutagen

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

You can also use apt command to install python3-mutagen.

sudo apt -y install python3-mutagen

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

sudo aptitude install python3-mutagen

Summary

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