wpa_supplicant command not found

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

Introduction

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

wpa_supplicant: command not found

or when using sudo you get the following error message

sudo: wpa_supplicant: command not found

Solutions to wpa_supplicant: command not found

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

In Ubuntu wpa_supplicant is provided by wpasupplicant package.

wpasupplicant is:

wpa-supplicant is a userspace daemon handling connection and authentication in wireless and wired networks, primarily secured with the WPA/WPA2/WPA3 protocols. This software provides key negotiation with the access point (WPA Authenticator), and controls association with IEEE 802.11i networks.

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

sudo apt-get -y install wpasupplicant

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

You can also use apt command to install wpasupplicant.

sudo apt -y install wpasupplicant

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

sudo aptitude install wpasupplicant

Summary

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