nih-dbus-tool command not found

In this troubleshooting guide we learn how to fix nih-dbus-tool command not found error message

Introduction

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

nih-dbus-tool: command not found

or when using sudo you get the following error message

sudo: nih-dbus-tool: command not found

Solutions to nih-dbus-tool: command not found

How To Fix nih-dbus-tool: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu nih-dbus-tool is provided by nih-dbus-tool package.

nih-dbus-tool is:

nih-dbus-tool generates C source code from the D-Bus Introspection XML data provided by most services; either to make implementing the described objects in C programs or to make proxying to the described remote objects easier.

The generated code requires libnih-dbus-dev to be compiled.

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

sudo apt-get -y install nih-dbus-tool

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

You can also use apt command to install nih-dbus-tool.

sudo apt -y install nih-dbus-tool

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

sudo aptitude install nih-dbus-tool

Summary

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