dirmngr-client command not found

In this troubleshooting guide we learn how to fix dirmngr-client command not found error message

Introduction

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

dirmngr-client: command not found

or when using sudo you get the following error message

sudo: dirmngr-client: command not found

Solutions to dirmngr-client: command not found

How To Fix dirmngr-client: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu dirmngr-client is provided by dirmngr package.

dirmngr is:

dirmngr is a server for managing and downloading OpenPGP and X.509 certificates, as well as updates and status signals related to those certificates. For OpenPGP, this means pulling from the public HKP/HKPS keyservers, or from LDAP servers. For X.509 this includes Certificate Revocation Lists (CRLs) and Online Certificate Status Protocol updates (OCSP). It is capable of using Tor for network access.

dirmngr is used for network access by gpg, gpgsm, and dirmngr-client, among other tools. Unless this package is installed, the parts of the GnuPG suite that try to interact with the network will fail.

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

sudo apt-get -y install dirmngr

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

You can also use apt command to install dirmngr.

sudo apt -y install dirmngr

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

sudo aptitude install dirmngr

Summary

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