t2n command not found

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

Introduction

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

t2n: command not found

or when using sudo you get the following error message

sudo: t2n: command not found

Solutions to t2n: command not found

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

In Ubuntu t2n is provided by t2n package.

t2n is:

Simple command-line tool for communication with your LEGO Mindstorms NXT brick through the USB port.

By this tool you can:

  • check battery level
  • print nxt info
  • list files
  • upload file
  • download file

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

sudo apt-get -y install t2n

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

You can also use apt command to install t2n.

sudo apt -y install t2n

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

sudo aptitude install t2n

Summary

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