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

    一键安装使用指南及常见问题解决方案

    已定时 已固定 已锁定 已移动
    一键安装
    30
    60
    32.2k
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • 16043339391
      莫上 @小鱼
      最后由 编辑

      @小鱼 apt更新失败,后续程序可能会继续尝试...,['\n', 'WARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n', '\n', "E: The repository 'https://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu bullseye Release' does not have a Release file.\n", "E: The repository 'http://packages.ros.org/ros1/ubuntu bullseye Release' does not have a Release file.\n"]
      =================3.下载镜像(该步骤因网络原因会慢一些,若失败请重试)==================
      Run CMD Task:[sudo docker pull ros:melodic ]
      sudo: docker: command not found
      Run CMD Task:[sudo docker pull ros:melodic ]
      sudo: docker: command not found
      Run CMD Task:[sudo docker pull ros:melodic ]
      sudo: docker: command not found

      用一键安装 安装docker和ros melodic时出现以下问题,然后操作完之后什么都没有,这个问题要如何解决呢

      1 条回复 最后回复 回复 引用 0
      • 16043339391
        莫上 @小鱼
        最后由 编辑

        @小鱼 --2023-05-17 22:50:07-- http://fishros.com/install
        正在解析主机 fishros.com (fishros.com)... 139.9.131.171
        正在连接 fishros.com (fishros.com)|139.9.131.171|:80... 已连接。
        已发出 HTTP 请求,正在等待回应... 301 Moved Permanently
        位置:http://fishros.com/install/ [跟随至新的 URL]
        --2023-05-17 22:50:07-- http://fishros.com/install/
        再次使用存在的到 fishros.com:80 的连接。
        已发出 HTTP 请求,正在等待回应... 200 OK
        长度:582 [application/octet-stream]
        正在保存至: “fishros”

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

        2023-05-17 22:50:08 (22.2 MB/s) - 已保存 “fishros” [582/582])

        SSH is enabled and the default password for the 'pi' user has not been changed.
        This is a security risk - please login as the 'pi' user and type 'passwd' to set a new password.

        正在读取软件包列表... 完成
        正在分析软件包的依赖关系树
        正在读取状态信息... 完成
        python3-distro 已经是最新版 (1.3.0-1)。
        python3-yaml 已经是最新版 (3.13-2)。
        升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 721 个软件包未被升级。
        --2023-05-17 22:50:10-- http://fishros.com/install/install1s/tools/base.py
        正在解析主机 fishros.com (fishros.com)... 139.9.131.171
        正在连接 fishros.com (fishros.com)|139.9.131.171|:80... 已连接。
        已发出 HTTP 请求,正在等待回应... 200 OK
        长度:42293 (41K) [application/octet-stream]
        正在保存至: “/tmp/fishinstall/tools/base.py”

        /tmp/fishinstall/to 100%[===================>] 41.30K --.-KB/s 用时 0.1s

        2023-05-17 22:50:10 (411 KB/s) - 已保存 “/tmp/fishinstall/tools/base.py” [42293/42293])

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

        基础检查通过...

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

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

        RUN Choose Task:[请输入括号内的数字]
        ---众多工具,等君来用---
        [1]:一键安装:ROS(支持ROS和ROS2,树莓派Jetson)
        [2]:一键安装:github桌面版(小鱼常用的github客户端)
        [3]:一键配置:rosdep(小鱼的rosdepc,又快又好用)
        [4]:一键配置:ROS环境(快速更新ROS环境设置,自动生成环境选择)
        [5]:一键配置:系统源(更换系统源,支持全版本Ubuntu系统)
        [6]:一键安装:nodejs
        [7]:一键安装:VsCode开发工具
        [8]:一键安装:Docker
        [9]:一键安装:Cartographer(内测版v0.1)
        [10]:一键安装:微信(可以在Linux上使用的微信)
        [11]:一键安装:ROS+Docker(支持所有版本ROS/ROS2)
        [12]:一键安装:PlateformIO MicroROS开发环境(支持Fishbot)
        [77]:测试模式:运行自定义工具测试
        [0]:quit
        请输入[]内的数字以选择:11
        --2023-05-17 22:50:21-- http://fishros.com/install/install1s/tools/tool_install_ros_with_docker.py
        正在解析主机 fishros.com (fishros.com)... 139.9.131.171
        正在连接 fishros.com (fishros.com)|139.9.131.171|:80... 已连接。
        已发出 HTTP 请求,正在等待回应... 200 OK
        长度:11540 (11K) [application/octet-stream]
        正在保存至: “/tmp/fishinstall/tools/tool_install_ros_with_docker.py”

        /tmp/fishinstall/to 100%[===================>] 11.27K --.-KB/s 用时 0s

        2023-05-17 22:50:21 (52.0 MB/s) - 已保存 “/tmp/fishinstall/tools/tool_install_ros_with_docker.py” [11540/11540])

        --2023-05-17 22:50:21-- http://fishros.com/install/install1s/tools/tool_install_vscode.py
        正在解析主机 fishros.com (fishros.com)... 139.9.131.171
        正在连接 fishros.com (fishros.com)|139.9.131.171|:80... 已连接。
        已发出 HTTP 请求,正在等待回应... 200 OK
        长度:1366 (1.3K) [application/octet-stream]
        正在保存至: “/tmp/fishinstall/tools/tool_install_vscode.py”

        /tmp/fishinstall/to 100%[===================>] 1.33K --.-KB/s 用时 0s

        2023-05-17 22:50:22 (31.5 MB/s) - 已保存 “/tmp/fishinstall/tools/tool_install_vscode.py” [1366/1366])

        --2023-05-17 22:50:22-- http://fishros.com/install/install1s/tools/tool_install_docker.py
        正在解析主机 fishros.com (fishros.com)... 139.9.131.171
        正在连接 fishros.com (fishros.com)|139.9.131.171|:80... 已连接。
        已发出 HTTP 请求,正在等待回应... 200 OK
        长度:2882 (2.8K) [application/octet-stream]
        正在保存至: “/tmp/fishinstall/tools/tool_install_docker.py”

        /tmp/fishinstall/to 100%[===================>] 2.81K --.-KB/s 用时 0s

        2023-05-17 22:50:22 (59.4 MB/s) - 已保存 “/tmp/fishinstall/tools/tool_install_docker.py” [2882/2882])

        欢迎使用一键安装ROS-Docker版,支持所有版本ROS,本工具由作者小鱼提供
        ================================1.版本选择======================================
        RUN Choose Task:[请输入括号内的数字]
        请选择你要安装的ROS版本名称(请注意ROS1和ROS2区别):
        [1]:noetic
        [2]:humble
        [3]:foxy
        [4]:galactic
        [5]:melodic
        [6]:rolling
        [7]:kinetic
        [8]:eloquent
        [9]:dashing
        [10]:crystal
        [11]:bouncy
        [12]:ardent
        [13]:lunar
        [14]:indigo
        [0]:quit
        请输入[]内的数字以选择:5
        你选择了melodic(ROS1),该版本目前状态:长期支持
        ================================2.安装Docker======================================
        Run CMD Task:[docker version]
        [-]Result:code:127

        欢迎使用一键安装Docker,支持amd64和arm64架构系统,本工具由作者alyssa提供
        开始根据系统架构,为你下载对应版本的docker~
        Run CMD Task:[sudo apt update]
        [|]获取:6 https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates In[-]Result:success --upgradable’ 来查看它们。

        Run CMD Task:[sudo apt install apt-transport-https ca-certificates curl software-properties-common -y]
        [/]升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 721 个软件包未[-]Result:success

        Run CMD Task:[curl -fsSL https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu/gpg | sudo apt-key add -]
        [-]Result:success

        Run CMD Task:[sudo apt-key fingerprint 0EBFCD88]
        [-]Result:success deb) docker@docker.com

        Run CMD Task:[sudo add-apt-repository "deb [arch=arm64] https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu $(lsb_release -cs) stable" -y]
        Traceback (most recent call last):
        File "/usr/bin/add-apt-repository", line 95, in <module>
        sp = SoftwareProperties(options=options)
        File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 109, in init
        self.reload_sourceslist()
        File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 599, in reload_sourceslist
        self.distro.get_sources(self.sourceslist)
        File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 93, in get_sources
        (self.id, self.codename))
        aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Raspbian/buster
        下载完成,接下来升级apt索引~
        Run CMD Task:[sudo apt update]
        [|]获取:6 https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates In[-]Result:success --upgradable’ 来查看它们。

        开始安装最新版本docker CE~
        Run CMD Task:[sudo apt --fix-broken install -y]
        [/]升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 721 个软件包未[-]Result:success

        Run CMD Task:[sudo apt-cache search docker-ce ]
        [-]Result:success

        Traceback (most recent call last):
        File "/tmp/fishinstall/install.py", line 91, 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_with_docker.py", line 236, in run
        self.install_ros_with_docker()
        File "/tmp/fishinstall/tools/tool_install_ros_with_docker.py", line 222, in install_ros_with_docker
        self.install_docker()
        File "/tmp/fishinstall/tools/tool_install_ros_with_docker.py", line 138, in install_docker
        run_tool_file('tools.tool_install_docker')
        File "/tmp/fishinstall/tools/base.py", line 1233, in run_tool_file
        if tool.run()==False: return False
        File "/tmp/fishinstall/tools/tool_install_docker.py", line 64, in run
        self.install_docker()
        File "/tmp/fishinstall/tools/tool_install_docker.py", line 55, in install_docker
        AptUtils.install_pkg_check_dep("docker-ce")
        File "/tmp/fishinstall/tools/base.py", line 1183, in install_pkg_check_dep
        result = AptUtils.install_pkg(name)
        File "/tmp/fishinstall/tools/base.py", line 1172, in install_pkg
        for key in dic.keys():
        AttributeError: 'NoneType' object has no attribute 'keys'

        这是完整过程

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

          @1604333939 一键安装不支持树莓派系统

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

          1 条回复 最后回复 回复 引用 0
          • Z
            lizeqing20021113
            最后由 编辑

            此回复已被删除!
            1 条回复 最后回复 回复 引用 0
            • 7347352937
              734735293
              最后由 编辑

              spric@spric-desktop:~$ rosdep update
              Traceback (most recent call last):
                File "/usr/local/bin/rosdep", line 7, in <module>
                  from rosdep2.main import rosdep_main
                File "/usr/local/lib/python3.5/dist-packages/rosdep2/__init__.py", line 45, in <module>
                  from .lookup import RosdepDefinition, RosdepView, RosdepLookup, \
                File "/usr/local/lib/python3.5/dist-packages/rosdep2/lookup.py", line 41, in <module>
                  from .rospkg_loader import RosPkgLoader
                File "/usr/local/lib/python3.5/dist-packages/rosdep2/rospkg_loader.py", line 39, in <module>
                  import catkin_pkg.package
                File "/usr/local/lib/python3.5/dist-packages/catkin_pkg/package.py", line 44, in <module>
                  from catkin_pkg.condition import evaluate_condition
                File "/usr/local/lib/python3.5/dist-packages/catkin_pkg/condition.py", line 17, in <module>
                  import pyparsing as pp
                File "/usr/local/lib/python3.5/dist-packages/pyparsing/__init__.py", line 100
                  major: int
                       ^
              SyntaxError: invalid syntax
              

              在更新和初始化时,都出现这个报错

              2098365252 1 条回复 最后回复 回复 引用 0
              • 7347352937
                734735293
                最后由 编辑

                更新源也错误了

                小鱼:检测当前系统ubuntu16.04:xenial 支持一键安装ROS
                Run CMD Task:[sudo apt update]
                [-]Result:success                           --upgradable’ 来查看它们。eleasee
                
                Run CMD Task:[sudo apt-cache search curl ]
                [-]Result:success                           kage retrieves data from url-format files such as http://, ftp://, package:// file://, etc., and loads the data into memory.
                
                Run CMD Task:[sudo apt install curl -y]
                [-]Result:success                           .卸载 0 个软件包,有 35 个软件包未被升级。
                
                Run CMD Task:[sudo apt-cache search gnupg2 ]
                [-]Result:success                           eplacement (new v2.x)tainer easier
                
                Run CMD Task:[sudo apt install gnupg2 -y]
                [-]Result:success                           .卸载 0 个软件包,有 35 个软件包未被升级。
                
                Run CMD Task:[curl -s https://gitee.com/ohhuo/rosdistro/raw/master/ros.asc | sudo apt-key add -]
                [-]Result:success                           
                
                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:success                           --upgradable’ 来查看它们。arm64 Packages [833 kB]
                
                Run CMD Task:[sudo apt-cache search ros-base ]
                [-]Result:success                           h extends ros_core and includes other basic non-robot tools like actionlib, dynamic reconfigure, nodelets, and pluginlib.
                
                换源后更新失败,第二次开始切换源,尝试更换ROS2源为华为源!
                根据您的系统,为您推荐安装源为['https://repo.huaweicloud.com/ros/ubuntu/', 'https://repo.huaweicloud.com/ros2/ubuntu/']
                Run CMD Task:[sudo rm -rf /etc/apt/sources.list.d/ros-fish.list]
                [-]Result:success                           
                
                Run CMD Task:[sudo apt update]
                [-]Result:success                           --upgradable’ 来查看它们。ackages [833 kB]
                
                Run CMD Task:[sudo apt-cache search ros-base ]
                [-]Result:success                           h extends ros_core and includes other basic non-robot tools like actionlib, dynamic reconfigure, nodelets, and pluginlib.
                
                换源后更新失败,第三次开始切换源,尝试更换ROS2源为ROS2官方源!
                根据您的系统,为您推荐安装源为['http://packages.ros.org/ros/ubuntu/', 'http://packages.ros.org/ros2/ubuntu/']
                Run CMD Task:[sudo rm -rf /etc/apt/sources.list.d/ros-fish.list]
                [-]Result:success                           
                
                Run CMD Task:[sudo apt update]
                [-]Result:success                           --upgradable’ 来查看它们。es [131 kB]
                
                Run CMD Task:[sudo apt-cache search ros-base ]
                [-]Result:success                           h extends ros_core and includes other basic non-robot tools like actionlib, dynamic reconfigure, nodelets, and pluginlib.
                
                换源后更新失败,第四次开始切换源,尝试使用https-ROS2官方源~!
                根据您的系统,为您推荐安装源为['https://packages.ros.org/ros/ubuntu/', 'https://packages.ros.org/ros2/ubuntu/']
                Run CMD Task:[sudo rm -rf /etc/apt/sources.list.d/ros-fish.list]
                [-]Result:success                           
                
                Run CMD Task:[sudo apt update]
                [-]Result:code:100                           org) does not match target host name 'packages.ros.org'
                
                检测到发生证书校验错误['\n', 'WARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n', '\n', 'E: 仓库 “https://packages.ros.org/ros/ubuntu xenial Release” 没有 Release 文件。\n', 'E: 仓库 “https://packages.ros.org/ros2/ubuntu xenial Release” 没有 Release 文件。\n'],自动取消https校验,如有需要请手动删除:rm /etc/apt/apt.conf.d/99verify-peer.conf
                Run CMD Task:[touch /etc/apt/apt.conf.d/99verify-peer.conf]
                [-]Result:success                           
                
                Run CMD Task:[echo  "Acquire { https::Verify-Peer false }" > /etc/apt/apt.conf.d/99verify-peer.conf]
                [-]Result:success                           
                
                Run CMD Task:[sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F42ED6FBAB17C654]
                [-]Result:success                           -keyserver
                
                Run CMD Task:[sudo apt update]
                [-]Result:code:100                           org) does not match target host name 'packages.ros.org'
                
                apt更新失败,后续程序可能会继续尝试...,['\n', 'WARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n', '\n', 'E: 仓库 “https://packages.ros.org/ros/ubuntu xenial Release” 没有 Release 文件。\n', 'E: 仓库 “https://packages.ros.org/ros2/ubuntu xenial Release” 没有 Release 文件。\n']
                Run CMD Task:[sudo apt-cache search ros-base ]
                [-]Result:success                           h extends ros_core and includes other basic non-robot tools like actionlib, dynamic reconfigure, nodelets, and pluginlib.
                
                Run CMD Task:[sudo apt update]
                [-]Result:code:100                           org) does not match target host name 'packages.ros.org'
                
                检测到发生证书校验错误['\n', 'WARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n', '\n', 'E: 仓库 “https://packages.ros.org/ros/ubuntu xenial Release” 没有 Release 文件。\n', 'E: 仓库 “https://packages.ros.org/ros2/ubuntu xenial Release” 没有 Release 文件。\n'],自动取消https校验,如有需要请手动删除:rm /etc/apt/apt.conf.d/99verify-peer.conf
                Run CMD Task:[touch /etc/apt/apt.conf.d/99verify-peer.conf]
                [-]Result:success                           
                
                Run CMD Task:[echo  "Acquire { https::Verify-Peer false }" > /etc/apt/apt.conf.d/99verify-peer.conf]
                [-]Result:success                           
                
                Run CMD Task:[sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F42ED6FBAB17C654]
                [-]Result:success                           -keyserver
                
                Run CMD Task:[sudo apt update]
                [-]Result:code:100                           org) does not match target host name 'packages.ros.org'
                
                apt更新失败,后续程序可能会继续尝试...,['\n', 'WARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n', '\n', 'E: 仓库 “https://packages.ros.org/ros/ubuntu xenial Release” 没有 Release 文件。\n', 'E: 仓库 “https://packages.ros.org/ros2/ubuntu xenial Release” 没有 Release 文件。\n']
                四次换源后都失败了,请及时联系小鱼获取解决方案并处理!
                
                1 条回复 最后回复 回复 引用 0
                • ganyuanzhenG
                  Elysia 技术大佬
                  最后由 编辑

                  把 /etc/apt/sources.list.d/ 里面的文件里面的https换成http就好

                  这个问题是由系统证书链过期导致的。

                  我难道就没有一段英勇,美好而又虚幻的过去……幸运地写在金叶片上?

                  ganyuanzhenG 1 条回复 最后回复 回复 引用 0
                  • ganyuanzhenG
                    Elysia 技术大佬 @ganyuanzhen
                    最后由 编辑

                    @ganyuanzhen
                    @小鱼 建议小鱼在脚本里面加一个是否启用https的选项,以防止类似的在老旧系统上安装时出现的证书错误🤠

                    我难道就没有一段英勇,美好而又虚幻的过去……幸运地写在金叶片上?

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

                      @ganyuanzhen 有做这部分工作,可能存在bug,没有捕获

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

                      1 条回复 最后回复 回复 引用 0
                      • M
                        my863124497
                        最后由 编辑

                        wget http://fishros.com/install -O fishros && . fishros
                        --2023-08-21 14:18:09-- http://fishros.com/install
                        正在连接 127.0.0.1:7890... 已连接。
                        已发出 Proxy 请求,正在等待回应... 301 Moved Permanently
                        位置:http://fishros.com/install/ [跟随至新的 URL]
                        --2023-08-21 14:18:09-- http://fishros.com/install/
                        再次使用存在的到 127.0.0.1:7890 的连接。
                        已发出 Proxy 请求,正在等待回应... 200 OK
                        长度: 582 [application/octet-stream]
                        正在保存至: “fishros”

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

                        2023-08-21 14:18:09 (53.9 MB/s) - 已保存 “fishros” [582/582])

                        .: 没有那个文件或目录: fishros

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

                          @my863124497 改下指令 wget http://fishros.com/install -O fishros && /bin/bash fishros

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

                          1 条回复 最后回复 回复 引用 0
                          • 10572976221
                            不再是不再有
                            最后由 编辑

                            此回复已被删除!
                            1 条回复 最后回复 回复 引用 0
                            • 29271328512
                              aaa
                              最后由 编辑

                              ['', 'sudo: docker: command not found\n']

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

                                @2927132851 docker没有装

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

                                1 条回复 最后回复 回复 引用 0
                                • S
                                  suyelingfeng666 ROS2开发者
                                  最后由 编辑

                                  597cdefc-739e-4890-9b1e-2a39e2c8319b-image.png

                                  ganyuanzhenG 1 条回复 最后回复 回复 引用 0
                                  • ganyuanzhenG
                                    Elysia 技术大佬 @suyelingfeng666
                                    最后由 编辑

                                    @suyelingfeng666 之前翻ROS仓库的时候发现,ROS2不支持Debian系统,然后你用的似乎是RaspberryPiOS,这个系统是基于Debian的。所以要换成Ubuntu就可以用了。

                                    ROS1似乎是支持Debian的。

                                    我难道就没有一段英勇,美好而又虚幻的过去……幸运地写在金叶片上?

                                    1 条回复 最后回复 回复 引用 0
                                    • 26368146052
                                      一斤幼稚. @小鱼
                                      最后由 编辑

                                      @小鱼 请问
                                      下列软件包有未满足的依赖关系:
                                      ros-noetic-desktop-full : 依赖: ros-noetic-desktop 但是它将不会被安装
                                      依赖: ros-noetic-perception 但是它将不会被安装
                                      依赖: ros-noetic-simulators 但是它将不会被安装
                                      依赖: ros-noetic-urdf-sim-tutorial 但是它将不会被安装
                                      E: 无法修正错误,因为您要求某些软件包保持现状,就是它们破坏了软件包间的依赖关系。
                                      导致一键安装失败是怎么回事呢![替代文字]
                                      Screenshot from 2023-11-07 11-04-44.png Screenshot from 2023-11-07 11-05-34.png

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

                                        @2636814605 试试这个装

                                        @毛哥成山轮胎机油保养 在 学习笔记 中说:

                                        ----------------aptitude 命令----------------------
                                        aptitude与 apt-get 一样,是 Debian 及其衍生系统中功能极其强大的包管理工具。与 apt-get 不同的是,aptitude在处理依赖问题上更佳一些。举例来说,aptitude在删除一个包时,会同时删除本身所依赖的包。这样,系统中不会残留无用的包,整个系统更为干净。
                                        sudo apt-get install aptitude 安装aptitude
                                        aptitude install pkgname 安装包
                                        aptitude remove pkgname 删除包
                                        aptitude purge pkgname 删除包及其配置文件
                                        aptitude search string robot_state_publisher 搜索包 查找包
                                        aptitude show pkgname 显示包的详细信息

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

                                        1 条回复 最后回复 回复 引用 0
                                        • 19465810771
                                          独步九州
                                          最后由 编辑

                                          Run CMD Task:[sudo apt-cache search python3-colcon-common-extensions ]
                                          []python3-colcon-common-extensions - Meta package aggregating colcon-core and c[-]Result:success

                                          Run CMD Task:[sudo apt install python3-colcon-common-extensions -y]
                                          []升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被[-]Result:success

                                          Run CMD Task:[sudo apt-cache search python3-argcomplete ]
                                          [-]Result:success for argparse (for Python 3)

                                          Run CMD Task:[sudo apt install python3-argcomplete -y]
                                          []升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被[-]Result:success

                                          Run CMD Task:[sudo apt-cache search python3-rosdep ]
                                          []python3-rosdep2 - rosdep package manager abstraction tool for Robot OS (Pytho[-]Result:success anager abstraction tool for ROS

                                          Run CMD Task:[sudo apt install python3-rosdep -y]
                                          []升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被[-]Result:success

                                          Run CMD Task:[ls /opt/ros/foxy/setup.bash]
                                          [-]Result:code:2

                                          安装失败了怎么解决

                                          1 条回复 最后回复 回复 引用 0
                                          • 20901270482
                                            ASUKA
                                            最后由 编辑

                                            正在读取软件包列表... 完成
                                            正在分析软件包的依赖关系树... 完成
                                            正在读取状态信息... 完成
                                            python3-distro 已经是最新版 (1.8.0-1)。
                                            python3-yaml 已经是最新版 (6.0-3build1)。
                                            下列软件包是自动安装的并且现在不需要了:
                                            grub-pc-bin
                                            使用'sudo apt autoremove'来卸载它(它们)。
                                            升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 226 个软件包未被升级。
                                            /tmp/fishinstall/install.py:76: SyntaxWarning: invalid escape sequence '.'
                                            book = """
                                            /tmp/fishinstall/install.py:81: SyntaxWarning: invalid escape sequence '\ '
                                            .'// .-~"""""""-._ | _,-"""""""~-. \`.
                                            --2023-12-11 09:48:28-- http://fishros.com/install/install1s/tools/base.py
                                            正在解析主机 fishros.com (fishros.com)... 139.9.131.171
                                            正在连接 fishros.com (fishros.com)|139.9.131.171|:80... 已连接。
                                            已发出 HTTP 请求,正在等待回应... 200 OK
                                            长度: 44694 (44K) [application/octet-stream]
                                            正在保存至: ‘/tmp/fishinstall/tools/base.py’

                                            /tmp/fishinstall/tools/base.py 100%[================================================================================================>] 43.65K --.-KB/s 用时 0.1s

                                            2023-12-11 09:48:28 (338 KB/s) - 已保存 ‘/tmp/fishinstall/tools/base.py’ [44694/44694])

                                            WARN:No Yaml Module!
                                            Traceback (most recent call last):
                                            File "/tmp/fishinstall/install.py", line 122, in <module>
                                            main()
                                            File "/tmp/fishinstall/install.py", line 57, in main
                                            from tools.base import CmdTask,FileUtils,PrintUtils,ChooseTask,ChooseWithCategoriesTask
                                            File "/tmp/fishinstall/tools/base.py", line 775, in <module>
                                            osversion = GetOsVersion()
                                            ^^^^^^^^^^^^^^
                                            File "/tmp/fishinstall/tools/base.py", line 105, in GetOsVersion
                                            import distro
                                            ModuleNotFoundError: No module named 'distro'

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