codepage command not found

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

Introduction

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

codepage: command not found

or when using sudo you get the following error message

sudo: codepage: command not found

Solutions to codepage: command not found

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

In Ubuntu codepage is provided by kbd package.

kbd is:

This package allows you to set up the Linux console, change the font, resize text mode virtual consoles and remap the keyboard.

You will probably want to install a set of data files, such as the one in the “console-setup” package.

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

sudo apt-get -y install kbd

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

You can also use apt command to install kbd.

sudo apt -y install kbd

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

sudo aptitude install kbd

Summary

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