sqfs2tar command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
sqfs2tar: command not found
or when using sudo you get the following error message
sudo: sqfs2tar: command not found
Solutions to sqfs2tar: command not found
How To Fix sqfs2tar: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu sqfs2tar is provided by squashfs-tools-ng package.
squashfs-tools-ng is:
SquashFS is a highly compressed read-only filesystem for Linux, optimized for small size and high packing density. It is widely used in embedded systems and bootable live media.
SquashFS supports many different compression formats, such as zstd, xz, zlib or lzo for both data and metadata compression. It has many features expected from popular filesystems, such as extended attributes and support for NFS export.
As the name suggests, this is not the original user space tooling for SquashFS. Here are some of the features that primarily distinguish this package from the original:
- reproducible SquashFS images, i.e. deterministic packing without any local time stamps,
- Linux
gen_init_cpio
like file listing for micro managing the file system contents, permissions, and ownership without having to replicate the file system (and especially permissions) locally, - support for SELinux contexts file (see selabel_file(5)) to generate SELinux labels.
To fix this problem, we can install more using the command below.
sudo apt-get -y install squashfs-tools-ng
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install squashfs-tools-ng.
sudo apt -y install squashfs-tools-ng
Or if you have aptitude installed you can use the following command.
sudo aptitude install squashfs-tools-ng
Summary
In this tutorial we learn how to fix sqfs2tar command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.