colored_dmesg command not found

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

Introduction

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

colored_dmesg: command not found

or when using sudo you get the following error message

sudo: colored_dmesg: command not found

Solutions to colored_dmesg: command not found

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

In Ubuntu colored_dmesg is provided by libterm-extendedcolor-perl package.

libterm-extendedcolor-perl is:

Term::ExtendedColor provides functions for sending so called extended escape sequences to the terminal. This ought to be used with a 256-color compatible terminal.

The codes generated by this module comply to the extension of the ANSI colors standard first implemented in xterm in 1999. The first 16 color indexes (0 - 15) are the regular ANSI colors, while index 16 - 255 are the extendes ones. Most terminal emulators support this extension.

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

sudo apt-get -y install libterm-extendedcolor-perl

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

You can also use apt command to install libterm-extendedcolor-perl.

sudo apt -y install libterm-extendedcolor-perl

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

sudo aptitude install libterm-extendedcolor-perl

Summary

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