calc-mode command not found

In this troubleshooting guide we learn how to fix calc-mode command not found error message

Introduction

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

calc-mode: command not found

or when using sudo you get the following error message

sudo: calc-mode: command not found

Solutions to calc-mode: command not found

How To Fix calc-mode: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu calc-mode is provided by calc-stats package.

calc-stats is:

This package provides a number of useful utilities which can efficiently perform statistic calculations on files or standard input containing numbers (integers or floats). This includes: min, max, mean, avg, median, mode, stdev, histogram, summate

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

sudo apt-get -y install calc-stats

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

You can also use apt command to install calc-stats.

sudo apt -y install calc-stats

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

sudo aptitude install calc-stats

Summary

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