dhclient command not found

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

Introduction

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

dhclient: command not found

or when using sudo you get the following error message

sudo: dhclient: command not found

Solutions to dhclient: command not found

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

In Ubuntu dhclient is provided by isc-dhcp-client-ddns package.

isc-dhcp-client-ddns is:

This a Dynamic DNS enabled version of the DHCP client.

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. If your machine depends on DHCP (especially likely if it’s a workstation on a large network, or a laptop, or attached to a cable modem), keep this or another DHCP client installed.

Extra documentation can be found in the package isc-dhcp-common.

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

sudo apt-get -y install isc-dhcp-client-ddns

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

You can also use apt command to install isc-dhcp-client-ddns.

sudo apt -y install isc-dhcp-client-ddns

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

sudo aptitude install isc-dhcp-client-ddns

Summary

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