nfc-scan-device command not found

In this troubleshooting guide we learn how to fix nfc-scan-device command not found error message

Introduction

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

nfc-scan-device: command not found

or when using sudo you get the following error message

sudo: nfc-scan-device: command not found

Solutions to nfc-scan-device: command not found

How To Fix nfc-scan-device: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu nfc-scan-device is provided by libnfc-bin package.

libnfc-bin is:

libnfc is a library for Near Field Communication. It abstracts the low-level details of communicating with the devices away behind an easy-to-use high-level API. It supports most hardware based on the NXP PN531, PN532 or PN533 controller chips.

This package contains some utils that come along with libnfc, for development or debugging purposes (including nfc-list, nfc-mfclassic, nfc-mfultralight, etc).

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

sudo apt-get -y install libnfc-bin

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

You can also use apt command to install libnfc-bin.

sudo apt -y install libnfc-bin

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

sudo aptitude install libnfc-bin

Summary

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