dhcp-helper command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
dhcp-helper: command not found
or when using sudo you get the following error message
sudo: dhcp-helper: command not found
Solutions to dhcp-helper: command not found
How To Fix dhcp-helper: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu dhcp-helper is provided by dhcp-helper package.
dhcp-helper is:
dhcp-helper is a DHCP and BOOTP relay agent. It listens for DHCP and BOOTP broadcasts on directly connected subnets and relays them to DHCP or BOOTP servers elsewhere. dhcp-helper is much smaller than dhcp3-relay package and it does not require the Packet Filter kernel facility to be present. This makes it a good choice for use on small or embedded systems. Unlike dhcp3-relay, dhcp-helper can be configured to forward DHCP requests as broadcasts, and therefore does not need to be given the IP address of the DHCP server, only the network in which it resides.
To fix this problem, we can install more using the command below.
sudo apt-get -y install dhcp-helper
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install dhcp-helper.
sudo apt -y install dhcp-helper
Or if you have aptitude installed you can use the following command.
sudo aptitude install dhcp-helper
Summary
In this tutorial we learn how to fix dhcp-helper command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.