sfex_init command not found

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

Introduction

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

sfex_init: command not found

or when using sudo you get the following error message

sudo: sfex_init: command not found

Solutions to sfex_init: command not found

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

In Ubuntu sfex_init is provided by resource-agents-common package.

resource-agents-common is:

This package contains cluster resource agents (RAs) compliant with the Open Cluster Framework (OCF) specification, used to interface with various services in a High Availability environment managed by the Pacemaker resource manager.

This package provides common files used by the Resource Agents.

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

sudo apt-get -y install resource-agents-common

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

You can also use apt command to install resource-agents-common.

sudo apt -y install resource-agents-common

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

sudo aptitude install resource-agents-common

Summary

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