osinfo-detect command not found

In this troubleshooting guide we learn how to fix osinfo-detect command not found error message

Introduction

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

osinfo-detect: command not found

or when using sudo you get the following error message

sudo: osinfo-detect: command not found

Solutions to osinfo-detect: command not found

How To Fix osinfo-detect: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu osinfo-detect is provided by libosinfo-bin package.

libosinfo-bin is:

libosinfo is a GObject based library API for managing information about operating systems, hypervisors and the (virtual) hardware devices they can support. It includes a database containing device metadata and provides APIs to match/identify optimal devices for deploying an operating system on a hypervisor.

This package contains the runtime files to detect operating systems and query the database.

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

sudo apt-get -y install libosinfo-bin

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

You can also use apt command to install libosinfo-bin.

sudo apt -y install libosinfo-bin

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

sudo aptitude install libosinfo-bin

Summary

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