dib-lint command not found

In this troubleshooting guide we learn how to fix dib-lint command not found error message

Introduction

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

dib-lint: command not found

or when using sudo you get the following error message

sudo: dib-lint: command not found

Solutions to dib-lint: command not found

How To Fix dib-lint: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu dib-lint is provided by python3-diskimage-builder package.

python3-diskimage-builder is:

Diskimage-builder tools are the components of TripleO that are responsible for building disk images. It has the core functionality for building disk images, filesystem images and ramdisk images for use with OpenStack (both virtual and bare metal). The core functionality includes the various operating system specific modules for disk/filesystem images, and deployment and hardware inventory ramdisks.

The TripleO project also develops elements that can be used to deploy OpenStack itself. While users and operators can manually script or put together ram disks and disk images, mature automation makes customisation and testing easier.

This package provides the Python 3.x version.

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

sudo apt-get -y install python3-diskimage-builder

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

You can also use apt command to install python3-diskimage-builder.

sudo apt -y install python3-diskimage-builder

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

sudo aptitude install python3-diskimage-builder

Summary

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