解决ROS1中使用sudo apt update 因为ROS密钥失效不能更新的问题

出现的问题如上:

解决方法,参考Bilibili机器人工匠阿杰,使用以下命令:

1.先安装来获取签名文件的工具curl :sudo apt install curl

2.执行如下指令添加新的密钥:

curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -

3.如果执行curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add - 后终端产生如下错误

4.为解决找不到有效的OpenPGP数据问题,再执行以下两条指令:

wget https://download.docker.com/linux/ubuntu/gpg

sudo apt-key add gpg
5.执行完步骤4之后,正常效果如下

6.再次执行安装密钥和更细命令

curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -

sudo apt update

显示效果如下即为成功

最后再次感谢杰哥和博客的大佬们的分享.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值