colortest-8 command not found

In this troubleshooting guide we learn how to fix colortest-8 command not found error message

Introduction

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

colortest-8: command not found

or when using sudo you get the following error message

sudo: colortest-8: command not found

Solutions to colortest-8: command not found

How To Fix colortest-8: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu colortest-8 is provided by colortest package.

colortest is:

Most terminals are capable of displaying 16 colors; 8 colors and 2 different brightness values, some (like xterm) can display more, even 256 colors.

The colortest package includes set of utilities to help test how many colors a terminal can show. These color settings depend on the $TERM environment variable and termcap entry and by adjusting or selecting correct values, higher colors may be available. The following numbers of colors can be tested for: 8, 16 and 256 colors.

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

sudo apt-get -y install colortest

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

You can also use apt command to install colortest.

sudo apt -y install colortest

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

sudo aptitude install colortest

Summary

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