hugo command not found

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

Introduction

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

hugo: command not found

or when using sudo you get the following error message

sudo: hugo: command not found

Solutions to hugo: command not found

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

In Ubuntu hugo is provided by hugo package.

hugo is:

Hugo is a static site generator written in Go. It is optimized for speed, ease of use, and configurability. Hugo takes a directory with content and templates, and renders them into a full HTML website.

Hugo relies on Markdown files with front matter for meta data. And you can run Hugo from any directory. This works well for shared hosts and other systems where you don’t have a privileged account.

Hugo renders a typical website of moderate size in a fraction of a second. A good rule of thumb is that each piece of content renders in around 1 millisecond.

Hugo is meant to work well for any kind of website including blogs, tumblelogs and docs.

Complete documentation is available at https://gohugo.io/

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

sudo apt-get -y install hugo

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

You can also use apt command to install hugo.

sudo apt -y install hugo

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

sudo aptitude install hugo

Summary

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