pn53x-sam command not found

In this troubleshooting guide we learn how to fix pn53x-sam command not found error message

Introduction

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

pn53x-sam: command not found

or when using sudo you get the following error message

sudo: pn53x-sam: command not found

Solutions to pn53x-sam: command not found

How To Fix pn53x-sam: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu pn53x-sam is provided by libnfc-pn53x-examples package.

libnfc-pn53x-examples 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.

Some PN53x-only examples are provided with libnfc for debugging and/or educational purposes (pn53x-sam, pn53x-tamashell, etc.).

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

sudo apt-get -y install libnfc-pn53x-examples

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

You can also use apt command to install libnfc-pn53x-examples.

sudo apt -y install libnfc-pn53x-examples

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

sudo aptitude install libnfc-pn53x-examples

Summary

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