setupcon command not found

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

Introduction

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

setupcon: command not found

or when using sudo you get the following error message

sudo: setupcon: command not found

Solutions to setupcon: command not found

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

In Ubuntu setupcon is provided by console-setup-mini package.

console-setup-mini 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.

This package can be useful for handhelds or other devices with small storage space.

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

sudo apt-get -y install console-setup-mini

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

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

sudo apt -y install console-setup-mini

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

sudo aptitude install console-setup-mini

Summary

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