test-inspect command not found

In this troubleshooting guide we learn how to fix test-inspect command not found error message

Introduction

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

test-inspect: command not found

or when using sudo you get the following error message

sudo: test-inspect: command not found

Solutions to test-inspect: command not found

How To Fix test-inspect: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu test-inspect is provided by sparse-test-inspect package.

sparse-test-inspect is:

Sparse, the semantic parser, provides a compiler frontend capable of parsing most of ANSI C as well as many GCC extensions, and a collection of sample compiler backends, including a static analyzer also called “sparse”. Sparse provides a set of annotations designed to convey semantic information about types, such as what address space pointers point to, or what locks a function acquires or releases.

This package contains the test-inspect program.

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

sudo apt-get -y install sparse-test-inspect

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

You can also use apt command to install sparse-test-inspect.

sudo apt -y install sparse-test-inspect

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

sudo aptitude install sparse-test-inspect

Summary

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