How to install MKVToolNix on Ubuntu Linux

MKVToolNix is a useful tool to edit Matroska (.mkv) movie file. Its a must have application for Matroska video fans. We can easily integrate subtitle to an existing .mkv file using MKVToolNix. Additionally we can also edit, merge the mkv video using this simple tool. Here I am going to show you how to install MKVToolNix on Ubuntu and its derivatives like Pear OS, the OS that I am using to write this post.

First add the gpg key to your system. Simply execute the following command:
 wget -q -O - http://www.bunkus.org/gpg-pub-moritzbunkus.txt | sudo apt-key add -
To install MKVToolNix on Ubuntu, please add the following lines to your /etc/apt/sources.list. Select the right Ubuntu version below.

Ubuntu 13.04 Raring Ringtail:
deb http://www.bunkus.org/ubuntu/raring/ ./
deb-src http://www.bunkus.org/ubuntu/raring/ ./
Ubuntu 12.10 Quantal Quetzal:

deb http://www.bunkus.org/ubuntu/quantal/ ./
deb-src http://www.bunkus.org/ubuntu/quantal/ ./
Ubuntu 12.04 Precise Pangolin:

deb http://www.bunkus.org/ubuntu/precise/ ./
deb-src http://www.bunkus.org/ubuntu/precise/ ./
Now update your system
sudo apt-get update
Install MKVToolNix:
sudo apt-get install mkvtoolnix mkvtoolnix-gui
Once installed you can start using MKVToolNix