Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/wwwroot/phxin.top/usr/themes/Joe/public/config.php on line 19

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/wwwroot/phxin.top/usr/themes/Joe/public/config.php on line 20

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/wwwroot/phxin.top/usr/themes/Joe/public/config.php on line 21

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/wwwroot/phxin.top/usr/themes/Joe/public/config.php on line 22

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/wwwroot/phxin.top/usr/themes/Joe/public/config.php on line 23
ubuntu18.04 ROS安装(无代理) - Hello World

ubuntu18.04 ROS安装(无代理)

清歌
2022-10-20 / 0 评论 / 0 阅读 / 正在检测是否收录...

错误提示

ERROR: cannot download default sources list from:
https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/sources.list.d/20-default.list
Website may be down.

原因

境外资源被屏蔽

解决思路

查询错误提示中域名的IP地址,然后修改 /etc/hosts 文件,添加域名与IP映射实现

实现

1.访问域名查询网址:https://site.ip138.com/
2.查询域名ip,搜索框中输入: raw.githubusercontent.com,自由复制一个查询到的IP
3.修改 /etc/hosts 文件,命令
sudo gedit /etc/hosts

添加内容:151.101.76.133 raw.githubusercontent.com (查询到的ip与域名),保存并退出。

4.重新执行rosdep初始化与更新命令,如果rosdep update 抛出异常,基本都是网络原因导致的(建议使用手机热点),多尝试几次即可。
0

评论 (0)

取消