lz4c command not found

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

Introduction

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

lz4c: command not found

or when using sudo you get the following error message

sudo: lz4c: command not found

Solutions to lz4c: command not found

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

In Ubuntu lz4c is provided by lz4 package.

lz4 is:

LZ4 is a very fast lossless compression algorithm, providing compression speed at 400 MB/s per core, scalable with multi-cores CPU. It also features an extremely fast decoder, with speed in multiple GB/s per core, typically reaching RAM speed limits on multi-core systems.

This package contains files that is tool using liblz4.

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

sudo apt-get -y install lz4

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

You can also use apt command to install lz4.

sudo apt -y install lz4

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

sudo aptitude install lz4

Summary

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