xzdec command not found

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

Introduction

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

xzdec: command not found

or when using sudo you get the following error message

sudo: xzdec: command not found

Solutions to xzdec: command not found

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

In Ubuntu xzdec is provided by xzdec package.

xzdec is:

XZ is the successor to the Lempel-Ziv/Markov-chain Algorithm compression format, which provides memory-hungry but powerful compression (often better than bzip2) and fast, easy decompression.

This package provides the xzdec and lzmadec utilities, which write the decompressed version of a compressed file to standard output. The binaries are very small, so they can be easily stored on small media with some compressed files, and they are linked statically against liblzma so they can be used on machines without a compatible version of liblzma installed. However, they have:

  • no compression support;
  • no support for writing to a file other than standard output;
  • no translated messages;
  • been optimized for size rather than speed.

For a full-featured xzcat command without these limitations, use the xz-utils package instead.

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

sudo apt-get -y install xzdec

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

You can also use apt command to install xzdec.

sudo apt -y install xzdec

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

sudo aptitude install xzdec

Summary

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