shtoolize command not found

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

Introduction

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

shtoolize: command not found

or when using sudo you get the following error message

sudo: shtoolize: command not found

Solutions to shtoolize: command not found

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

In Ubuntu shtoolize is provided by shtool package.

shtool is:

GNU shtool is a tool for developers of software programs. It is a compilation of small but very stable and portable shell scripts into a single shell tool. All ingredients were in successful use over many years in various free software projects.

The compiled shtool program is intended to be used inside the source tree of other free software packages. There it can overtake various (usually non-portable) tasks related to the building and installation of such a package. It especially can replace the old mkdir.sh, install.sh and related scripts.

GNU shtool currently contains the following tools: echo, mdate, table, prop, move, install, mkdir, mkln, mkshadow, fixperm, rotate, tarball, subst, platform, arx, slo, scpp, version and path.

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

sudo apt-get -y install shtool

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

You can also use apt command to install shtool.

sudo apt -y install shtool

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

sudo aptitude install shtool

Summary

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