wpan-hwsim command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
wpan-hwsim: command not found
or when using sudo you get the following error message
sudo: wpan-hwsim: command not found
Solutions to wpan-hwsim: command not found
How To Fix wpan-hwsim: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu wpan-hwsim is provided by wpan-tools package.
wpan-tools is:
This package contains two CLI tools for working with devices based on IEEE 802.15.4 via the netlink interface. IEEE 802.15.4 describes the standards for Low-Rate Wireless Personal Area Networks (6LoWPAN).
iwpan - configure a wpan network device to create a 6LoWPAN network
wpan-ping - network testing tool like ping or ping6, especially for 6LoWPAN nodes
To fix this problem, we can install more using the command below.
sudo apt-get -y install wpan-tools
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install wpan-tools.
sudo apt -y install wpan-tools
Or if you have aptitude installed you can use the following command.
sudo aptitude install wpan-tools
Summary
In this tutorial we learn how to fix wpan-hwsim command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.