shell-quote command not found

In this troubleshooting guide we learn how to fix shell-quote command not found error message

Introduction

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

shell-quote: command not found

or when using sudo you get the following error message

sudo: shell-quote: command not found

Solutions to shell-quote: command not found

How To Fix shell-quote: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu shell-quote is provided by libstring-shellquote-perl package.

libstring-shellquote-perl is:

The String::ShellQuote module contains some functions which are useful for quoting strings which are going to pass through the shell or a shell-like object, plus a command-line interface to it. It is useful for doing robust tool programming, particularly when dealing with files whose names contain white space or shell globbing characters.

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

sudo apt-get -y install libstring-shellquote-perl

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

You can also use apt command to install libstring-shellquote-perl.

sudo apt -y install libstring-shellquote-perl

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

sudo aptitude install libstring-shellquote-perl

Summary

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