鱼香ROS社区
    • 版块
    • 最新
    • 未解决
    • 已解决
    • 群组
    • 注册
    • 登录
    紧急通知:禁止一切关于政治&VPN翻墙等话题,发现相关帖子会立马删除封号
    提问前必看的发帖注意事项: 社区问答规则(小鱼个人)更新 | 高质量帖子发布指南

    使用一键安装过程中遇到程序崩溃

    已定时 已固定 已锁定 已移动
    一键安装
    一键安装程序崩溃 rosdep一键安装
    1
    1
    307
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • 2
      2727919036
      最后由 编辑

      报错信息:

      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'
      
      Run CMD Task:[dpkg --print-architecture]
      
      [/][0.00s] amd64
      [-][0.00s] CMD Result:success                                                                                                                                                                                  
      
      Run 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’
      [-][0.05s] CMD Result:success                                                                                                                                                                                  
      
      Run 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’
      [-][0.04s] CMD Result:success                                                                                                                                                                                  
      
      Run 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’
      [-][0.05s] CMD Result:success                                                                                                                                                                                  
      
      Run CMD Task:[wget https://fishros.org.cn/forum/topic/1733 -O /tmp/t1733 -q  --timeout 10 && rm -rf /tmp/t1733]
      
      [-][0.50s] CMD Result:success                                                                                                                                                                                  
      
      已为您切换语言至当前所在国家语言:zh_CN
      基础检查通过...
      ===============================================================================
      ======欢迎使用一键安装工具,人生苦短,三省吾身,省时省力省心!=======
      ======一键安装已开源,请放心使用:https://github.com/fishros/install =======
      ===============================================================================
          
      
                              .-~~~~~~~~~-._       _.-~~~~~~~~~-.
                          __.'              ~.   .~              `.__
                      .'//     开卷有益        \./     书山有路     \ `.
                      .'// 可以多看看小鱼的文章  | 关注B站鱼香ROS机器人 \ `.
                  .'// .-~~~~~~~~~~~~~~-._     |     _,-~~~~~~~~~~~. \`.
                  .'//.-"                 `-.  |  .-'                 "-.\`.
              .'//______.============-..   \ | /   ..-============.______\`.
              .'______________________________\|/______________________________`
              ----------------------------------------------------------------------
      RUN Choose Task:[请输入括号内的数字]
      ---众多工具,等君来用---
      ROS相关:
        [1]:一键安装(推荐):ROS(支持ROS/ROS2,树莓派Jetson)
        [3]:一键安装:rosdep(小鱼的rosdepc,又快又好用)
        [4]:一键配置:ROS环境(快速更新ROS环境设置,自动生成环境选择)
        [9]:一键安装:Cartographer(18 20测试通过,16未测. updateTime 20240125)
        [11]:一键安装:ROS Docker版(支持所有版本ROS/ROS2)
        [16]:一键安装:系统自带ROS (!!警告!!仅供特殊情况下使用)
      常用软件:
        [2]:一键安装:github桌面版(小鱼常用的github客户端)
        [6]:一键安装:NodeJS环境
        [7]:一键安装:VsCode开发工具
        [8]:一键安装:Docker
        [10]:一键安装:微信(可以在Linux上使用的微信)
        [12]:一键安装:PlateformIO MicroROS开发环境(支持Fishbot)
        [15]:一键安装:QQ for Linux
      配置工具:
        [5]:一键配置:系统源(更换系统源,支持全版本Ubuntu系统)
        [13]:一键配置:python国内源
        [17]:一键配置: Docker代理(支持VPN+代理服务两种模式)
      [0]:quit
      
      Run 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’
      [-][0.05s] CMD Result:success                                                                                                                                                                                  
      
      欢迎使用模板工程,本工具由作者小鱼提供
      Run 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 个软件包未被升级。
      [-][0.60s] CMD Result:success                                                                                                                                                                                  
      
      请选择要使用的pip源:
      RUN Choose Task:[请输入括号内的数字]
      请选择pip源:
      [1]:清华源 - https://pypi.tuna.tsinghua.edu.cn/simple
      [2]:阿里云 - https://mirrors.aliyun.com/pypi/simple
      [3]:中国科技大学 - https://pypi.mirrors.ustc.edu.cn/simple
      [4]:华为云 - https://repo.huaweicloud.com/repository/pypi/simple
      [0]:quit
      您选择了: https://pypi.mirrors.ustc.edu.cn/simple
      正在使用 https://pypi.mirrors.ustc.edu.cn/simple 安装 rosdepc...
      Run CMD Task:[sudo pip3 install -i https://pypi.mirrors.ustc.edu.cn/simple rosdepc --break-system-packages]
      
      [-][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====================
      
      1 条回复 最后回复 回复 引用 0
      • 第一个帖子
        最后一个帖子
      皖ICP备16016415号-7
      Powered by NodeBB | 鱼香ROS