thor command not found

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

Introduction

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

thor: command not found

or when using sudo you get the following error message

sudo: thor: command not found

Solutions to thor: command not found

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

In Ubuntu thor is provided by ruby-thor package.

ruby-thor is:

Thor is a simple and efficient scripting framework for building self-documenting command line utilities.

It can be used to replace rake, sake and rubigen.

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

sudo apt-get -y install ruby-thor

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

You can also use apt command to install ruby-thor.

sudo apt -y install ruby-thor

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

sudo aptitude install ruby-thor

Summary

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