leo command not found

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

Introduction

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

leo: command not found

or when using sudo you get the following error message

sudo: leo: command not found

Solutions to leo: command not found

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

In Ubuntu leo is provided by libwww-dict-leo-org-perl package.

libwww-dict-leo-org-perl is:

WWW::Dict::Leo::Org is a module which connects to the website dict.leo.org and translates the given term. It returns an array of hashes. Each hash contains a left side and a right side of the result entry.

The package also provides the `leo’ commandline interface to the German/English/French dictionary on https://dict.leo.org/. It supports almost all features which the website supports.

Results will be printed to the terminal. By default the search term will be highlighted. To get faster results, `leo’ is able to cache queries.

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

sudo apt-get -y install libwww-dict-leo-org-perl

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

You can also use apt command to install libwww-dict-leo-org-perl.

sudo apt -y install libwww-dict-leo-org-perl

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

sudo aptitude install libwww-dict-leo-org-perl

Summary

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