html2haml command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
html2haml: command not found
or when using sudo you get the following error message
sudo: html2haml: command not found
Solutions to html2haml: command not found
How To Fix html2haml: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu html2haml is provided by ruby-html2haml package.
ruby-html2haml is:
This package was split by its upstream author from the ‘Haml’ gem (package ruby-haml). It allows converting between HTML and HAML markups, and while mainly aimed at being used within Ruby code, includes an executable wrapper that allows it to be called from the command line.
To fix this problem, we can install more using the command below.
sudo apt-get -y install ruby-html2haml
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install ruby-html2haml.
sudo apt -y install ruby-html2haml
Or if you have aptitude installed you can use the following command.
sudo aptitude install ruby-html2haml
Summary
In this tutorial we learn how to fix html2haml command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.