tomll command not found

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

Introduction

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

tomll: command not found

or when using sudo you get the following error message

sudo: tomll: command not found

Solutions to tomll: command not found

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

In Ubuntu tomll is provided by golang-github-pelletier-go-toml package.

golang-github-pelletier-go-toml is:

This library supports TOML (Tom’s Obvious, Minimal Language) version v1.0.0-rc.3

Go-toml provides the following features for using data parsed from TOML documents:

  • Load TOML documents from files and string data
  • Easily navigate TOML structure using Tree
  • Marshaling and unmarshaling to and from data structures
  • Line & column position data for all parsed elements
  • Query support similar to JSON-Path
  • Syntax errors contain line and column numbers

This package contains the three command-line programs tomll, tomljson and jsontoml.

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

sudo apt-get -y install golang-github-pelletier-go-toml

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

You can also use apt command to install golang-github-pelletier-go-toml.

sudo apt -y install golang-github-pelletier-go-toml

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

sudo aptitude install golang-github-pelletier-go-toml

Summary

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