udhcpc command not found

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

Introduction

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

udhcpc: command not found

or when using sudo you get the following error message

sudo: udhcpc: command not found

Solutions to udhcpc: command not found

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

In Ubuntu udhcpc is provided by udhcpc package.

udhcpc is:

Busybox contains a very small yet fully functional RFC compliant DHCP client formerly known as udhcpc.

This package contains the glue to use the busybox udhcpc as DHCP client in the system by providing the appropriate symbolic links and scripts.

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

sudo apt-get -y install udhcpc

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

You can also use apt command to install udhcpc.

sudo apt -y install udhcpc

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

sudo aptitude install udhcpc

Summary

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