retry command not found

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

Introduction

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

retry: command not found

or when using sudo you get the following error message

sudo: retry: command not found

Solutions to retry: command not found

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

In Ubuntu retry is provided by retry package.

retry is:

Retry captures stdin into memory as the data is passed to the repeated command, and this captured stdin is then replayed should the command be repeated. This makes it possible to embed the retry tool into shell pipelines.

Retry captures stdout into memory, and if the command was successful stdout is passed on to stdout as normal, while if the command was repeated stdout is passed to stderr instead. This ensures that output is passed to stdout once and once only.

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

sudo apt-get -y install retry

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

You can also use apt command to install retry.

sudo apt -y install retry

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

sudo aptitude install retry

Summary

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