setserial command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
setserial: command not found
or when using sudo you get the following error message
sudo: setserial: command not found
Solutions to setserial: command not found
How To Fix setserial: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu setserial is provided by setserial package.
setserial is:
Set and/or report the configuration information associated with a serial port. This information includes what I/O port and which IRQ a particular serial port is using.
This version has a completely new approach to configuration, so if you have a setup other than the standard ttyS0 and 1, you will have to get your hands dirty.
By default, only COM1-4 are configured by the kernel, using IRQ 3 and 4. If you have other serial ports (such as an AST Fourport card), or if you have mapped the IRQs differently (perhaps COM3 and 4 to other IRQs to allow concurrent access with COM1 and 2) then you must have this package.
To fix this problem, we can install more using the command below.
sudo apt-get -y install setserial
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install setserial.
sudo apt -y install setserial
Or if you have aptitude installed you can use the following command.
sudo aptitude install setserial
Summary
In this tutorial we learn how to fix setserial command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.