gpgrt-config command not found

In this troubleshooting guide we learn how to fix gpgrt-config command not found error message

Introduction

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

gpgrt-config: command not found

or when using sudo you get the following error message

sudo: gpgrt-config: command not found

Solutions to gpgrt-config: command not found

How To Fix gpgrt-config: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu gpgrt-config is provided by libgpg-error-dev package.

libgpg-error-dev is:

Library that defines common error values, messages, and common runtime functionality for all GnuPG components. Among these are GPG, GPGSM, GPGME, GPG-Agent, libgcrypt, pinentry, SmartCard Daemon and possibly more in the future.

It will likely be renamed “gpgrt” in the future.

This package contains the headers and other files needed to compile against this library.

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

sudo apt-get -y install libgpg-error-dev

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

You can also use apt command to install libgpg-error-dev.

sudo apt -y install libgpg-error-dev

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

sudo aptitude install libgpg-error-dev

Summary

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