watcher-sync command not found

In this troubleshooting guide we learn how to fix watcher-sync command not found error message

Introduction

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

watcher-sync: command not found

or when using sudo you get the following error message

sudo: watcher-sync: command not found

Solutions to watcher-sync: command not found

How To Fix watcher-sync: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu watcher-sync is provided by python3-watcher package.

python3-watcher is:

OpenStack Watcher provides a flexible and scalable resource optimization service for multi-tenant OpenStack-based clouds. Watcher provides a complete optimization loop-including everything from a metrics receiver, complex event processor and profiler, optimization processor and an action plan applier. This provides a robust framework to realize a wide range of cloud optimization goals, including the reduction of data center operating costs, increased system performance via intelligent virtual machine migration, increased energy efficiency-and more!

This package contains the Python 3 libraries that are part of Watcher.

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

sudo apt-get -y install python3-watcher

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

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

sudo apt -y install python3-watcher

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

sudo aptitude install python3-watcher

Summary

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