unstr command not found

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

Introduction

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

unstr: command not found

or when using sudo you get the following error message

sudo: unstr: command not found

Solutions to unstr: command not found

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

In Ubuntu unstr is provided by fortune-mod package.

fortune-mod is:

The fortune program displays epigrams, known as fortune cookies, selected randomly from a selection of fortune files.

This package provides the fortune program itself and the programs used for generating the data files. The data files are contained in the fortunes-min, fortunes, and fortunes-off packages.

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

sudo apt-get -y install fortune-mod

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

You can also use apt command to install fortune-mod.

sudo apt -y install fortune-mod

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

sudo aptitude install fortune-mod

Summary

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