select-default-wordlist command not found

In this troubleshooting guide we learn how to fix select-default-wordlist command not found error message

Introduction

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

select-default-wordlist: command not found

or when using sudo you get the following error message

sudo: select-default-wordlist: command not found

Solutions to select-default-wordlist: command not found

How To Fix select-default-wordlist: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu select-default-wordlist is provided by dictionaries-common package.

dictionaries-common is:

This package provides utilities shared between all wordlists and spelling dictionaries for Ispell, Aspell, or MySpell/Hunspell. It also includes support infrastructure for software using them (such as JED and Mutt), and some patched spell-checking Lisp files for better Emacs integration.

More information about the availability of these dictionaries and their naming conventions is available in the README.Debian file.

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

sudo apt-get -y install dictionaries-common

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

You can also use apt command to install dictionaries-common.

sudo apt -y install dictionaries-common

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

sudo aptitude install dictionaries-common

Summary

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