trcs command not found

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

Introduction

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

trcs: command not found

or when using sudo you get the following error message

sudo: trcs: command not found

Solutions to trcs: command not found

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

In Ubuntu trcs is provided by trscripts package.

trscripts is:

The script `trbdf’ can convert a BDF font from one codeset to another.

The script trcs' reencodes text files from one codeset to another. It can generate scripts for tr’. For example the command trcs –from cp1252 –to latin1 –gen-script gives you the following output: #!/bin/sh

trap “exit 0” PIPE

cat “$@” | tr
‘\200’’\201’’\202’’\203’’\204’’\205’’\206’’\207’’\210’’\211’’\212’
‘\213’’\214’’\215’’\216’’\217’’\220’’\221’’\222’’\223’’\224’’\225’
‘\226’’\227’’\230’’\231’’\232’’\233’’\234’’\235’’\236’’\237’
‘\105’’\77’’\47’’\146’’\42’’\267’’\53’’\77’’\136’’\77’’\123’
‘\253’’\117’’\77’’\132’’\77’’\77’’\47’’\47’’\42’’\42’’\267’
‘-’’-’’\176’’\77’’\163’’\273’’\157’’\77’’\172’’\131’

Both scripts try to approximate the missing from the target codeset symbols.

It is easy to add support of other character sets.

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

sudo apt-get -y install trscripts

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

You can also use apt command to install trscripts.

sudo apt -y install trscripts

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

sudo aptitude install trscripts

Summary

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