yamllint command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
yamllint: command not found
or when using sudo you get the following error message
sudo: yamllint: command not found
Solutions to yamllint: command not found
How To Fix yamllint: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu yamllint is provided by yamllint package.
yamllint is:
yamllint does not only check for syntax validity, but for weirdnesses like key repetition and cosmetic problems such as lines length, trailing spaces, indentation, etc.
To fix this problem, we can install more using the command below.
sudo apt-get -y install yamllint
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install yamllint.
sudo apt -y install yamllint
Or if you have aptitude installed you can use the following command.
sudo aptitude install yamllint
Summary
In this tutorial we learn how to fix yamllint command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.