eu-ar command not found

In this troubleshooting guide we learn how to fix eu-ar command not found error message

Introduction

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

eu-ar: command not found

or when using sudo you get the following error message

sudo: eu-ar: command not found

Solutions to eu-ar: command not found

How To Fix eu-ar: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu eu-ar is provided by elfutils package.

elfutils is:

Elfutils is a collection of utilities, including eu-ld (a linker), eu-nm (for listing symbols from object files), eu-size (for listing the section sizes of an object or archive file), eu-strip (for discarding symbols), eu-readelf (to see the raw ELF file structures), and eu-elflint (to check for well-formed ELF files).

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

sudo apt-get -y install elfutils

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

You can also use apt command to install elfutils.

sudo apt -y install elfutils

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

sudo aptitude install elfutils

Summary

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