xcolorsel command not found

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

Introduction

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

xcolorsel: command not found

or when using sudo you get the following error message

sudo: xcolorsel: command not found

Solutions to xcolorsel: command not found

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

In Ubuntu xcolorsel is provided by xcolorsel package.

xcolorsel is:

xcolorsel is an X utility that displays the contents of the X color list file (/etc/X11/rgb.txt) together with tiles showing how the color looks on your screen. You can cut the color names/definitions in various formats (suitable for resource files or C source) so they can be pasted directly into source codes or resources.

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

sudo apt-get -y install xcolorsel

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

You can also use apt command to install xcolorsel.

sudo apt -y install xcolorsel

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

sudo aptitude install xcolorsel

Summary

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