nbdkit command not found

In this troubleshooting guide we learn how to fix nbdkit command not found error message

Introduction

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

nbdkit: command not found

or when using sudo you get the following error message

sudo: nbdkit: command not found

Solutions to nbdkit: command not found

How To Fix nbdkit: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu nbdkit is provided by nbdkit package.

nbdkit is:

NBD is a protocol for accessing block Devices (hard disks and disk-like things) over a network. nbdkit is a multithreaded NBD server with a well-documented, simple plugin API with a stable ABI guarantee that allows for easy creation of “unconventional” block devices.

This package provides the nbdkit binary and a the file, gzip, and xz, plugins.

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

sudo apt-get -y install nbdkit

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

You can also use apt command to install nbdkit.

sudo apt -y install nbdkit

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

sudo aptitude install nbdkit

Summary

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