• 1. 错误状态
  • 2. 解决办法

1. 错误状态

在添加ROS 2 apt存储库时老是失败

sudo apt update && sudo apt install curl gnupg2 lsb-release
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -

出现

gpg: no valid OpenPGP data found

 


2. 解决办法

进入 IPAddress.com
输入 raw.githubusercontent.com 查询真实的IP地址
现在查到的是 199.232.68.133

raw.githubusercontent.com无法连接

 

 


然后编辑修改 hosts 就行

sudo nano /etc/hosts

添加以下内容,保存完事

199.232.68.133 raw.githubusercontent.com
raw.githubusercontent.com无法连接

 

 



raw.githubusercontent.com无法连接

 

 

 

 

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-14
  • 2021-06-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-03
  • 2021-09-29
  • 2021-06-14
  • 2022-02-09
相关资源
相似解决方案