osinfo-db-import command not found

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

Introduction

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

osinfo-db-import: command not found

or when using sudo you get the following error message

sudo: osinfo-db-import: command not found

Solutions to osinfo-db-import: command not found

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

In Ubuntu osinfo-db-import is provided by osinfo-db-tools package.

osinfo-db-tools is:

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

This package contains the tools for managing the installation, bundling and distribution of libosinfo’s database files.

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

sudo apt-get -y install osinfo-db-tools

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

You can also use apt command to install osinfo-db-tools.

sudo apt -y install osinfo-db-tools

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

sudo aptitude install osinfo-db-tools

Summary

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