l4p-tmpl command not found

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

Introduction

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

l4p-tmpl: command not found

or when using sudo you get the following error message

sudo: l4p-tmpl: command not found

Solutions to l4p-tmpl: command not found

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

In Ubuntu l4p-tmpl is provided by liblog-log4perl-perl package.

liblog-log4perl-perl is:

Log::Log4perl is a pure Perl port of the widely popular Apache/Jakarta log4j library for Java. In the spirit of log4j, Log::Log4perl addresses the shortcomings of typical ad-hoc or homegrown logging systems by providing three mechanisms to control the amount of data being logged and where it ends up at: * Levels allow you to specify the priority of log messages. Low-priority messages are suppressed when the system’s setting allows for only higher-priority messages. * Categories define which parts of the system you want to enable logging in. Category inheritance allows you to elegantly reuse and override previously defined settings of different parts in the category hierarchy. So, at a central location in your system (either in a configuration file or in the startup code) you may specify which components (classes, functions) of your system should generate logs. * Appenders allow you to choose which output devices the log data is being written to, once it clears the previously listed hurdles.

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

sudo apt-get -y install liblog-log4perl-perl

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

You can also use apt command to install liblog-log4perl-perl.

sudo apt -y install liblog-log4perl-perl

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

sudo aptitude install liblog-log4perl-perl

Summary

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