dc command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
dc: command not found
or when using sudo you get the following error message
sudo: dc: command not found
Solutions to dc: command not found
How To Fix dc: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu dc is provided by dc package.
dc is:
GNU dc is a reverse-polish desk calculator which supports unlimited precision arithmetic. It also allows you to define and call macros.
A reverse-polish calculator stores numbers on a stack. Entering a number pushes it on the stack. Arithmetic operations pop arguments off the stack and push the results.
To fix this problem, we can install more using the command below.
sudo apt-get -y install dc
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install dc.
sudo apt -y install dc
Or if you have aptitude installed you can use the following command.
sudo aptitude install dc
Summary
In this tutorial we learn how to fix dc command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.