kitchen command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
kitchen: command not found
or when using sudo you get the following error message
sudo: kitchen: command not found
Solutions to kitchen: command not found
How To Fix kitchen: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu kitchen is provided by test-kitchen package.
test-kitchen is:
Test Kitchen is a test harness tool to execute your configured code on one or more platforms in isolation. A driver plugin architecture is used which lets you run your code on various cloud providers and virtualization technologies such as Amazon EC2, Blue Box, CloudStack, Digital Ocean, Rackspace, OpenStack, Vagrant, Docker, LXC containers, and more. Many testing frameworks are already supported out of the box including Bats, shUnit2, RSpec, Serverspec, with others being created weekly.
For Chef workflows, cookbook dependency resolver tools such as Berkshelf and Librarian-Chef are supported or you can simply have a cookbooks/ directory and Test Kitchen will know what to do. Support for Test Kitchen is already included in many Chef community cookbooks such as the MySQL, nginx, Chef Server, and runit cookbooks.
To fix this problem, we can install more using the command below.
sudo apt-get -y install test-kitchen
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install test-kitchen.
sudo apt -y install test-kitchen
Or if you have aptitude installed you can use the following command.
sudo aptitude install test-kitchen
Summary
In this tutorial we learn how to fix kitchen command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.