pki-upgrade command not found

In this troubleshooting guide we learn how to fix pki-upgrade command not found error message

Introduction

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

pki-upgrade: command not found

or when using sudo you get the following error message

sudo: pki-upgrade: command not found

Solutions to pki-upgrade: command not found

How To Fix pki-upgrade: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu pki-upgrade is provided by pki-base package.

pki-base is:

The PKI Framework contains the common and client libraries and utilities.

This package is a part of the PKI Core used by the Certificate System.

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

sudo apt-get -y install pki-base

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

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

sudo apt -y install pki-base

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

sudo aptitude install pki-base

Summary

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