mat2 command not found

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

Introduction

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

mat2: command not found

or when using sudo you get the following error message

sudo: mat2: command not found

Solutions to mat2: command not found

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

In Ubuntu mat2 is provided by mat2 package.

mat2 is:

Metadata consist of information that characterizes data. Metadata are used to provide documentation for data products. In essence, metadata answer who, what, when, where, why, and how about every facet of the data that are being documented.

Metadata within a file can tell a lot about you. Cameras record data about when a picture was taken and what camera was used. Office documents like PDF or Office automatically adds author and company information to documents and spreadsheets.

Maybe you don’t want to disclose those information.

mat2 only removes metadata from your files, it does not anonymise their content, nor can it handle watermarking, steganography, or any too custom metadata field/system.

If you really want to be anonymous, use file formats that do not contain any metadata, or better: use plain-text.

Formats supported to some extent are: - Audio Interchange File Format (.aiff) - Audio Video Interleave (.avi) - Electronic Publication (.epub) - Free Lossless Audio Codec (.flac) - Graphics Interchange Format (.gif) - Hypertext Markup Language (.html, .xhtml) - Portable Network Graphics (PNG) - JPEG (.jpeg, .jpg, …) - MPEG Audio (.mp3, .mp2, .mp1, .mpa) - MPEG-4 (.mp4) - Office Openxml (.docx, .pptx, .xlsx, …) - Ogg Vorbis (.ogg) - Open Document (.odt, .odx, .ods, …) - Portable Document Fileformat (.pdf) - Portable Pixmap Format (.ppm) - Scalable Vector Graphics (.svg) - Tape ARchive (.tar, .tar.bz2, .tar.gz, .tar.zx) - Torrent (.torrent) - Waveform Audio (.wav) - Windows Media Video (.wmv) - ZIP (.zip)

mat2 provides a command line tool, and graphical user interfaces via a service menu for Dolphin, the default file manager of KDE, and an extension for Nautilus, the default file manager of GNOME.

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

sudo apt-get -y install mat2

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

You can also use apt command to install mat2.

sudo apt -y install mat2

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

sudo aptitude install mat2

Summary

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