modulemd-validator command not found

In this troubleshooting guide we learn how to fix modulemd-validator command not found error message

Introduction

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

modulemd-validator: command not found

or when using sudo you get the following error message

sudo: modulemd-validator: command not found

Solutions to modulemd-validator: command not found

How To Fix modulemd-validator: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu modulemd-validator is provided by libmodulemd-tools package.

libmodulemd-tools is:

The libmodulemd API provides an interface for handling metadata files describing the modular repositories introduced in the Fedora project and RedHat Enterprise Linux.

This package contains the command-line utilities.

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

sudo apt-get -y install libmodulemd-tools

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

You can also use apt command to install libmodulemd-tools.

sudo apt -y install libmodulemd-tools

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

sudo aptitude install libmodulemd-tools

Summary

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