alt_getopt.sh command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
alt_getopt.sh: command not found
or when using sudo you get the following error message
sudo: alt_getopt.sh: command not found
Solutions to alt_getopt.sh: command not found
How To Fix alt_getopt.sh: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu alt_getopt.sh is provided by runawk package.
runawk is:
RunAWK is a small wrapper for AWK interpreter that implements module system (similar to Perl’s “use” command) and helps in writing standalone AWK programs.
This package also provides about a dozen of modules implementing most common string, array and system function.
To fix this problem, we can install more using the command below.
sudo apt-get -y install runawk
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install runawk.
sudo apt -y install runawk
Or if you have aptitude installed you can use the following command.
sudo aptitude install runawk
Summary
In this tutorial we learn how to fix alt_getopt.sh command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.