glide command not found

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

Introduction

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

glide: command not found

or when using sudo you get the following error message

sudo: glide: command not found

Solutions to glide: command not found

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

In Ubuntu glide is provided by golang-glide package.

golang-glide is:

Glide is comparable to tools like Cargo, npm, Composer, Bundler, pip, Maven but for Go. It manages vendored packages with ease.

Packages to be vendored are listed in a configuration file at the root of a project along with the appropriate restriction on versions and Glide will download the most recent versions satisfying the constraints into the vendor directory. It will write a lock file to record the exact versions chosen.

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

sudo apt-get -y install golang-glide

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

You can also use apt command to install golang-glide.

sudo apt -y install golang-glide

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

sudo aptitude install golang-glide

Summary

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