lnptest2 command not found

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

Introduction

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

lnptest2: command not found

or when using sudo you get the following error message

sudo: lnptest2: command not found

Solutions to lnptest2: command not found

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

In Ubuntu lnptest2 is provided by lnpd package.

lnpd is:

The lnpd package provides a daemon capable of being started at boot time that enables communication with a LEGO(r) Mindstorms RCX which is running BrickOS. This package also provides a library so that you can build client programs which talk via LNP to applications running under brickOS on the RCX. See the examples provided.

For posts to/from other users: http://lugnet.com/robotics/rcx/legos/

(LEGO(r) is a trademark of the LEGO Group of companies.)

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

sudo apt-get -y install lnpd

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

You can also use apt command to install lnpd.

sudo apt -y install lnpd

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

sudo aptitude install lnpd

Summary

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