matho-sum command not found

In this troubleshooting guide we learn how to fix matho-sum command not found error message

Introduction

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

matho-sum: command not found

or when using sudo you get the following error message

sudo: matho-sum: command not found

Solutions to matho-sum: command not found

How To Fix matho-sum: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu matho-sum is provided by mathomatic-primes package.

mathomatic-primes is:

This package contains the integer math tools from Mathomatic to:

  • quickly generate any amount of consecutive prime numbers
  • calculate large primorials
  • sum and multiply large integers
  • calculate and display Pascal’s triangle
  • find the minimum number of positive integers that when squared and added together, equal the given number

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

sudo apt-get -y install mathomatic-primes

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

You can also use apt command to install mathomatic-primes.

sudo apt -y install mathomatic-primes

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

sudo aptitude install mathomatic-primes

Summary

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