pwait command not found

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

Introduction

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

pwait: command not found

or when using sudo you get the following error message

sudo: pwait: command not found

Solutions to pwait: command not found

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

In Ubuntu pwait is provided by extrace package.

extrace is:

extrace traces all program executions happening on a system, or the subset of program executions done by a given process and its descendants. For example, to see what the shell really executes:

$ sudo extrace -p $(pidof zsh) 8505 git rev-parse –is-inside-work-tree 8506 direnv export zsh 8511 git rev-parse –is-inside-work-tree 8515 wc -l 8516 whoami 8542 hostname 8543 git rev-parse –is-inside-work-tree 8544 direnv export zsh 8549 /bin/bash –noprofile –norc -c ’eval “$("/usr/bin/direnv” stdlib)" >&2
&& source_env “.envrc” >&2 && “/usr/bin/direnv” dump' 8551 /usr/bin/direnv stdlib 8558 /usr/bin/direnv watch .envrc 8565 dirname .envrc 8567 basename .envrc 8569 basename .envrc 8549 /usr/bin/direnv dump 8574 git rev-parse –is-inside-work-tree 8578 wc -l 8579 whoami

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

sudo apt-get -y install extrace

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

You can also use apt command to install extrace.

sudo apt -y install extrace

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

sudo aptitude install extrace

Summary

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