humanfriendly command not found

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

Introduction

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

humanfriendly: command not found

or when using sudo you get the following error message

sudo: humanfriendly: command not found

Solutions to humanfriendly: command not found

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

In Ubuntu humanfriendly is provided by humanfriendly package.

humanfriendly is:

A Python library that can be used to make text interfaces more user friendly. It provides parsing and formatting numbers, file sizes, pathnames and timespans in simple human friendly formats. It provides easy to use timers for long running operations, prompts for selecting a choice from a list of options by typing the option’s number or a unique substring of the option, and terminal interaction including text styling (ANSI escape sequences), user friendly rendering of usage messages and querying the terminal for its size.

This package provides a helper command to access the functions in the library.

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

sudo apt-get -y install humanfriendly

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

You can also use apt command to install humanfriendly.

sudo apt -y install humanfriendly

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

sudo aptitude install humanfriendly

Summary

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