所以它显示为 here :
jq 1.5 位于官方 Debian 和 Ubuntu 存储库中。使用 sudo apt-get install jq 安装。
还是:
$ sudo apt-get install jq
Reading package lists... Done
Building dependency tree
Reading state information... Done
jq is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
与:
$ jq --version
jq version 1.3
Description: Ubuntu 14.04 LTS
Release: 14.04
Codename: trusty
我错过了什么?
谢谢
最佳答案
当我在谷歌上搜索为什么我的 Debian 8 实例没有将 jq
1.4 升级到 1.5 时,我最终来到了这里。
这是我为任何使用 Debian 8 jq 苦苦挣扎的人提供的解决方案:从 https://github.com/stedolan/jq/releases 下载 jq
并将其手动复制到当前安装的 jq 上。就我而言:
wget https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64
chmod +x jq-linux64
sudo mv jq-linux64 $(which jq)
关于json - 在 Ubuntu 上将 jq 升级到 1.5,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36462955/