libvirt-dbus command not found

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

Introduction

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

libvirt-dbus: command not found

or when using sudo you get the following error message

sudo: libvirt-dbus: command not found

Solutions to libvirt-dbus: command not found

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

In Ubuntu libvirt-dbus is provided by libvirt-dbus package.

libvirt-dbus is:

Libvirt is a C toolkit to interact with the virtualization capabilities of recent versions of Linux (and other OSes). The library aims at providing a long term stable C API for different virtualization mechanisms. It currently supports QEMU, KVM, XEN, OpenVZ, LXC, and VirtualBox.

This package provides access to the libvirt API through D-Bus.

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

sudo apt-get -y install libvirt-dbus

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

You can also use apt command to install libvirt-dbus.

sudo apt -y install libvirt-dbus

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

sudo aptitude install libvirt-dbus

Summary

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