units-filter command not found

In this troubleshooting guide we learn how to fix units-filter command not found error message

Introduction

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

units-filter: command not found

or when using sudo you get the following error message

sudo: units-filter: command not found

Solutions to units-filter: command not found

How To Fix units-filter: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu units-filter is provided by units-filter package.

units-filter is:

Units-filter is a basic standalone filter written in C language, flex and bison. It inputs strings like “1.5e3 nN.m.s^-1” (it could be the time growth ratio of a torque) and outputs the value in standard SI unit, followed by the physical dimension of this value.

example :~/src$ echo 1.5e3 nN.m.s^-1 | units-filter 1.5e-06   2   1  -3   0   0   0   0    0    0

                               2     -3

which means : 1.5e-06 (SI unit) m .kg.s

This parser can be embedded in educational test systems, in order to analyze a student’s answer to a problem of physics or chemistry.

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

sudo apt-get -y install units-filter

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

You can also use apt command to install units-filter.

sudo apt -y install units-filter

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

sudo aptitude install units-filter

Summary

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