brotli command not found

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

Introduction

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

brotli: command not found

or when using sudo you get the following error message

sudo: brotli: command not found

Solutions to brotli: command not found

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

In Ubuntu brotli is provided by brotli package.

brotli is:

Brotli is a generic-purpose lossless compression algorithm that compresses data using a combination of a modern variant of the LZ77 algorithm, Huffman coding and 2nd order context modeling, with a compression ratio comparable to the best currently available general-purpose compression methods. It is similar in speed with deflate but offers more dense compression.

This package installs a command line utility.

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

sudo apt-get -y install brotli

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

You can also use apt command to install brotli.

sudo apt -y install brotli

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

sudo aptitude install brotli

Summary

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