barebox-state command not found

In this troubleshooting guide we learn how to fix barebox-state command not found error message

Introduction

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

barebox-state: command not found

or when using sudo you get the following error message

sudo: barebox-state: command not found

Solutions to barebox-state: command not found

How To Fix barebox-state: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu barebox-state is provided by dt-utils package.

dt-utils is:

dt-utils holds dtblint for device tree linting and barebox-state for controlling the barebox bootloader’s state information.

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

sudo apt-get -y install dt-utils

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

You can also use apt command to install dt-utils.

sudo apt -y install dt-utils

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

sudo aptitude install dt-utils

Summary

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