当前位置:   article > 正文

Ubuntu20.04安装ros noetic错误解决_sudo apt-get install ros-noetic-object-recognition

sudo apt-get install ros-noetic-object-recognition-kitchen-*

1、“curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -” 报错:gpg: no valid OpenPGP data found

解决方法:

使用git镜像站的源地址https://raw.fastgit.org/ros/rosdistro/master/ros.asc替换https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc

2、sudo rosdep init 报错

报错内容:

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.

解决方法:

手动建立rosdep源的文件夹,等价于手动完成sudo rosdep init

sudo mkdir -p /etc/ros/rosdep/sources.list.d
cd /etc/ros/rosdep/sources.list.d
  • 1
  • 2

3、rosdep update 报错

解决方法:
  1. 手动下载rosdistro.git,解压到home目录:

git clone https://hub.fastgit.org/ros/rosdistro.git

  1. 修改如下目录的四个文件内变量记录的文件地址,由网络地址https://raw.githubusercontent.com/ros/rosdistro/master/改为指向本地rosdistro的目录file:///home/xxx/rosdistro/
1、/home/xxx/rosdistro/rosdep/sources.list.d/20-default.list: 所有的‘https://raw.githubusercontent.com/ros/rosdistro/master/’
2、/usr/lib/python3/dist-packages/rosdep2/gbpdistro_support.py: FUERTE_GBPDISTRO_URL
3、/usr/lib/python3/dist-packages/rosdep2/rep3.py: REP3_TARGETS_URL 
4、/usr/lib/python3/dist-packages/rosdistro/_ _ init _ _.py: DEFAULT_INDEX_URL 
  • 1
  • 2
  • 3
  • 4
  1. 将/etc/ros/rosdep/sources.list.d/20-default.list里面的https://raw.githubusercontent.com/ros/rosdistro/master改为file:///home/xxx/rosdistro/

附:ros官方参考网站:

ros安装方法:http://wiki.ros.org/noetic/Installation/Ubuntu
ros源:http://wiki.ros.org/ROS/Installation/UbuntuMirrors#USTC

本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号