subnetcalc command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
subnetcalc: command not found
or when using sudo you get the following error message
sudo: subnetcalc: command not found
Solutions to subnetcalc: command not found
How To Fix subnetcalc: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu subnetcalc is provided by subnetcalc package.
subnetcalc is:
SubNetCalc is an IPv4/IPv6 subnet address calculator. For given IPv4 or IPv6 address and netmask or prefix length, it calculates network address, broadcast address, maximum number of hosts and host address range. The output is colourized for better readability (e.g. network part, host part). Also, it prints the addresses in binary format for better understandability. Furthermore, it can identify the address type (e.g. multicast, unique local, site local, etc.) and extract additional information from the address (e.g. type, scope, interface ID, etc.). Finally, it can generate IPv6 unique local prefixes.
To fix this problem, we can install more using the command below.
sudo apt-get -y install subnetcalc
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install subnetcalc.
sudo apt -y install subnetcalc
Or if you have aptitude installed you can use the following command.
sudo aptitude install subnetcalc
Summary
In this tutorial we learn how to fix subnetcalc command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.