json-glib-validate command not found

In this troubleshooting guide we learn how to fix json-glib-validate command not found error message

Introduction

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

json-glib-validate: command not found

or when using sudo you get the following error message

sudo: json-glib-validate: command not found

Solutions to json-glib-validate: command not found

How To Fix json-glib-validate: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu json-glib-validate is provided by json-glib-tools package.

json-glib-tools is:

JSON-GLib is a library for parsing, generating and manipulating JavaScript Object Notation (JSON) data streams using the GLib type system. It allows manipulating JSON data types with a Document Object Model API. It also allows serializing and deserializing simple or complex GObjects to and from JSON data types.

This package contains the json-glib-format and json-glib-validate tools.

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

sudo apt-get -y install json-glib-tools

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

You can also use apt command to install json-glib-tools.

sudo apt -y install json-glib-tools

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

sudo aptitude install json-glib-tools

Summary

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