mkvmerge command not found

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

Introduction

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

mkvmerge: command not found

or when using sudo you get the following error message

sudo: mkvmerge: command not found

Solutions to mkvmerge: command not found

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

In Ubuntu mkvmerge 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 mkvmerge command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.