pandoc-citeproc-preamble command not found

In this troubleshooting guide we learn how to fix pandoc-citeproc-preamble command not found error message

Introduction

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

pandoc-citeproc-preamble: command not found

or when using sudo you get the following error message

sudo: pandoc-citeproc-preamble: command not found

Solutions to pandoc-citeproc-preamble: command not found

How To Fix pandoc-citeproc-preamble: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu pandoc-citeproc-preamble is provided by pandoc-citeproc-preamble package.

pandoc-citeproc-preamble is:

pandoc-citeproc-preamble is a JSON filter for Pandoc which inserts a preamble before the output that the pandoc-citeproc filter appends to the document. This preamble might include a heading (e.g. “Bibliography”) and raw markup to format the bibliography for the output format.

Since pandoc-citeproc doesn’t provide any facility to add formatting control code to its output, pandoc-citeproc-preamble is necessary to avoid the user being forced to add their control code to the end of their input files, thereby losing the input file’s agnosticity with regard to output format.

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

sudo apt-get -y install pandoc-citeproc-preamble

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

You can also use apt command to install pandoc-citeproc-preamble.

sudo apt -y install pandoc-citeproc-preamble

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

sudo aptitude install pandoc-citeproc-preamble

Summary

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