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

    arm下一键安装ros出现问题了

    已定时 已固定 已锁定 已移动
    一键安装
    ros一键安装 arm
    3
    4
    492
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • Z
      zyd18342842908
      最后由 编辑

      wget http://fishros.com/install -O fishros && . fishros
      --2023-03-09 17:44:01-- http://fishros.com/install
      Resolving fishros.com (fishros.com)... 139.9.131.171
      Connecting to fishros.com (fishros.com)|139.9.131.171|:80... connected.
      HTTP request sent, awaiting response... 301 Moved Permanently
      Location: http://fishros.com/install/ [following]
      --2023-03-09 17:44:01-- http://fishros.com/install/
      Reusing existing connection to fishros.com:80.
      HTTP request sent, awaiting response... 200 OK
      Length: 582 [application/octet-stream]
      Saving to: ‘fishros’

      fishros 100%[============================================>] 582 --.-KB/s in 0s

      2023-03-09 17:44:01 (47.6 MB/s) - ‘fishros’ saved [582/582]

      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      Package python3-distro is not available, but is referred to by another package.
      This may mean that the package is missing, has been obsoleted, or
      is only available from another source

      E: Package 'python3-distro' has no installation candidate
      --2023-03-09 17:44:02-- http://fishros.com/install/install1s/tools/base.py
      Resolving fishros.com (fishros.com)... 139.9.131.171
      Connecting to fishros.com (fishros.com)|139.9.131.171|:80... connected.
      HTTP request sent, awaiting response... 200 OK
      Length: 42195 (41K) [application/octet-stream]
      Saving to: ‘/tmp/fishinstall/tools/base.py’

      /tmp/fishinstall/tools/base. 100%[============================================>] 41.21K --.-KB/s in 0.1s

      2023-03-09 17:44:02 (335 KB/s) - ‘/tmp/fishinstall/tools/base.py’ saved [42195/42195]

      Run CMD Task:[dpkg --print-architecture]
      [-]Result:success

      基础检查通过...

      ======欢迎使用一键安装工具,人生苦短,三省吾身,省时省力省心!=======
      ======一键安装已开源,请放心使用:https://github.com/fishros/install=======

                          .-~~~~~~~~~-._       _.-~~~~~~~~~-.
                      __.'              ~.   .~              `.__
                  .'//     开卷有益        \./     书山有路     \ `.
                  .'// 可以多看看小鱼的文章   |    关注公众号鱼香ROS  \ `.
              .'// .-~"~~~~-._     |     _,-~~~~"~-. \`.
              .'//.-"                 `-.  |  .-'                 "-.\`.
          .'//______.============-..   \ | /   ..-============.______\`.
          .'______________________________\|/______________________________`
          ----------------------------------------------------------------------
      

      RUN Choose Task:[请输入括号内的数字]
      ---众多工具,等君来用---
      [1]:一键安装:ROS(支持ROS和ROS2,树莓派Jetson)
      [11]:一键安装:ROS+Docker(支持所有版本ROS/ROS2)
      [2]:一键安装:github桌面版(小鱼常用的github客户端)
      [3]:一键配置:rosdep(小鱼的rosdepc,又快又好用)
      [4]:一键配置:ROS环境(快速更新ROS环境设置,自动生成环境选择)
      [5]:一键配置:系统源(更换系统源,支持全版本Ubuntu系统)
      [6]:一键安装:nodejs
      [7]:一键安装:VsCode开发工具
      [8]:一键安装:Docker
      [9]:一键安装:Cartographer(内测版v0.1)
      [10]:一键安装:微信(可以在Linux上使用的微信)
      [12]:一键安装:PlateformIO MicroROS开发环境(支持Fishbot)
      [77]:测试模式:运行自定义工具测试
      [0]:quit
      请输入[]内的数字以选择:1
      --2023-03-09 17:44:08-- http://fishros.com/install/install1s/tools/tool_install_ros.py
      Resolving fishros.com (fishros.com)... 139.9.131.171
      Connecting to fishros.com (fishros.com)|139.9.131.171|:80... connected.
      HTTP request sent, awaiting response... 200 OK
      Length: 19050 (19K) [application/octet-stream]
      Saving to: ‘/tmp/fishinstall/tools/tool_install_ros.py’

      /tmp/fishinstall/tools/tool_ 100%[============================================>] 18.60K --.-KB/s in 0.07s

      2023-03-09 17:44:08 (279 KB/s) - ‘/tmp/fishinstall/tools/tool_install_ros.py’ saved [19050/19050]

      --2023-03-09 17:44:08-- http://fishros.com/install/install1s/tools/tool_config_rosenv.py
      Resolving fishros.com (fishros.com)... 139.9.131.171
      Connecting to fishros.com (fishros.com)|139.9.131.171|:80... connected.
      HTTP request sent, awaiting response... 200 OK
      Length: 2457 (2.4K) [application/octet-stream]
      Saving to: ‘/tmp/fishinstall/tools/tool_config_rosenv.py’

      /tmp/fishinstall/tools/tool_ 100%[============================================>] 2.40K --.-KB/s in 0s

      2023-03-09 17:44:08 (55.8 MB/s) - ‘/tmp/fishinstall/tools/tool_config_rosenv.py’ saved [2457/2457]

      --2023-03-09 17:44:08-- http://fishros.com/install/install1s/tools/tool_config_system_source.py
      Resolving fishros.com (fishros.com)... 139.9.131.171
      Connecting to fishros.com (fishros.com)|139.9.131.171|:80... connected.
      HTTP request sent, awaiting response... 200 OK
      Length: 7511 (7.3K) [application/octet-stream]
      Saving to: ‘/tmp/fishinstall/tools/tool_config_system_source.py’

      /tmp/fishinstall/tools/tool_ 100%[============================================>] 7.33K --.-KB/s in 0.03s

      2023-03-09 17:44:08 (282 KB/s) - ‘/tmp/fishinstall/tools/tool_config_system_source.py’ saved [7511/7511]

      欢迎使用一键安装ROS和ROS2,支持树莓派Jetson,本工具由作者小鱼提供
      欢迎使用ROS开箱子工具,本工具由[鱼香ROS]小鱼贡献..
      小鱼:检测当前系统ubuntu18.04:bionic 支持一键安装ROS
      =========接下来这一步很重要,如果不知道怎么选请选择1========
      RUN Choose Task:[请输入括号内的数字]
      首次安装一定要换源并清理三方源,换源!!!系统默认国外源容易失败!!
      [1]:更换系统源再继续安装
      [2]:不更换继续安装
      [0]:quit
      请输入[]内的数字以选择:1
      欢迎使用一键换源工具,本工具由[鱼香ROS]小鱼贡献..
      RUN Choose Task:[请输入括号内的数字]
      请选择换源方式,如果不知道选什么请选2
      [1]:仅更换系统源
      [2]:更换系统源并清理第三方源
      [0]:quit
      请输入[]内的数字以选择:2
      Run CMD Task:[sudo rm -rf /etc/apt/sources.list]
      [-]Result:success

      删除一个资源文件
      Run CMD Task:[sudo rm -rf /etc/apt/sources.list.d]
      [-]Result:success

      Run CMD Task:[sudo mkdir -p /etc/apt/sources.list.d]
      [-]Result:success

      Run CMD Task:[dpkg --print-architecture]
      [-]Result:success

      检测到当前系统架构为[arm64:bionic],正在为你更换对应源..
      替换完成,尝试第一次更新....
      Run CMD Task:[sudo apt update]
      [-]Result:code:100 ports bionic-security/multiverse amd64 Packages,886 kB]B]

      更新失败,开始更换导入方式并三次尝试...
      Run CMD Task:[sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0E98404D386FA1D9]
      []Executing: /tmp/apt-key-gpghome.AXcRKn6N1o/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 0E98404D386FA1[-]Result:success

      Run CMD Task:[sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys DCC9EFBF77E11517]
      []Executing: /tmp/apt-key-gpghome.VuEeXe7ujU/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys DCC9EFBF77E115[-]Result:success

      Run CMD Task:[sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 54404762BBB6E853]
      []Executing: /tmp/apt-key-gpghome.xjXKKE2LlR/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 54404762BBB6E8[-]Result:success

      Run CMD Task:[apt-get install debian-keyring debian-archive-keyring]
      [-]Result:code:100 has been obsoleted, orother package.

      Run CMD Task:[apt-key update]
      [-]Result:success e Automatic Signing Key (2018) ftpmaster@ubuntu.com" not changed

      Run CMD Task:[sudo apt update]
      [-]Result:code:100 ports bionic-security/multiverse amd64 Packages[1,172 kB]

      如果出现问题NO_PUBKEY XXXXXXXX,请手动运行添加指令:apt-key adv --keyserver keyserver.ubuntu.com --recv-keys XXXXXXXX
      如:error: NO_PUBKEY 0E98404D386FA1D9
      运行指令:sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0E98404D386FA1D9

      镜像修复完成.....
      Run CMD Task:[sudo apt update]
      [-]Result:code:100 ports bionic-security/multiverse amd64 Packages3 kB] kB]

      apt更新失败,后续程序可能会继续尝试...,['\n', 'WARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n', '\n', 'E: Failed to fetch https://mirrors.ustc.edu.cn/ubuntu-ports/dists/bionic/main/binary-amd64/Packages 404 Not Found [IP: 202.141.160.110 443]\n', 'E: Failed to fetch https://mirrors.ustc.edu.cn/ubuntu-ports/dists/bionic-updates/main/binary-amd64/Packages 404 Not Found [IP: 202.141.160.110 443]\n', 'E: Failed to fetch https://mirrors.ustc.edu.cn/ubuntu-ports/dists/bionic-backports/main/binary-amd64/Packages 404 Not Found [IP: 202.141.160.110 443]\n', 'E: Failed to fetch https://mirrors.ustc.edu.cn/ubuntu-ports/dists/bionic-security/main/binary-amd64/Packages 404 Not Found [IP: 202.141.160.110 443]\n', 'E: Some index files failed to download. They have been ignored, or old ones used instead.\n']
      Run CMD Task:[dpkg --print-architecture]
      [-]Result:success

      根据您的系统,为您推荐安装源为['http://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu/', 'http://mirrors.tuna.tsinghua.edu.cn/ros2/ubuntu/']
      Run CMD Task:[sudo apt update]
      [-]Result:code:100 ports bionic-security/multiverse amd64 Packages[18.1 kB]

      apt更新失败,后续程序可能会继续尝试...,['\n', 'WARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n', '\n', 'E: Failed to fetch https://mirrors.ustc.edu.cn/ubuntu-ports/dists/bionic/main/binary-amd64/Packages 404 Not Found [IP: 202.141.160.110 443]\n', 'E: Failed to fetch https://mirrors.ustc.edu.cn/ubuntu-ports/dists/bionic-updates/main/binary-amd64/Packages 404 Not Found [IP: 202.141.160.110 443]\n', 'E: Failed to fetch https://mirrors.ustc.edu.cn/ubuntu-ports/dists/bionic-backports/main/binary-amd64/Packages 404 Not Found [IP: 202.141.160.110 443]\n', 'E: Failed to fetch https://mirrors.ustc.edu.cn/ubuntu-ports/dists/bionic-security/main/binary-amd64/Packages 404 Not Found [IP: 202.141.160.110 443]\n', 'E: Some index files failed to download. They have been ignored, or old ones used instead.\n']
      Run CMD Task:[sudo apt-cache search ros-base ]
      []ros-melodic-end-effector - End-Effector package: provides a ROS-based set of standard interfaces to command rob[|]ros-melodic-ros-base - A metapackage which extends ros_core and includes other basic non-robot tools like actio[-]ros-bouncy-ros-base - A package which extends 'ros_core' and includes other basic functionalities like tf2 and [/]ros-crystal-ros-base - A package which extends 'ros_core' and includes other basic functionalities like tf2 and[]ros-dashing-ros-base - A package which extends 'ros_core' and includes other basic functionalities like tf2 and[|]ros-eloquent-ros-base - A package which extends 'ros_core' and includes other basic functionalities like tf2 an[-]Result:success

      恭喜,成功添加ROS源,接下来可以使用apt安装ROS或者使用[1]一键安装ROS安装!
      Run CMD Task:[sudo apt-cache search ros-base ]
      []ros-melodic-end-effector - End-Effector package: provides a ROS-based set of standard interfaces to command rob[|]ros-melodic-ros-base - A metapackage which extends ros_core and includes other basic non-robot tools like actio[-]ros-bouncy-ros-base - A package which extends 'ros_core' and includes other basic functionalities like tf2 and [/]ros-crystal-ros-base - A package which extends 'ros_core' and includes other basic functionalities like tf2 and[]ros-dashing-ros-base - A package which extends 'ros_core' and includes other basic functionalities like tf2 and[|]ros-eloquent-ros-base - A package which extends 'ros_core' and includes other basic functionalities like tf2 an[-]Result:success

      RUN Choose Task:[请输入括号内的数字]
      请选择你要安装的ROS版本名称(请注意ROS1和ROS2区别):
      [1]:melodic(ROS1)
      [2]:bouncy(ROS2)
      [3]:crystal(ROS2)
      [4]:dashing(ROS2)
      [5]:eloquent(ROS2)
      [0]:quit
      请输入[]内的数字以选择:1
      RUN Choose Task:[请输入括号内的数字]
      请选择安装的具体版本(如果不知道怎么选,请选1桌面版):
      [1]:melodic(ROS1)桌面版
      [2]:melodic(ROS1)基础版(小)
      [0]:quit
      请输入[]内的数字以选择:1
      Run CMD Task:[sudo apt-cache search aptitude ]
      [-]Result:success

      Traceback (most recent call last):
      File "/tmp/fishinstall/install.py", line 90, in <module>
      main()
      File "/tmp/fishinstall/install.py", line 83, in main
      run_tool_file(tools[code]['tool'].replace(url_prefix,'').replace("/","."))
      File "/tmp/fishinstall/tools/base.py", line 1233, in run_tool_file
      if tool.run()==False: return False
      File "/tmp/fishinstall/tools/tool_install_ros.py", line 385, in run
      self.install_ros()
      File "/tmp/fishinstall/tools/tool_install_ros.py", line 378, in install_ros
      ros_version = self.choose_and_install_ros()
      File "/tmp/fishinstall/tools/tool_install_ros.py", line 319, in choose_and_install_ros
      AptUtils.install_pkg('aptitude')
      File "/tmp/fishinstall/tools/base.py", line 1172, in install_pkg
      for key in dic.keys():
      AttributeError: 'NoneType' object has no attribute 'keys'
      bash: /opt/ros/melodic/setup.bash: No such file or directory

      小鱼小 1 条回复 最后回复 回复 引用 0
      • 小鱼小
        小鱼 技术大佬 @zyd18342842908
        最后由 编辑

        @zyd18342842908 在 arm下一键安装ros出现问题了 中说:

        如果出现问题NO_PUBKEY XXXXXXXX,请手动运行添加指令:apt-key adv --keyserver keyserver.ubuntu.com --recv-keys XXXXXXXX
        如:error: NO_PUBKEY 0E98404D386FA1D9
        运行指令:sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0E98404D386FA1D9

        新书配套视频:https://www.bilibili.com/video/BV1GW42197Ck/

        18121332981 1 条回复 最后回复 回复 引用 0
        • 18121332981
          ঞ辰筱 ໌້ᮨ꧔ꦿ᭄ @小鱼
          最后由 编辑

          @小鱼 可能还是不是很懂,会返回“从公钥服务器接收失败,无数据”

          小鱼小 1 条回复 最后回复 回复 引用 0
          • 小鱼小
            小鱼 技术大佬 @1812133298
            最后由 编辑

            @1812133298 arm下只能装基础版

            新书配套视频:https://www.bilibili.com/video/BV1GW42197Ck/

            1 条回复 最后回复 回复 引用 0
            • 第一个帖子
              最后一个帖子
            皖ICP备16016415号-7
            Powered by NodeBB | 鱼香ROS