pexec command not found

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

Introduction

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

pexec: command not found

or when using sudo you get the following error message

sudo: pexec: command not found

Solutions to pexec: command not found

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

In Ubuntu pexec is provided by pexec package.

pexec is:

The main purpose of pexec is to execute the given command in parallel on the local host or on remote hosts, while some of the execution parameters, namely the redirected standard input, output or error and environmental variables can be varied. The capabilities of the program are extended with additional features, such as allowing to define mutual exclusions, do atomic command executions and implement higher level resource and job control. The maximum number of simultaneous tasks can be controlled by a hypervisor daemon: with such a daemon, concurrent pexec instances can be launched without an unexpectedly high load.

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

sudo apt-get -y install pexec

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

You can also use apt command to install pexec.

sudo apt -y install pexec

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

sudo aptitude install pexec

Summary

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