ckbcomp command not found

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

Introduction

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

ckbcomp: command not found

or when using sudo you get the following error message

sudo: ckbcomp: command not found

Solutions to ckbcomp: command not found

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

In Ubuntu ckbcomp is provided by console-setup package.

console-setup is:

This package provides the console with the same keyboard configuration scheme as the X Window System. As a result, there is no need to duplicate or change the keyboard files just to make simple customizations such as the use of dead keys, the key functioning as AltGr or Compose key, the key(s) to switch between Latin and non-Latin mode, etc.

The package also installs console fonts supporting many of the world’s languages. It provides an unified set of font faces - the classic VGA, the simplistic Fixed, and the cleaned Terminus, TerminusBold and TerminusBoldVGA.

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

sudo apt-get -y install console-setup

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

You can also use apt command to install console-setup.

sudo apt -y install console-setup

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

sudo aptitude install console-setup

Summary

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