rice command not found

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

Introduction

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

rice: command not found

or when using sudo you get the following error message

sudo: rice: command not found

Solutions to rice: command not found

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

In Ubuntu rice is provided by golang-rice package.

golang-rice is:

go.rice is a Golang package that makes working with resources such as html, js, css, images and templates very easy. During development go.rice will load required files directly from disk. Upon deployment it is easy to add all resource files to a executable using the rice tool, without changing the source code for your package. Several methods are provided for adding resources to your binary by go.rice.

This package contains the command-line tool.

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

sudo apt-get -y install golang-rice

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

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

sudo apt -y install golang-rice

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

sudo aptitude install golang-rice

Summary

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