nasty command not found

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

Introduction

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

nasty: command not found

or when using sudo you get the following error message

sudo: nasty: command not found

Solutions to nasty: command not found

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

In Ubuntu nasty is provided by nasty package.

nasty is:

Nasty is a program that helps you to recover the passphrase of your PGP or GPG-key in case you forget or lost it. The following features will make things easier:

  • set minimum/maximum length of the passphrase
  • incremental mode, random mode or reads a file for guessing
  • charset filter

This package is useful in forensics investigations.

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

sudo apt-get -y install nasty

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

You can also use apt command to install nasty.

sudo apt -y install nasty

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

sudo aptitude install nasty

Summary

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