tmpl command not found

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

Introduction

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

tmpl: command not found

or when using sudo you get the following error message

sudo: tmpl: command not found

Solutions to tmpl: command not found

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

In Ubuntu tmpl is provided by tmpl package.

tmpl is:

This program is a command line interface to Go’s text/template library. It can be used by passing in a set of JSON-encoded data and a list of template paths ending in a .tmpl extension. The templates are processed and their results are saved to the filename with the .tmpl extension removed.

This package contains the command line interface utility.

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

sudo apt-get -y install tmpl

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

You can also use apt command to install tmpl.

sudo apt -y install tmpl

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

sudo aptitude install tmpl

Summary

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