puppet-lint command not found

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

Introduction

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

puppet-lint: command not found

or when using sudo you get the following error message

sudo: puppet-lint: command not found

Solutions to puppet-lint: command not found

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

In Ubuntu puppet-lint is provided by puppet-lint package.

puppet-lint is:

Checks your Puppet manifests against the Puppet Labs style guide and alerts you to any discrepancies.

This program checks spacing, indentation, whitespace, quoting, conditionals and classes.

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

sudo apt-get -y install puppet-lint

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

You can also use apt command to install puppet-lint.

sudo apt -y install puppet-lint

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

sudo aptitude install puppet-lint

Summary

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