gpgsm command not found

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

Introduction

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

gpgsm: command not found

or when using sudo you get the following error message

sudo: gpgsm: command not found

Solutions to gpgsm: command not found

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

In Ubuntu gpgsm is provided by gpgsm package.

gpgsm is:

GnuPG is GNU’s tool for secure communication and data storage. It can be used to encrypt data and to create digital signatures. It includes an advanced key management facility and is compliant with the proposed OpenPGP Internet standard as described in RFC4880.

This package contains the gpgsm program. gpgsm is a tool to provide digital encryption and signing services on X.509 certificates and the CMS protocol. gpgsm includes complete certificate management.

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

sudo apt-get -y install gpgsm

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

You can also use apt command to install gpgsm.

sudo apt -y install gpgsm

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

sudo aptitude install gpgsm

Summary

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