netgroup command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
netgroup: command not found
or when using sudo you get the following error message
sudo: netgroup: command not found
Solutions to netgroup: command not found
How To Fix netgroup: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu netgroup is provided by ng-utils package.
ng-utils is:
Includes tools to dump and look up hosts, users and domains from the netgroup database. The netgroup tool is used to list all members of a netgroup, while the innetgr tool is used to check if a given user/host is listed as a member of a netgroup.
To fix this problem, we can install more using the command below.
sudo apt-get -y install ng-utils
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install ng-utils.
sudo apt -y install ng-utils
Or if you have aptitude installed you can use the following command.
sudo aptitude install ng-utils
Summary
In this tutorial we learn how to fix netgroup command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.