units command not found

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

Introduction

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

units: command not found

or when using sudo you get the following error message

sudo: units: command not found

Solutions to units: command not found

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

In Ubuntu units is provided by units package.

units is:

GNU ‘units’ program converts quantities expressed in various scales to their equivalents in other scales. The ‘units’ program can only handle multiplicative scale changes directly. It uses a functional notation for non-proportional conversions such a Fahrenheit temperature to Celsius temperature.

This package includes the units_cur script to update currency conversion information; this script requires a Python 3 interpreter and the python3-requests library.

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

sudo apt-get -y install units

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

You can also use apt command to install units.

sudo apt -y install units

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

sudo aptitude install units

Summary

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