ledger2beancount command not found

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

Introduction

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

ledger2beancount: command not found

or when using sudo you get the following error message

sudo: ledger2beancount: command not found

Solutions to ledger2beancount: command not found

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

In Ubuntu ledger2beancount is provided by ledger2beancount package.

ledger2beancount is:

A script to automatically convert Ledger-based textual ledgers to Beancount ones.

Conversion is based on (concrete) syntax, so that information that is not meaningful for accounting reasons but still valuable (e.g., comments, formatting, etc.) can be preserved.

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

sudo apt-get -y install ledger2beancount

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

You can also use apt command to install ledger2beancount.

sudo apt -y install ledger2beancount

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

sudo aptitude install ledger2beancount

Summary

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