json - 在 Ubuntu 上将 jq 升级到 1.5

标签 json ubuntu upgrade jq

所以它显示为 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/

相关文章:

git - 使用 Git 升级 Magento

ruby-on-rails - 为什么 Rails to_json 给出的结果与 Ruby to_json 不同?

c# - 只执行程序的一部分

php5-imagick "no decode delegate"错误

apache2 未使用 site-available/joomla.conf 中指定的目录

hadoop - Hadoop 2.2的事件节点和事件节点列表中的相同节点

json - 快速查看 JSONEncode() 输出的优雅方式

javascript - 使用一个 php 函数返回多个 json 对象

json - 使用 Play 2.3 和 Scala 2.11.1 将具有枚举属性的类转换为 Json 时出错

flutter 升级导致未为类 'fullObstruction' 定义 setter/getter 'ObstructingPreferredSizeWidget' 。错误