mkfs.erofs command not found

In this troubleshooting guide we learn how to fix mkfs.erofs command not found error message

Introduction

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

mkfs.erofs: command not found

or when using sudo you get the following error message

sudo: mkfs.erofs: command not found

Solutions to mkfs.erofs: command not found

How To Fix mkfs.erofs: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu mkfs.erofs is provided by erofs-utils package.

erofs-utils is:

EROFS (Enhanced Read-Only File System) is a lightweight read-only file system with modern designs (eg. page-sized blocks, inline xattrs/data, etc.) for scenarios which need high-performance read-only requirements, e.g. Android OS for smartphones and LIVECDs.

It also provides fixed-sized output compression support, which improves storage density, keeps relatively higher compression ratios, which is more useful to achieve high performance for embedded devices with limited memory.

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

sudo apt-get -y install erofs-utils

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

You can also use apt command to install erofs-utils.

sudo apt -y install erofs-utils

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

sudo aptitude install erofs-utils

Summary

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