crypt-xordataexchange command not found

In this troubleshooting guide we learn how to fix crypt-xordataexchange command not found error message

Introduction

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

crypt-xordataexchange: command not found

or when using sudo you get the following error message

sudo: crypt-xordataexchange: command not found

Solutions to crypt-xordataexchange: command not found

How To Fix crypt-xordataexchange: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu crypt-xordataexchange is provided by golang-github-xordataexchange-crypt package.

golang-github-xordataexchange-crypt is:

Fess up. You have passwords and usernames hard coded in your apps. You have IP addresses checked in to your source code repository. You have entire configuration files that were created by the developer who wrote the app and haven’t been changed since she typed “git init”.

“crypt” is here to lead you back to the Path of Enlightened Configuration. Store encrypted configuration values in etcd or Consul using a command-line application.

Decrypt them before starting your application using a wrapper script and the handy CLI tool, or inside the app using the “crypt/config” library.

“crypt” is built on time-tested standards like OpenPGP, base64, and gzip. Your data is encrypted using public key encryption, and can only be decrypted by when the private key is available. After compression, it is encrypted, and base64-encoded so it can be stored in your key/value store of choice. etcd and Consul are supported out of the box, but adding other storage tools is a trivial task, thanks to Go’s interfaces.

This package provides the command-line tool “bin/crypt”, but renamed to /usr/bin/crypt-xordataexchange, to avoid filename collision with /usr/bin/crypt from the mcrypt package.

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

sudo apt-get -y install golang-github-xordataexchange-crypt

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

You can also use apt command to install golang-github-xordataexchange-crypt.

sudo apt -y install golang-github-xordataexchange-crypt

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

sudo aptitude install golang-github-xordataexchange-crypt

Summary

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