erb command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
erb: command not found
or when using sudo you get the following error message
sudo: erb: command not found
Solutions to erb: command not found
How To Fix erb: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu erb is provided by ruby package.
ruby is:
Ruby is the interpreted scripting language for quick and easy object-oriented programming. It has many features to process text files and to do system management tasks (as in perl). It is simple, straight-forward, and extensible.
This package is a dependency package, which depends on Debian’s default Ruby version (currently v3.0).
To fix this problem, we can install more using the command below.
sudo apt-get -y install ruby
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install ruby.
sudo apt -y install ruby
Or if you have aptitude installed you can use the following command.
sudo aptitude install ruby
Summary
In this tutorial we learn how to fix erb command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.