towncrier command not found

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

Introduction

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

towncrier: command not found

or when using sudo you get the following error message

sudo: towncrier: command not found

Solutions to towncrier: command not found

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

In Ubuntu towncrier is provided by towncrier package.

towncrier is:

Towncrier is a utility to produce useful, summarised news files for your project. Rather than reading the VCS history as some newer tools do, or having one single file which developers all write to, towncrier reads “news fragments” which contain information useful to end users.

towncrier delivers the news which is convenient to those that hear it, not those that write it.

That is, a “news fragment” (a small file containing just enough information to be useful to end users) can be written that summarises what has changed from the “developer log” (which may contain complex information about the original issue, how it was fixed, who authored the fix, and who reviewed the fix). By compiling a collection of these fragments, towncrier can produce a digest of the changes which is valuable to those who may wish to use the software.

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

sudo apt-get -y install towncrier

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

You can also use apt command to install towncrier.

sudo apt -y install towncrier

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

sudo aptitude install towncrier

Summary

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