报错信息:
Traceback (most recent call last): File "/tmp/fishinstall/install.py", line 134, in <module> main() File "/tmp/fishinstall/install.py", line 123, in main run_tool_file(tools[code]['tool'].replace("/",".")) File "/tmp/fishinstall/tools/base.py", line 1478, in run_tool_file if tool.run()==False: return False File "/tmp/fishinstall/tools/tool_config_rosdep.py", line 94, in run self.install_rosdepc() File "/tmp/fishinstall/tools/tool_config_rosdep.py", line 85, in install_rosdepc PrintUtils.print_warning("安装失败,尝试使用其他方式安装...") AttributeError: type object 'PrintUtils' has no attribute 'print_warning'日志文件(/tmp/fishros_install.log)内容:
Traceback (most recent call last): File "/tmp/fishinstall/install.py", line 134, in <module> main() File "/tmp/fishinstall/install.py", line 123, in main run_tool_file(tools[code]['tool'].replace("/",".")) File "/tmp/fishinstall/tools/base.py", line 1478, in run_tool_file if tool.run()==False: return False File "/tmp/fishinstall/tools/tool_config_rosdep.py", line 94, in run self.install_rosdepc() File "/tmp/fishinstall/tools/tool_config_rosdep.py", line 85, in install_rosdepc PrintUtils.print_warning("安装失败,尝试使用其他方式安装...") AttributeError: type object 'PrintUtils' has no attribute 'print_warning' [37m[32mRun CMD Task:[dpkg --print-architecture] [/][0.00s] amd64 [37m[-][0.00s] CMD Result:success [37m[32mRun CMD Task:[wget http://mirror.fishros.com/install/tools/translation/translator.py -O /tmp/fishinstall//tools/translation/translator.py --no-check-certificate] [/][0.00s] --2025-09-06 09:05:13-- http://mirror.fishros.com/install/tools/translation/translator.py [\][0.05s] 正在解析主机 mirror.fishros.com (mirror.fishros.com)... 47.119.165.169 [|][0.05s] 正在连接 mirror.fishros.com (mirror.fishros.com)|47.119.165.169|:80... 已连接。 [-][0.05s] 已发出 HTTP 请求,正在等待回应... 200 OK [/][0.05s] 长度: 2957 (2.9K) [application/octet-stream] [\][0.05s] 正在保存至: ‘/tmp/fishinstall//tools/translation/translator.py’ [37m[-][0.05s] CMD Result:success [37m[32mRun CMD Task:[wget http://mirror.fishros.com/install/tools/translation/assets/zh_CN.py -O /tmp/fishinstall//tools/translation/assets/zh_CN.py --no-check-certificate] [/][0.00s] --2025-09-06 09:05:17-- http://mirror.fishros.com/install/tools/translation/assets/zh_CN.py [\][0.04s] 正在解析主机 mirror.fishros.com (mirror.fishros.com)... 47.119.165.169 [|][0.04s] 正在连接 mirror.fishros.com (mirror.fishros.com)|47.119.165.169|:80... 已连接。 [-][0.04s] 已发出 HTTP 请求,正在等待回应... 200 OK [/][0.04s] 长度: 23 [application/octet-stream] [\][0.04s] 正在保存至: ‘/tmp/fishinstall//tools/translation/assets/zh_CN.py’ [37m[-][0.04s] CMD Result:success [37m[32mRun CMD Task:[wget http://mirror.fishros.com/install/tools/translation/assets/en_US.py -O /tmp/fishinstall//tools/translation/assets/en_US.py --no-check-certificate] [/][0.00s] --2025-09-06 09:05:17-- http://mirror.fishros.com/install/tools/translation/assets/en_US.py [\][0.05s] 正在解析主机 mirror.fishros.com (mirror.fishros.com)... 47.119.165.169 [|][0.05s] 正在连接 mirror.fishros.com (mirror.fishros.com)|47.119.165.169|:80... 已连接。 [-][0.05s] 已发出 HTTP 请求,正在等待回应... 200 OK [/][0.05s] 长度: 5808 (5.7K) [application/octet-stream] [\][0.05s] 正在保存至: ‘/tmp/fishinstall//tools/translation/assets/en_US.py’ [37m[-][0.05s] CMD Result:success [37m[32mRun CMD Task:[wget https://fishros.org.cn/forum/topic/1733 -O /tmp/t1733 -q --timeout 10 && rm -rf /tmp/t1733] [37m[-][0.50s] CMD Result:success [32m已为您切换语言至当前所在国家语言:zh_CN[37m [32m基础检查通过...[37m [37m=============================================================================== ======欢迎使用一键安装工具,人生苦短,三省吾身,省时省力省心!======= ======一键安装已开源,请放心使用:https://github.com/fishros/install ======= =============================================================================== [37m .-~~~~~~~~~-._ _.-~~~~~~~~~-. __.' ~. .~ `.__ .'// 开卷有益 \./ 书山有路 \ `. .'// 可以多看看小鱼的文章 | 关注B站鱼香ROS机器人 \ `. .'// .-~~~~~~~~~~~~~~-._ | _,-~~~~~~~~~~~. \`. .'//.-" `-. | .-' "-.\`. .'//______.============-.. \ | / ..-============.______\`. .'______________________________\|/______________________________` ---------------------------------------------------------------------- [37mRUN Choose Task:[请输入括号内的数字] [37m---众多工具,等君来用--- [37mROS相关: [37m [1]:一键安装(推荐):ROS(支持ROS/ROS2,树莓派Jetson) [37m [3]:一键安装:rosdep(小鱼的rosdepc,又快又好用) [37m [4]:一键配置:ROS环境(快速更新ROS环境设置,自动生成环境选择) [37m [9]:一键安装:Cartographer(18 20测试通过,16未测. updateTime 20240125) [37m [11]:一键安装:ROS Docker版(支持所有版本ROS/ROS2) [37m [16]:一键安装:系统自带ROS (!!警告!!仅供特殊情况下使用) [37m常用软件: [37m [2]:一键安装:github桌面版(小鱼常用的github客户端) [37m [6]:一键安装:NodeJS环境 [37m [7]:一键安装:VsCode开发工具 [37m [8]:一键安装:Docker [37m [10]:一键安装:微信(可以在Linux上使用的微信) [37m [12]:一键安装:PlateformIO MicroROS开发环境(支持Fishbot) [37m [15]:一键安装:QQ for Linux [37m配置工具: [37m [5]:一键配置:系统源(更换系统源,支持全版本Ubuntu系统) [37m [13]:一键配置:python国内源 [37m [17]:一键配置: Docker代理(支持VPN+代理服务两种模式) [37m[0]:quit [37m[32mRun CMD Task:[wget http://mirror.fishros.com/install/tools/tool_config_rosdep.py -O /tmp/fishinstall/tools/tool_config_rosdep.py --no-check-certificate] [/][0.00s] --2025-09-06 09:05:29-- http://mirror.fishros.com/install/tools/tool_config_rosdep.py [\][0.05s] 正在解析主机 mirror.fishros.com (mirror.fishros.com)... 47.119.165.169 [|][0.05s] 正在连接 mirror.fishros.com (mirror.fishros.com)|47.119.165.169|:80... 已连接。 [-][0.05s] 已发出 HTTP 请求,正在等待回应... 200 OK [/][0.05s] 长度: 3609 (3.5K) [application/octet-stream] [\][0.05s] 正在保存至: ‘/tmp/fishinstall/tools/tool_config_rosdep.py’ [37m[-][0.05s] CMD Result:success [37m欢迎使用模板工程,本工具由作者小鱼提供 [37m[32mRun CMD Task:[sudo apt install python3-pip -y] [/][0.00s] 正在读取软件包列表... [\][0.06s] 正在分析软件包的依赖关系树... [|][0.24s] 正在读取状态信息... [-][0.24s] python3-pip 已经是最新版 (22.0.2+dfsg-1ubuntu0.6)。 [/][0.50s] 升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。 [37m[-][0.60s] CMD Result:success [37m请选择要使用的pip源: [37mRUN Choose Task:[请输入括号内的数字] [37m请选择pip源: [37m[1]:清华源 - https://pypi.tuna.tsinghua.edu.cn/simple [37m[2]:阿里云 - https://mirrors.aliyun.com/pypi/simple [37m[3]:中国科技大学 - https://pypi.mirrors.ustc.edu.cn/simple [37m[4]:华为云 - https://repo.huaweicloud.com/repository/pypi/simple [37m[0]:quit [32m您选择了: https://pypi.mirrors.ustc.edu.cn/simple[37m [37m正在使用 https://pypi.mirrors.ustc.edu.cn/simple 安装 rosdepc... [37m[32mRun CMD Task:[sudo pip3 install -i https://pypi.mirrors.ustc.edu.cn/simple rosdepc --break-system-packages] [31m[-][0.00s] CMD Result:code:2 Execute Command: sudo pip3 install -i https://pypi.mirrors.ustc.edu.cn/simple rosdepc --break-system-packages Error Code2 ====================OUT==================== ====================ERR====================