当前位置: 首页 > news >正文

基于Ubuntu的Linux系统安装jsoncpp开发包过程

执行以下命令:

sudo apt update
sudo apt install libjsoncpp-dev

有可能出现的问题:

1.如果在执行sudo apt update时出现以下信息

Hit:1 http://mirrors.aliyun.com/ubuntu bionic InRelease
Hit:2 http://mirrors.aliyun.com/ubuntu bionic-security InRelease                                                                              
Hit:3 http://mirrors.aliyun.com/ubuntu bionic-updates InRelease                                                                               
Hit:4 http://mirrors.aliyun.com/ubuntu bionic-proposed InRelease                           
Hit:5 http://mirrors.aliyun.com/ubuntu bionic-backports InRelease                          
Get:6 https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu1804/x86_64  InRelease [1581 B]
Err:6 https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu1804/x86_64  InReleaseThe following signatures couldn't be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC
Ign:7 https://developer.download.nvidia.cn/compute/machine-learning/repos/ubuntu1804/x86_64  InRelease
Hit:8 https://developer.download.nvidia.cn/compute/machine-learning/repos/ubuntu1804/x86_64  Release
Reading package lists... Done
W: GPG error: https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu1804/x86_64  InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC
E: The repository 'https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

这是一个 GPG 错误,意味着你的系统无法验证 NVIDIA CUDA 软件仓库的签名,可能是因为缺少公钥。可以尝试使用以下步骤解决该问题:
首先获取公钥
可以在 NVIDIA 的官方网站上找到 CUDA 软件仓库的下载链接。以下是 NVIDIA Developer 网站上 Ubuntu 18.04 的 CUDA 软件仓库的下载链接示例:

https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/
在浏览器中打开此链接,并浏览其中的内容,找到 .pub 文件的下载链接。一旦找到 .pub 文件的下载链接,您可以将其复制并用作 apt-key adv --fetch-keys 命令的参数。
通常情况下,.pub 文件包含的是 GPG 公钥。在这种情况下,可以选择任何一个 .pub 文件来获取公钥。
通过以下命令来导入任何一个 .pub 文件中包含的公钥:

sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub

之后再执行该命令即可

sudo apt update

然后进行安装jsoncpp

sudo apt install libjsoncpp-dev

之后就可以执行查看

ls /usr/include/jsoncpp/
http://www.lryc.cn/news/327389.html

相关文章:

  • 葵花卫星影像应用场景及数据获取
  • Jenkins升级中的小问题
  • Apache Hive的基本使用语法(二)
  • 基于单片机16位智能抢答器设计
  • idea默认代码生成脚本修改
  • StarRocks实战——多点大数据数仓构建
  • jmeter总结之:Regular Expression Extractor元件
  • 快速上手Spring Cloud 七:事件驱动架构与Spring Cloud
  • leetcode 1997.访问完所有房间的第一天
  • 【InternLM 实战营第二期笔记】书生·浦语大模型全链路开源体系及InternLM2技术报告笔记
  • Netty对Channel事件的处理以及空轮询Bug的解决
  • 【PostgreSQL】- 1.1 在 Debian 12 上安装 PostgreSQL 15
  • 第4章.精通标准提示,引领ChatGPT精准输出
  • HTTP状态 405 - 方法不允许
  • 题目 2898: 二维数组回形遍历
  • Git命令上传本地项目至github
  • 机器学习之决策树现成的模型使用
  • 【python分析实战】成本:揭示电商平台月度开支与成本结构占比 - 过于详细 【收藏】
  • 新网站收录时间是多久,新建网站多久被百度收录
  • 通过Caliper进行压力测试程序,且汇总压力测试问题解决
  • LabVIEW比例流量阀自动测试系统
  • 安卓U3D逆向从Assembly-CSharp到il2cpp
  • 计算机网络——30SDN控制平面
  • Obsidian插件-高亮块(Admonition)
  • jHipster 之 webflux-前端用EventSource处理sse变成了批量处理而非实时处理
  • 原型链-(前端面试 2024 版)
  • 网络套接字补充——UDP网络编程
  • 自动化测试 —— Pytest fixture及conftest详解
  • Scala第十四章节(隐式转换、隐式参数以及获取列表元素平均值的案例)
  • VsCode的json文件不允许注释的解决办法