lzma_alone command not found

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

Introduction

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

lzma_alone: command not found

or when using sudo you get the following error message

sudo: lzma_alone: command not found

Solutions to lzma_alone: command not found

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

In Ubuntu lzma_alone is provided by lzma-alone package.

lzma-alone is:

The Lempel-Ziv-Markov chain Algorithm is a compression method based on the famous LZ77 algorithm, and was first introduced by 7-Zip for use in 7z archives.

Its main characteristics are a very high compression ratio, with high RAM usage, and fast decompression, with low RAM usage. These properties make it well suited to embedded uses, such as for ROM (firmware) compression.

This package provides only the old lzma_alone compression utility, which has an interface more like that of zip.

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

sudo apt-get -y install lzma-alone

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

You can also use apt command to install lzma-alone.

sudo apt -y install lzma-alone

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

sudo aptitude install lzma-alone

Summary

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