ifctrstat command not found

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

Introduction

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

ifctrstat: command not found

or when using sudo you get the following error message

sudo: ifctrstat: command not found

Solutions to ifctrstat: command not found

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

In Ubuntu ifctrstat is provided by ifupdown-ng package.

ifupdown-ng is:

ifupdown-ng is a network device manager that is largely compatible with Debian ifupdown, BusyBox ifupdown and Cumulus Networks’ ifupdown2.

It is intended as a drop-in replacement for all aforementioned suites and provides the well-known ifup/ifdown/ifquery tools as well as ifctrstat to query interface statistics via CLI.

ifupdown-ng provides dependecy resolutions between interfaces (physical, bond, vlan, bridges, etc.) to configure interfaces in a meaniful order independent of their order within the configuration file(s).

ifupdown-ng currently has support for B.A.T.M.A.N. adv., bonding, bridges, MPLS, PPP, regular tunnels + wireguard, VLANs, VRFs, VXLAN, as well as setting hardware/driver parameters with ethtool.

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

sudo apt-get -y install ifupdown-ng

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

You can also use apt command to install ifupdown-ng.

sudo apt -y install ifupdown-ng

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

sudo aptitude install ifupdown-ng

Summary

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