dwarf2sources command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
dwarf2sources: command not found
or when using sudo you get the following error message
sudo: dwarf2sources: command not found
Solutions to dwarf2sources: command not found
How To Fix dwarf2sources: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu dwarf2sources is provided by dwarf2sources package.
dwarf2sources is:
dwarf2sources is a command-line tool to list the source files that were used to create a given binary and dump it in JSON format. The input files must not be stripped and must contain debugging information in DWARF format.
To fix this problem, we can install more using the command below.
sudo apt-get -y install dwarf2sources
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install dwarf2sources.
sudo apt -y install dwarf2sources
Or if you have aptitude installed you can use the following command.
sudo aptitude install dwarf2sources
Summary
In this tutorial we learn how to fix dwarf2sources command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.