strace command not found

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

Introduction

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

strace: command not found

or when using sudo you get the following error message

sudo: strace: command not found

Solutions to strace: command not found

How To Fix strace: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu strace is provided by strace package.

strace is:

strace is a system call tracer: i.e. a debugging tool which prints out a trace of all the system calls made by another process/program. The program to be traced need not be recompiled for this, so you can use it on binaries for which you don’t have source.

System calls and signals are events that happen at the user/kernel interface. A close examination of this boundary is very useful for bug isolation, sanity checking and attempting to capture race conditions.

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

sudo apt-get -y install strace

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

You can also use apt command to install strace.

sudo apt -y install strace

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

sudo aptitude install strace

Summary

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