unsquashfs command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
unsquashfs: command not found
or when using sudo you get the following error message
sudo: unsquashfs: command not found
Solutions to unsquashfs: command not found
How To Fix unsquashfs: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu unsquashfs is provided by squashfs-tools package.
squashfs-tools is:
Squashfs is a highly compressed read-only filesystem for Linux. It uses zlib compression to compress both files, inodes and directories. Inodes in the system are very small and all blocks are packed to minimise data overhead. Block sizes greater than 4K are supported up to a maximum of 64K.
Squashfs is intended for general read-only filesystem use, for archival use (i.e. in cases where a .tar.gz file may be used), and in constrained block device/memory systems (e.g. embedded systems) where low overhead is needed.
To fix this problem, we can install more using the command below.
sudo apt-get -y install squashfs-tools
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install squashfs-tools.
sudo apt -y install squashfs-tools
Or if you have aptitude installed you can use the following command.
sudo aptitude install squashfs-tools
Summary
In this tutorial we learn how to fix unsquashfs command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.