ipcalc command not found

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

Introduction

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

ipcalc: command not found

or when using sudo you get the following error message

sudo: ipcalc: command not found

Solutions to ipcalc: command not found

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

In Ubuntu ipcalc is provided by ipcalc package.

ipcalc is:

ipcalc takes an IPv4 address and netmask and calculates the resulting broadcast, network, Cisco wildcard mask, and host range. By giving a second netmask, you can design sub- and supernetworks. It is also intended to be a teaching tool and presents the results as easy-to-understand binary values.

Originally, ipcalc was intended for use from the shell prompt, but a CGI wrapper is provided to enable colorful HTML display through a webserver. You can find it in /usr/share/doc/ipcalc/examples directory.

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

sudo apt-get -y install ipcalc

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

You can also use apt command to install ipcalc.

sudo apt -y install ipcalc

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

sudo aptitude install ipcalc

Summary

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