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

在乌班图中安装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

二.关闭乌班图对公钥的验证

!!!请注意此方法会降低系统安全性请谨慎使用

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

  1. 编辑 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/

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值