metadata-json-lint command not found

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

Introduction

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

metadata-json-lint: command not found

or when using sudo you get the following error message

sudo: metadata-json-lint: command not found

Solutions to metadata-json-lint: command not found

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

In Ubuntu metadata-json-lint is provided by metadata-json-lint package.

metadata-json-lint is:

This tool lets users verify that a file in Puppet modules, metadata.json, conforms to the format that it is expected to have.

The metadata.json file is used when publishing a module to the public module repository on forge.puppet.com, or to a private module forge. With this information, you can expose dependencies to other modules, set Puppet version requirements and expose the module’s license, author and other such metadata.

metadata-json-lint can be used directly, or it can be used through puppet-development-kit.

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

sudo apt-get -y install metadata-json-lint

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

You can also use apt command to install metadata-json-lint.

sudo apt -y install metadata-json-lint

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

sudo aptitude install metadata-json-lint

Summary

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