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

    Ubuntu18.04LTS 安装ROSmelodic失败

    已定时 已固定 已锁定 已移动
    一键安装
    一键安装ros1 报错 ubuntu18.04
    2
    7
    515
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • T
      Tonywang20030408
      最后由 编辑

      tony@tony-Alienware-m15-R6:~$ wget http://fishros.com/install -O fishros && . fishros
      --2023-08-01 21:49:44-- 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-08-01 21:49:44-- http://fishros.com/install/
      再次使用存在的到 fishros.com:80 的连接。
      已发出 HTTP 请求,正在等待回应... 200 OK
      长度: 582 [application/octet-stream]
      正在保存至: “fishros”

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

      2023-08-01 21:49:44 (267 MB/s) - 已保存 “fishros” [582/582])

      正在读取软件包列表... 完成
      正在分析软件包的依赖关系树
      正在读取状态信息... 完成
      python3-yaml 已经是最新版 (3.12-1build2)。
      python3-distro 已经是最新版 (1.0.1-2)。
      下列软件包是自动安装的并且现在不需要了:
      gir1.2-goa-1.0 gir1.2-snapd-1
      使用'sudo apt autoremove'来卸载它(它们)。
      升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 4 个软件包未被升级。
      --2023-08-01 21:49:44-- 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.02s

      2023-08-01 21:49:44 (2.37 MB/s) - 已保存 “/tmp/fishinstall/tools/base.py” [42293/42293])

      WARN:No Yaml Module!
      Traceback (most recent call last):
      File "/tmp/fishinstall/install.py", line 91, in <module>
      main()
      File "/tmp/fishinstall/install.py", line 30, in main
      from tools.base import CmdTask,FileUtils,PrintUtils,ChooseTask
      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
      • T
        Tonywang20030408
        最后由 编辑

        看到了之前这个帖子https://fishros.org.cn/forum/topic/385/ubuntu20-04-%E4%B8%80%E9%94%AE%E5%AE%89%E8%A3%85%E5%A4%B1%E8%B4%A5/2?_=1690897114044
        卸载python3-distro之后无法使用pip3 install 再次安装python3-distro

        问题表现:
        tony@tony-Alienware-m15-R6:~$ sudo pip3 install python3-distro
        WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
        Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
        To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
        WARNING: The directory '/home/tony/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
        ERROR: Could not find a version that satisfies the requirement python3-distro (from versions: none)
        ERROR: No matching distribution found for python3-distro

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

          @Tonywang20030408
          sudo apt update
          sudo apt install python3-distro

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

          1 条回复 最后回复 回复 引用 0
          • T
            Tonywang20030408
            最后由 编辑

            tony@tony-Alienware-m15-R6:~$ sudo apt update
            [sudo] tony 的密码:
            获取:1 file:/var/nv-tensorrt-repo-cuda10.2-trt7.0.0.11-ga-20191216 InRelease
            忽略:1 file:/var/nv-tensorrt-repo-cuda10.2-trt7.0.0.11-ga-20191216 InRelease
            获取:2 file:/var/nv-tensorrt-repo-cuda10.2-trt7.0.0.11-ga-20191216 Release [574 B]
            获取:2 file:/var/nv-tensorrt-repo-cuda10.2-trt7.0.0.11-ga-20191216 Release [574 B]
            命中:4 https://mirrors.ustc.edu.cn/ubuntu bionic InRelease
            命中:5 https://mirrors.ustc.edu.cn/ubuntu bionic-proposed InRelease
            命中:6 https://packages.microsoft.com/repos/edge stable InRelease
            命中:7 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu bionic InRelease
            命中:8 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic InRelease
            正在读取软件包列表... 完成
            正在分析软件包的依赖关系树
            正在读取状态信息... 完成
            所有软件包均为最新。
            tony@tony-Alienware-m15-R6:~$ sudo apt install python3-distro
            正在读取软件包列表... 完成
            正在分析软件包的依赖关系树
            正在读取状态信息... 完成
            python3-distro 已经是最新版 (1.0.1-2)。
            下列软件包是自动安装的并且现在不需要了:
            gir1.2-goa-1.0 gir1.2-snapd-1 linux-headers-5.4.0-84-generic
            linux-hwe-5.4-headers-5.4.0-84 linux-image-5.4.0-84-generic
            linux-modules-5.4.0-84-generic linux-modules-extra-5.4.0-84-generic
            使用'sudo apt autoremove'来卸载它(它们)。
            升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。

            T 1 条回复 最后回复 回复 引用 0
            • T
              Tonywang20030408 @Tonywang20030408
              最后由 编辑

              再次运行一键安装,报错还是一样的

              1 条回复 最后回复 回复 引用 0
              • T
                Tonywang20030408
                最后由 编辑

                现在电脑里有三个版本的python3:3.6、3.8、3.9
                3.6和3.8是ppa源安装的,3.9是源码安装的

                1 条回复 最后回复 回复 引用 0
                • T
                  Tonywang20030408
                  最后由 编辑

                  已经安装了CUDA10.2、cudnn7.6.5、TensorRT7.0.0.11和paddlepaddle,不知道有没有影响

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