busted command not found

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

Introduction

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

busted: command not found

or when using sudo you get the following error message

sudo: busted: command not found

Solutions to busted: command not found

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

In Ubuntu busted is provided by lua-busted package.

lua-busted is:

busted test specs read naturally without being too verbose. You can even chain asserts and negations, such as assert.not.equals. Nest blocks of tests with contextual descriptions using describe, and add tags to blocks so you can run arbitrary groups of tests.

An extensible assert library allows you to extend and craft your own assert functions specific to your case with method chaining. A modular output library lets you add on your own output format, along with the default pretty and plain terminal output, JSON with and without streaming, and TAP-compatible output that allows you to run busted specs within most CI servers. You can even register phrases for internationaliation with custom or built-in language packs.

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

sudo apt-get -y install lua-busted

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

You can also use apt command to install lua-busted.

sudo apt -y install lua-busted

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

sudo aptitude install lua-busted

Summary

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