乌班图在安装docker及ros时无法安装及pubickey报错的问题

您所在的位置:网站首页 乌班图操作系统命令 乌班图在安装docker及ros时无法安装及pubickey报错的问题

乌班图在安装docker及ros时无法安装及pubickey报错的问题

#乌班图在安装docker及ros时无法安装及pubickey报错的问题| 来源: 网络整理| 查看: 265

在乌班图中安装docker和ros已有一键安装脚本(来源:https://fishros.com)

sudo wget http://fishros.com/install -O fishros && . fishros

但是在安装中会出错:

如“检测证书发生错误”W: GPG error: http://archive.ubuntu.com trusty-updates Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40**********5B5

可以通过以下方法解决:

一.安装curl

众所周知,你要是没有URL协议,你想下载安装是不可能的

sudo snap install curl 二.关闭乌班图对公钥的验证 !!!请注意此方法会降低系统安全性请谨慎使用

替代方法可以搜索如何添加公钥

编辑 apt 配置文件 /etc/apt/apt.conf.d/99verify: sudo nano /etc/apt/apt.conf.d/99verify 2.在文件中添加以下内容: Acquire::AllowInsecureRepositories "true"; Acquire::AllowDowngradeToInsecureRepositories "true"; APT::Get::AllowUnauthenticated "true"; 三.再次使用一键安装脚本 sudo wget http://fishros.com/install -O fishros && . fishros

一键安装脚本详见:https://www.bilibili.com/video/BV1hY411N7HF/



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3