testasciidoc command not found

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

Introduction

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

testasciidoc: command not found

or when using sudo you get the following error message

sudo: testasciidoc: command not found

Solutions to testasciidoc: command not found

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

In Ubuntu testasciidoc is provided by asciidoc-tests package.

asciidoc-tests is:

AsciiDoc is a text document format for writing articles, books, manuals and UNIX man pages. AsciiDoc files can be translated to HTML (with or without stylesheets), DocBook (articles, books and refentry documents) and LinuxDoc using the asciidoc command. AsciiDoc can also be used to build and maintain websites.

You write an AsciiDoc document the same way you would write a normal text document, there are no markup tags or weird format notations. AsciiDoc files are designed to be viewed, edited and printed directly or translated to other presentation formats

This package provides the testasciidoc binary and the test engine files.

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

sudo apt-get -y install asciidoc-tests

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

You can also use apt command to install asciidoc-tests.

sudo apt -y install asciidoc-tests

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

sudo aptitude install asciidoc-tests

Summary

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