card command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
card: command not found
or when using sudo you get the following error message
sudo: card: command not found
Solutions to card: command not found
How To Fix card: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu card is provided by a2ps package.
a2ps is:
GNU a2ps converts files into PostScript for printing or viewing. It uses a nice default format, usually two pages on each physical page, borders surrounding pages, headers with useful information (page number, printing date, file name or supplied header), line numbering, symbol substitution as well as pretty printing for a wide range of programming languages.
Historically, a2ps started as a text to PostScript converter, but thanks to powerful delegations it is able to let you use it for any kind of files, ie it can also digest manual pages, dvi files, texinfo, ….
Among the other most noticeable features of a2ps are:
- various encodings (all the Latins and others),
- various fonts (automatic font downloading),
- various medias,
- various printer interfaces,
- various output styles,
- various programming languages,
- various helping applications,
- and various spoken languages.
To fix this problem, we can install more using the command below.
sudo apt-get -y install a2ps
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install a2ps.
sudo apt -y install a2ps
Or if you have aptitude installed you can use the following command.
sudo aptitude install a2ps
Summary
In this tutorial we learn how to fix card command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.