gpg1 command not found

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

Introduction

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

gpg1: command not found

or when using sudo you get the following error message

sudo: gpg1: command not found

Solutions to gpg1: command not found

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

In Ubuntu gpg1 is provided by gnupg1 package.

gnupg1 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 RFC 4880.

The gnupg1 package provides GnuPG 1.4, the “classic” standalone, non-modularized version. It is provided mainly for people with the need to use archaic cryptographic objects like PGPv3 keys to access archived messages. It does not support more recent cryptographic primitives like ECDSA or EdDSA. Please use the gnupg package instead unless you know for sure that you need gnupg1.

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

sudo apt-get -y install gnupg1

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

You can also use apt command to install gnupg1.

sudo apt -y install gnupg1

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

sudo aptitude install gnupg1

Summary

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