pathspec-rb command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
pathspec-rb: command not found
or when using sudo you get the following error message
sudo: pathspec-rb: command not found
Solutions to pathspec-rb: command not found
How To Fix pathspec-rb: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu pathspec-rb is provided by ruby-pathspec package.
ruby-pathspec is:
This library implements matching of path patterns as they exist in gitignore files. With this library you can load a gitignore file, and then verify that a path matches one of the patterns listed in the file. You can also find out all of the files matching different patterns in a whole hierarchy of a filesystem.
This library is a ruby port of the Python library with the same name.
To fix this problem, we can install more using the command below.
sudo apt-get -y install ruby-pathspec
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install ruby-pathspec.
sudo apt -y install ruby-pathspec
Or if you have aptitude installed you can use the following command.
sudo aptitude install ruby-pathspec
Summary
In this tutorial we learn how to fix pathspec-rb command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.