pkispawn command not found

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

Introduction

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

pkispawn: command not found

or when using sudo you get the following error message

sudo: pkispawn: command not found

Solutions to pkispawn: command not found

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

In Ubuntu pkispawn is provided by pki-server package.

pki-server is:

The PKI Server Framework is required by the following four PKI subsystems:

 the Certificate Authority (CA),
 the Data Recovery Manager (DRM),
 the Online Certificate Status Protocol (OCSP) Manager, and
 the Token Key Service (TKS).

This package is a part of the PKI Core used by the Certificate System. The package contains scripts to create and remove PKI subsystems.

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

sudo apt-get -y install pki-server

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

You can also use apt command to install pki-server.

sudo apt -y install pki-server

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

sudo aptitude install pki-server

Summary

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