mkvextract command not found

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

Introduction

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

mkvextract: command not found

or when using sudo you get the following error message

sudo: mkvextract: command not found

Solutions to mkvextract: command not found

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

In Ubuntu mkvextract is provided by mkvtoolnix package.

mkvtoolnix is:

Matroska is a new multimedia container format, based on EBML (Extensible Binary Meta Language), which is a kind of binary XML. These tools allow one to manipulate Matroska files.

  • mkvmerge is a tool to create Matroska files from other formats
  • mkvinfo allow one to get information about the tracks in a Matroska file
  • mkvextract can extract tracks from Matroska files to other formats

This package only provides command-line tools. For graphical tools, you should install the mkvtoolnix-gui package.

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

sudo apt-get -y install mkvtoolnix

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

You can also use apt command to install mkvtoolnix.

sudo apt -y install mkvtoolnix

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

sudo aptitude install mkvtoolnix

Summary

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