Install Jq Json Processor on Ubuntu 10.04
Is There a Way to Install Jq Json Processor on Ubuntu 10.04? I Tried the Usual Sudo Apt-Get Install Jq but Got the Error E: Couldn't Find Package Jq 4 Answers...
Is there a way to install jq JSON processor on Ubuntu 10.04?
I Tried the usual sudo apt-get install jq but got the error E: Couldn't find package jq
4 Answers
It is possible to perform sudo apt-get install jq however you need to inform the system where to find jq.
ℹ️ Note: Ubuntu 14+ users can skip to step 3! 🎉
Install
Open your sources file in a text editor:
sudo vim /etc/apt/sources.listAdd the following line to the end of that file (note
debis not a command, more info):deb vivid main universe
Then re-index apt-get so that it can find
jq:sudo apt-get updateThen do the normal install and you should be the proud new user of
jq!sudo apt-get install jq
Test
Test it works! Try this to see it pretty print some example json
echo '{ "name":"John", "age":31, "city":"New York" }' | jq .
The result should appear like so in your terminal:
{
"name": "John",
"age": 31,
"city": "New York"
}
I think you're missing the repo:
Download & build from source as described in , last section called "From source on Linux, OS X, Cygwin, and other POSIX-like operating systems".