zopfli command not found

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

Introduction

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

zopfli: command not found

or when using sudo you get the following error message

sudo: zopfli: command not found

Solutions to zopfli: command not found

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

In Ubuntu zopfli is provided by zopfli package.

zopfli is:

Zopfli Compression Algorithm is a new zlib (gzip, deflate) compatible compressor. This compressor takes more time (~100x slower), but compresses around 5% better than zlib and better than any other zlib-compatible compressor we have found.

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

sudo apt-get -y install zopfli

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

You can also use apt command to install zopfli.

sudo apt -y install zopfli

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

sudo aptitude install zopfli

Summary

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