dotextwrap command not found

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

Introduction

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

dotextwrap: command not found

or when using sudo you get the following error message

sudo: dotextwrap: command not found

Solutions to dotextwrap: command not found

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

In Ubuntu dotextwrap is provided by libtextwrap-dev package.

libtextwrap-dev is:

Text-wrapping (or line-folding) library for displaying a string on the terminal. This supports i18n (internationalization), i.e, automatic locale-encoding detection, multibyte encoding (such as UTF-8, EUC-JP, and so on), fullwidth characters (occupying two columns per one character, like CJK Ideogram), combining characters (occupying zero columns per one character, like Thai and diacritical marks), and languages which do not use whitespaces between words (like Chinese and Japanese).

This package contains files needed for development using this library.

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

sudo apt-get -y install libtextwrap-dev

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

You can also use apt command to install libtextwrap-dev.

sudo apt -y install libtextwrap-dev

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

sudo aptitude install libtextwrap-dev

Summary

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