prelink command not found

In this troubleshooting guide we learn how to fix prelink command not found error message

Introduction

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

prelink: command not found

or when using sudo you get the following error message

sudo: prelink: command not found

In Ubuntu prelink is provided by prelink package.

prelink is:

The prelink package contains a utility which modifies ELF shared libraries and executables, so that far fewer relocations need to be resolved at runtime and thus programs come up faster.

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

sudo apt-get -y install prelink

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

You can also use apt command to install prelink.

sudo apt -y install prelink

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

sudo aptitude install prelink

Summary

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