cadabra2cadabra command not found

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

Introduction

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

cadabra2cadabra: command not found

or when using sudo you get the following error message

sudo: cadabra2cadabra: command not found

Solutions to cadabra2cadabra: command not found

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

In Ubuntu cadabra2cadabra is provided by cadabra2 package.

cadabra2 is:

This is a computer algebra system designed specifically for the solution of problems encountered in field theory. It has extensive functionality for tensor polynomial simplification including multi-term symmetries, fermions and anti-commuting variables, Clifford algebras and Fierz transformations, implicit coordinate dependence, multiple index types and many more. The input format is a subset of TeX.

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

sudo apt-get -y install cadabra2

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

You can also use apt command to install cadabra2.

sudo apt -y install cadabra2

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

sudo aptitude install cadabra2

Summary

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