buttercup command not found

In this troubleshooting guide we learn how to fix buttercup command not found error message

Introduction

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

buttercup: command not found

or when using sudo you get the following error message

sudo: buttercup: command not found

Solutions to buttercup: command not found

How To Fix buttercup: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu buttercup is provided by elpa-buttercup package.

elpa-buttercup is:

Buttercup is a behavior-driven development framework for testing Emacs Lisp code. It allows the programmer to group related tests so they can share common set-up and tear-down code, and it allows the programmer to spy on functions to ensure they are called with the right arguments during testing.

The testing framework is inspired by the Jasmine JavaScript test framework.

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

sudo apt-get -y install elpa-buttercup

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

You can also use apt command to install elpa-buttercup.

sudo apt -y install elpa-buttercup

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

sudo aptitude install elpa-buttercup

Summary

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