docx2txt command not found

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

Introduction

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

docx2txt: command not found

or when using sudo you get the following error message

sudo: docx2txt: command not found

Solutions to docx2txt: command not found

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

In Ubuntu docx2txt is provided by docx2txt package.

docx2txt is:

This tool attempts to generate equivalent plain text files from Microsoft .docx documents, preserving some formatting and document information (which MS text conversion drops) along with appropriate character conversions for a good (ascii or utf-8) text experience. It is a platform independent solution consisting of (core) Perl and (wrapper) Unix/Windows shell scripts and a configuration file to control the output text appearance to a fair extent. It can very conveniently be used to build a Web-based docx document conversion service. Some Makefiles and Windows batch files are provided for easy installation of the scripts. With unzippers like CakeCmd that can deal with corrupt Zip archives, this tool can extract text from corrupt docx documents in many cases, where MS Word fails to even open them.

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

sudo apt-get -y install docx2txt

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

You can also use apt command to install docx2txt.

sudo apt -y install docx2txt

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

sudo aptitude install docx2txt

Summary

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