e2fsck.static command not found

In this troubleshooting guide we learn how to fix e2fsck.static command not found error message

Introduction

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

e2fsck.static: command not found

or when using sudo you get the following error message

sudo: e2fsck.static: command not found

Solutions to e2fsck.static: command not found

How To Fix e2fsck.static: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu e2fsck.static is provided by e2fsck-static package.

e2fsck-static is:

This may be of some help to you if your filesystem gets corrupted enough to break the shared libraries used by the dynamically linked checker.

This binary takes much more space than its dynamic counterpart located in e2fsprogs, though.

You may want to install a statically-linked shell as well, to be able to run this program if something like your C library gets corrupted.

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

sudo apt-get -y install e2fsck-static

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

You can also use apt command to install e2fsck-static.

sudo apt -y install e2fsck-static

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

sudo aptitude install e2fsck-static

Summary

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