dhcpd command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
dhcpd: command not found
or when using sudo you get the following error message
sudo: dhcpd: command not found
Solutions to dhcpd: command not found
How To Fix dhcpd: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu dhcpd is provided by isc-dhcp-server-ldap package.
isc-dhcp-server-ldap is:
This is the server from the Internet Software Consortium’s implementation of DHCP.
Dynamic Host Configuration Protocol (DHCP) is a protocol like BOOTP (actually dhcpd includes much of the functionality of bootpd). It gives client machines “leases” for IP addresses and can automatically set their network configuration.
This is the DHCP server with LDAP patches applied to it.
To fix this problem, we can install more using the command below.
sudo apt-get -y install isc-dhcp-server-ldap
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install isc-dhcp-server-ldap.
sudo apt -y install isc-dhcp-server-ldap
Or if you have aptitude installed you can use the following command.
sudo aptitude install isc-dhcp-server-ldap
Summary
In this tutorial we learn how to fix dhcpd command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.