ascii2binary command not found

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

Introduction

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

ascii2binary: command not found

or when using sudo you get the following error message

sudo: ascii2binary: command not found

Solutions to ascii2binary: command not found

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

In Ubuntu ascii2binary is provided by ascii2binary package.

ascii2binary is:

This package contains:

  • ascii2binary reads input consisting of ascii or hexadecimal representation numbers separated by whitespace and produces as output the binary equivalents. The type and precision of the binary output is selected using command line flags.
  • binary2ascii reads input consisting of binary numbers and converts them to their ascii or hexadecimal representation. Command line flags specify the type and size of the binary numbers and provide control over the format of the output. Unsigned integers may be written out in binary, octal, decimal, or hexadecimal. Signed integers may be written out only in binary or decimal. Floating point numbers may be written out only decimal, either in standard or scientific notation. (If you want to examine the binary representation of floating point numbers, just treat the input as a sequence of unsigned characters.)

The two programs are useful for generating test data, for inspecting binary files, and for interfacing programs that generate textual output to programs that require binary input and conversely. They can also be useful when it is desired to reformat numbers.

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

sudo apt-get -y install ascii2binary

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

You can also use apt command to install ascii2binary.

sudo apt -y install ascii2binary

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

sudo aptitude install ascii2binary

Summary

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