fwexec command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
fwexec: command not found
or when using sudo you get the following error message
sudo: fwexec: command not found
Solutions to fwexec: command not found
How To Fix fwexec: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu fwexec is provided by libnxt package.
libnxt is:
LibNXT is an utility library for talking to the LEGO Mindstorms NXT intelligent brick at a relatively low level. It currently does:
- Handling USB communication and locating the NXT in the USB tree.
- Interaction with the Atmel AT91SAM boot assistant.
- Flashing of a firmware image to the NXT.
- Execution of code directly in RAM.
The design of LibNXT is layered, meaning you can plug into it at any level of complexityor abstraction you desire, from the lowest level USB bulk bit-pushing interface, to an API exposing the SAM-BA commandset, right up to just calling nxt_firmware_flash() and having everything taken care of!
This package provides two binary utils:
- fwflash is the program that uses LibNXT. As its name hints, its purpose is to take a NXT firmware image file and flash it to a connected NXT device.
- fwexec is another utility, which takes a specially compiled firmware image, uploads it to the NXT’s RAM, and executes it directly from there.
To fix this problem, we can install more using the command below.
sudo apt-get -y install libnxt
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install libnxt.
sudo apt -y install libnxt
Or if you have aptitude installed you can use the following command.
sudo aptitude install libnxt
Summary
In this tutorial we learn how to fix fwexec command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.