mklibs-readelf command not found

In this troubleshooting guide we learn how to fix mklibs-readelf command not found error message

Introduction

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

mklibs-readelf: command not found

or when using sudo you get the following error message

sudo: mklibs-readelf: command not found

Solutions to mklibs-readelf: command not found

How To Fix mklibs-readelf: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu mklibs-readelf is provided by mklibs-copy package.

mklibs-copy is:

mklibs-copy produces a minimal set of shared libraries that contain only the libs which are required by a particular set of executables.

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

sudo apt-get -y install mklibs-copy

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

You can also use apt command to install mklibs-copy.

sudo apt -y install mklibs-copy

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

sudo aptitude install mklibs-copy

Summary

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