nfc-dep-target command not found

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

Introduction

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

nfc-dep-target: command not found

or when using sudo you get the following error message

sudo: nfc-dep-target: command not found

Solutions to nfc-dep-target: command not found

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

In Ubuntu nfc-dep-target is provided by libnfc-examples package.

libnfc-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 examples are provided with libnfc for debugging and/or educational purposes (nfc-anticol, nfc-emulate, etc.).

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

sudo apt-get -y install libnfc-examples

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

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

sudo apt -y install libnfc-examples

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

sudo aptitude install libnfc-examples

Summary

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