kcapi-dgst command not found

In this troubleshooting guide we learn how to fix kcapi-dgst command not found error message

Introduction

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

kcapi-dgst: command not found

or when using sudo you get the following error message

sudo: kcapi-dgst: command not found

Solutions to kcapi-dgst: command not found

How To Fix kcapi-dgst: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu kcapi-dgst is provided by kcapi-tools package.

kcapi-tools is:

The Linux kernel exports a Netlink interface of type AF_ALG to allow user space to utilize the kernel crypto API. libkcapi uses this Netlink interface and exports easy to use APIs so that a developer does not need to consider the low-level Netlink interface handling.

The library does not implement any cipher algorithms. All consumer requests are sent to the kernel for processing. Results from the kernel crypto API are returned to the consumer via the library API.

The kernel interface and therefore this library can be used by unprivileged processes.

Install this package for the kcapi-dgst, kcapi-enc & kcapi-rng applications

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

sudo apt-get -y install kcapi-tools

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

You can also use apt command to install kcapi-tools.

sudo apt -y install kcapi-tools

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

sudo aptitude install kcapi-tools

Summary

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