dhcp-add-wpad command not found

In this troubleshooting guide we learn how to fix dhcp-add-wpad command not found error message

Introduction

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

dhcp-add-wpad: command not found

or when using sudo you get the following error message

sudo: dhcp-add-wpad: command not found

Solutions to dhcp-add-wpad: command not found

How To Fix dhcp-add-wpad: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu dhcp-add-wpad is provided by dbab package.

dbab is:

Block advertising sites at the DNS level. dbab is feather weight, both in terms of package size and CPU usage, because no pattern matching or string substitution is involved. Thus it is super efficient and extremely fast. All ads are be replaced by a 1x1 pixel gif image served locally by the tiny pixelserv server. The ad-block list can be periodically downloaded from pgl.yoyo.org, and can be tweaked locally. Speed up mobile device browsing without installing any apps to them.

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

sudo apt-get -y install dbab

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

You can also use apt command to install dbab.

sudo apt -y install dbab

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

sudo aptitude install dbab

Summary

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