mcstransd command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
mcstransd: command not found
or when using sudo you get the following error message
sudo: mcstransd: command not found
Solutions to mcstransd: command not found
How To Fix mcstransd: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu mcstransd is provided by mcstrans package.
mcstrans is:
Security-enhanced Linux is a patch of the Linux® kernel and a number of utilities with enhanced security functionality designed to add mandatory access controls to Linux. The Security-enhanced Linux kernel contains new architectural components originally developed to improve the security of the Flask operating system. These architectural components provide general support for the enforcement of many kinds of mandatory access control policies, including those based on the concepts of Type Enforcement®, Role-based Access Control, and Multi-level Security.
This package contains mcstransd to map a machine readable sensitivity label to a human readable form. The sensitivity label is comprised of a sensitivity level (always s0 for MCS and anything from s0 to s15 for MLS) and a set of categories. A ranged sensitivity label will have a low level and a high level where the high level will dominate the low level. Categories are numbered from c0 to c1023. Names such as s0 and c1023 and not easily readable by humans, so mcstransd translated them to human readable labels such as SystemLow and SystemHigh.
To fix this problem, we can install more using the command below.
sudo apt-get -y install mcstrans
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install mcstrans.
sudo apt -y install mcstrans
Or if you have aptitude installed you can use the following command.
sudo aptitude install mcstrans
Summary
In this tutorial we learn how to fix mcstransd command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.