sudo rosdep init失败求解疑
-
sudo rosdep init
/usr/bin/rosdep:6: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
from pkg_resources import load_entry_point
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.
<urlopen error <urlopen error [Errno 111] Connection refused> (https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/sources.list.d/20-default.list)>
配置ros源时:小鱼:检测当前系统ubuntu22.04:jammy 支持一键安装ROS
============正在添加ROS源密钥=================
Run CMD Task:[sudo apt update]
[-][11.15s] CMD Result:successRun CMD Task:[sudo apt search curl ]
[-][0.45s] CMD Result:successRun CMD Task:[sudo apt install curl -y]
[-][0.33s] CMD Result:successRun CMD Task:[sudo apt search gnupg2 ]
[-][0.43s] CMD Result:successRun CMD Task:[sudo apt install gnupg2 -y]
[-][0.31s] CMD Result:success正在挑选最快的密钥服务:['https://gitee.com/ohhuo/rosdistro/raw/master/ros.asc', 'https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc']
- https://gitee.com/ohhuo/rosdistro/raw/master/ros.asc 延时:0.33s
- https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc 超时
已自动选择最快密钥服务:https://gitee.com/ohhuo/rosdistro/raw/master/ros.asc
Run CMD Task:[curl -s https://gitee.com/ohhuo/rosdistro/raw/master/ros.asc | sudo apt-key add -]
[-][0.38s] CMD Result:success
Run CMD Task:[sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F42ED6FBAB17C654]
[-][10.07s] CMD Result:code:2Run CMD Task:[curl -s https://gitee.com/ohhuo/rosdistro/raw/master/ros.asc | sudo gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/ros.gpg --import]
[-][0.36s] CMD Result:successRun CMD Task:[sudo chmod 644 /etc/apt/trusted.gpg.d/ros.gpg]
[-][0.00s] CMD Result:successRun CMD Task:[dpkg --print-architecture]
[-][0.00s] CMD Result:success根据您的系统,为您推荐安装源为['http://mirrors.tuna.tsinghua.edu.cn/ros2/ubuntu/']
创建文件:/etc/apt/sources.list.d/ros-fish.list
Run CMD Task:[sudo apt update]
[-][11.62s] CMD Result:successRun CMD Task:[sudo apt search ros-base ]
[-][0.50s] CMD Result:success恭喜,成功添加ROS源,接下来可以使用apt安装ROS或者使用[1]一键安装ROS安装!
欢迎加入机器人学习交流QQ群:438144612(入群口令:一键安装)
鱼香小铺正式开业,最低499可入手一台能建图会导航的移动机器人,淘宝搜店:鱼香ROS 或打开链接查看:https://item.taobao.com/item.htm?id=696573635888
如在使用过程中遇到问题,请打开:https://fishros.org.cn/forum 进行反馈检测到本次运行出现失败命令,直接退出按Ctrl+C,按任意键上传日志并退出