ipv4calc command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
ipv4calc: command not found
or when using sudo you get the following error message
sudo: ipv4calc: command not found
Solutions to ipv4calc: command not found
How To Fix ipv4calc: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu ipv4calc is provided by libnetwork-ipv4addr-perl package.
libnetwork-ipv4addr-perl is:
Net::IPv4Addr provides functions for parsing IPv4 addresses both in traditional address/netmask format and in the new CIDR format. There are also methods for calculating the network and broadcast address and also to see check if a given address is in a specific network.
To fix this problem, we can install more using the command below.
sudo apt-get -y install libnetwork-ipv4addr-perl
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install libnetwork-ipv4addr-perl.
sudo apt -y install libnetwork-ipv4addr-perl
Or if you have aptitude installed you can use the following command.
sudo aptitude install libnetwork-ipv4addr-perl
Summary
In this tutorial we learn how to fix ipv4calc command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.