gpgtar command not found

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

Introduction

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

gpgtar: command not found

or when using sudo you get the following error message

sudo: gpgtar: command not found

Solutions to gpgtar: command not found

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

In Ubuntu gpgtar is provided by gnupg-utils package.

gnupg-utils is:

GnuPG is GNU’s tool for secure communication and data storage.

This package contains several useful utilities for manipulating OpenPGP data and other related cryptographic elements. It includes:

  • addgnupghome – create .gnupg home directories
  • applygnupgdefaults – run gpgconf –apply-defaults for all users
  • gpgcompose – an experimental tool for constructing arbitrary sequences of OpenPGP packets (e.g. for testing)
  • gpgparsemail – parse an e-mail message into annotated format
  • gpgsplit – split a sequence of OpenPGP packets into files
  • gpgtar – encrypt or sign files in an archive
  • kbxutil – list, export, import Keybox data
  • lspgpot – convert PGP ownertrust values to GnuPG
  • migrate-pubring-from-classic-gpg – use only “modern” formats
  • symcryptrun – use simple symmetric encryption tool in GnuPG framework
  • watchgnupg – watch socket-based logs

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

sudo apt-get -y install gnupg-utils

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

You can also use apt command to install gnupg-utils.

sudo apt -y install gnupg-utils

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

sudo aptitude install gnupg-utils

Summary

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