tsig-keygen command not found

In this troubleshooting guide we learn how to fix tsig-keygen command not found error message

Introduction

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

tsig-keygen: command not found

or when using sudo you get the following error message

sudo: tsig-keygen: command not found

Solutions to tsig-keygen: command not found

How To Fix tsig-keygen: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu tsig-keygen is provided by bind9 package.

bind9 is:

The Berkeley Internet Name Domain (BIND 9) implements an Internet domain name server. BIND 9 is the most widely-used name server software on the Internet, and is supported by the Internet Software Consortium, www.isc.org.

This package provides the server and related configuration files.

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

sudo apt-get -y install bind9

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

You can also use apt command to install bind9.

sudo apt -y install bind9

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

sudo aptitude install bind9

Summary

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