odt2txt.odt2txt command not found

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

Introduction

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

odt2txt.odt2txt: command not found

or when using sudo you get the following error message

sudo: odt2txt.odt2txt: command not found

Solutions to odt2txt.odt2txt: command not found

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

In Ubuntu odt2txt.odt2txt is provided by odt2txt package.

odt2txt is:

odt2txt is a command-line tool which extracts the text out of OpenDocument Texts, as produced by OpenOffice.org, KOffice, StarOffice and others.

odt2txt can also extract text from some file formats similar to OpenDocument Text, such as OpenOffice.org XML (.sxw), which was used by OpenOffice.org version 1.x and older StarOffice versions. To a lesser extend, odt2txt may be useful to extract content from OpenDocument spreadsheets (.ods) and OpenDocument presentations (*.odp).

It is small and fast, can output the document in many encodings and adopts to your locale.

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

sudo apt-get -y install odt2txt

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

You can also use apt command to install odt2txt.

sudo apt -y install odt2txt

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

sudo aptitude install odt2txt

Summary

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