wstool command not found

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

Introduction

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

wstool: command not found

or when using sudo you get the following error message

sudo: wstool: command not found

Solutions to wstool: command not found

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

In Ubuntu wstool is provided by python3-wstool package.

python3-wstool is:

This package is part of Robot OS (ROS). It provides commands to manage several local VCS repositories based on a single workspace definition file (.rosinstall). Git, Mercurial, Subversion, and Bazaar are supported.

wstool replaces the rosws tool for catkin workspaces. As catkin workspaces create their own setup file and environment, wstool is reduced to version control functions only. So wstool does not have a “regenerate” command, and does not allow adding non-version controlled elements to workspaces. In all other respects, it behaves the same as rosws.

This package installs the library for Python 3.

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

sudo apt-get -y install python3-wstool

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

You can also use apt command to install python3-wstool.

sudo apt -y install python3-wstool

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

sudo aptitude install python3-wstool

Summary

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