jq: command not found Ubuntu

Run the following command to fix that:

sudo apt install jq

The output should look like this:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libjq1
The following NEW packages will be installed:
  jq libjq1
0 upgraded, 2 newly installed, 0 to remove and 45 not upgraded.
Need to get 171 kB of archives.
After this operation, 450 kB of additional disk space will be used.
Do you want to continue? [Y/n] 

Pres Y key and hit enter.

Confirm if the package is installed by running the following command:

apt -qq list jq

The output should look like this:

jq/focal-updates,now 1.6-1ubuntu0.20.04.1 amd64 [installed]