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

    一键换源出错

    已定时 已固定 已锁定 已移动 已解决
    一键安装
    一键换源 dockerfile
    2
    6
    406
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • S
      shangui
      最后由 编辑

      # 一键换源
      RUN apt update \
          && apt install wget python3 python3-yaml -y python3-distro\
          && echo "chooses:\n" > fish_install.yaml \
          && echo "- {choose: 5, desc: '一键安装:ROS(支持ROS和ROS2,树莓派Jetson)'}\n" >> fish_install.yaml \
          && echo "- {choose: 2, desc: 更换源继续安装}\n" >> fish_install.yaml \
          && echo "- {choose: 1, desc: 清理三方源}\n" >> fish_install.yaml \
          && wget http://fishros.com/install  -O fishros && /bin/bash fishros \
          # 进行最后的清理
          && rm -rf fish_install.yaml \
          && rm -rf /var/lib/apt/lists/*  /tmp/* /var/tmp/* \
          && apt-get clean && apt autoclean 
      

      在dockerfile中加入了这个,但是每次运行都报错,搞不懂咋回事,求大佬帮助
      下面是运行日志

      [+] Building 166.2s (7/20)                                                                                                                                                  docker:default
       => [internal] load build definition from Dockerfile                                                                                                                                  0.0s 
       => => transferring dockerfile: 6.48kB                                                                                                                                                0.0s.
       => [internal] load metadata for docker.io/library/ubuntu:22.04                                                                                                                       0.0s 
       => [internal] load .dockerignore                                                                                                                                                     0.0s
       => => transferring context: 2B                                                                                                                                                       0.0s 
       => [ 1/16] FROM docker.io/library/ubuntu:22.04                                                                                                                                       0.0s 
       => [internal] load build context                                                                                                                                                     0.3s 
       => => transferring context: 74.59kB                                                                                                                                                  0.3s 
       => CACHED [ 2/16] RUN cd /home     && mkdir rbt     && cd /home/rbt     && mkdir -p software/python3.10.14     && mkdir -p shared_space/venv     && mkdir -p software/cuda     && m  0.0s
       => ERROR [ 3/16] RUN apt update     && apt install wget python3 python3-yaml -y python3-distro    && echo "chooses:\n" > fish_install.yaml     && echo "- {choose: 5, desc: '一�    166.0s
      ------                                                                                                                                                                                     
       > [ 3/16] RUN apt update     && apt install wget python3 python3-yaml -y python3-distro    && echo "chooses:\n" > fish_install.yaml     && echo "- {choose: 5, desc: '一键安装:ROS(支持ROS和ROS2,树莓派Jetson)'}\n" >> fish_install.yaml     && echo "- {choose: 2, desc: 更换源继续安装}\n" >> fish_install.yaml     && echo "- {choose: 1, desc: 清理三方源}\n" >> fish_install.yaml     && wget http://fishros.com/install  -O fishros && /bin/bash fishros     && rm -rf fish_install.yaml     && rm -rf /var/lib/apt/lists/*  /tmp/* /var/tmp/*     && apt-get clean && apt autoclean:
      1.258 
      1.258 WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
      1.258 
      1.998 Get:1 http://archive.ubuntu.com/ubuntu jammy InRelease [270 kB]
      1.999 Get:2 http://security.ubuntu.com/ubuntu jammy-security InRelease [129 kB]
      3.411 Get:3 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [3030 kB]
      3.535 Get:4 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [128 kB]
      3.896 Get:5 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [127 kB]
      4.263 Get:6 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages [1792 kB]
      5.110 Get:7 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages [17.5 MB]
      5.253 Get:8 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [2267 kB]
      5.690 Get:9 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [1150 kB]
      5.972 Get:10 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [44.7 kB]
      7.804 Get:11 http://archive.ubuntu.com/ubuntu jammy/multiverse amd64 Packages [266 kB]
      7.812 Get:12 http://archive.ubuntu.com/ubuntu jammy/restricted amd64 Packages [164 kB]
      7.848 Get:13 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1439 kB]
      8.028 Get:14 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [51.8 kB]
      8.033 Get:15 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [3108 kB]
      8.388 Get:16 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [2541 kB]
      8.684 Get:17 http://archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [33.7 kB]
      8.684 Get:18 http://archive.ubuntu.com/ubuntu jammy-backports/main amd64 Packages [81.4 kB]
      9.431 Fetched 34.1 MB in 8s (4249 kB/s)
      9.431 Reading package lists...
      11.33 Building dependency tree...
      11.82 Reading state information...
      11.86 9 packages can be upgraded. Run 'apt list --upgradable' to see them.
      11.87 
      11.87 WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
      11.87 
      11.92 Reading package lists...
      13.38 Building dependency tree...
      13.84 Reading state information...
      14.26 The following additional packages will be installed:
      14.26   ca-certificates distro-info-data libexpat1 libmpdec3 libpsl5
      14.26   libpython3-stdlib libpython3.10-minimal libpython3.10-stdlib libreadline8
      14.27   libsqlite3-0 libyaml-0-2 lsb-release media-types openssl publicsuffix
      14.27   python3-minimal python3.10 python3.10-minimal readline-common
      14.27 Suggested packages:
      14.27   python3-doc python3-tk python3-venv python3.10-venv python3.10-doc binutils
      14.27   binfmt-support readline-doc
      14.41 The following NEW packages will be installed:
      14.41   ca-certificates distro-info-data libexpat1 libmpdec3 libpsl5
      14.42   libpython3-stdlib libpython3.10-minimal libpython3.10-stdlib libreadline8
      14.42   libsqlite3-0 libyaml-0-2 lsb-release media-types openssl publicsuffix
      14.42   python3 python3-distro python3-minimal python3-yaml python3.10
      14.42   python3.10-minimal readline-common wget
      15.01 0 upgraded, 23 newly installed, 0 to remove and 9 not upgraded.
      15.01 Need to get 8600 kB of archives.
      15.01 After this operation, 28.2 MB of additional disk space will be used.
      15.01 Get:1 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libpython3.10-minimal amd64 3.10.12-1~22.04.5 [813 kB]
      17.20 Get:2 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libexpat1 amd64 2.4.7-1ubuntu0.3 [91.0 kB]
      17.22 Get:3 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 python3.10-minimal amd64 3.10.12-1~22.04.5 [2244 kB]
      18.11 Get:4 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 python3-minimal amd64 3.10.6-1~22.04.1 [24.3 kB]
      18.11 Get:5 http://archive.ubuntu.com/ubuntu jammy/main amd64 media-types all 7.0.0 [25.5 kB]
      18.11 Get:6 http://archive.ubuntu.com/ubuntu jammy/main amd64 libmpdec3 amd64 2.5.1-2build2 [86.8 kB]
      18.13 Get:7 http://archive.ubuntu.com/ubuntu jammy/main amd64 readline-common all 8.1.2-1 [53.5 kB]
      18.13 Get:8 http://archive.ubuntu.com/ubuntu jammy/main amd64 libreadline8 amd64 8.1.2-1 [153 kB]
      18.16 Get:9 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libsqlite3-0 amd64 3.37.2-2ubuntu0.3 [641 kB]
      18.30 Get:10 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libpython3.10-stdlib amd64 3.10.12-1~22.04.5 [1849 kB]
      18.66 Get:11 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 python3.10 amd64 3.10.12-1~22.04.5 [509 kB]
      18.74 Get:12 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libpython3-stdlib amd64 3.10.6-1~22.04.1 [6812 B]
      18.74 Get:13 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 python3 amd64 3.10.6-1~22.04.1 [22.8 kB]
      18.74 Get:14 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 openssl amd64 3.0.2-0ubuntu1.18 [1184 kB]
      18.91 Get:15 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 ca-certificates all 20230311ubuntu0.22.04.1 [155 kB]
      18.92 Get:16 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 distro-info-data all 0.52ubuntu0.7 [5326 B]
      18.93 Get:17 http://archive.ubuntu.com/ubuntu jammy/main amd64 libyaml-0-2 amd64 0.2.2-1build2 [51.6 kB]
      18.93 Get:18 http://archive.ubuntu.com/ubuntu jammy/main amd64 lsb-release all 11.1.0ubuntu4 [10.8 kB]
      18.93 Get:19 http://archive.ubuntu.com/ubuntu jammy/main amd64 python3-yaml amd64 5.4.1-1ubuntu1 [129 kB]
      18.95 Get:20 http://archive.ubuntu.com/ubuntu jammy/main amd64 libpsl5 amd64 0.21.0-1.2build2 [58.4 kB]
      19.02 Get:21 http://archive.ubuntu.com/ubuntu jammy/main amd64 publicsuffix all 20211207.1025-1 [129 kB]
      19.44 Get:22 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 wget amd64 1.21.2-2ubuntu1.1 [339 kB]
      19.46 Get:23 http://archive.ubuntu.com/ubuntu jammy/main amd64 python3-distro all 1.7.0-1 [17.0 kB]
      19.77 debconf: delaying package configuration, since apt-utils is not installed
      19.84 Fetched 8600 kB in 5s (1718 kB/s)
      19.89 Selecting previously unselected package libpython3.10-minimal:amd64.
      (Reading database ... 4393 files and directories currently installed.)
      19.93 Preparing to unpack .../libpython3.10-minimal_3.10.12-1~22.04.5_amd64.deb ...
      19.94 Unpacking libpython3.10-minimal:amd64 (3.10.12-1~22.04.5) ...
      20.07 Selecting previously unselected package libexpat1:amd64.
      20.07 Preparing to unpack .../libexpat1_2.4.7-1ubuntu0.3_amd64.deb ...
      20.08 Unpacking libexpat1:amd64 (2.4.7-1ubuntu0.3) ...
      20.11 Selecting previously unselected package python3.10-minimal.
      20.11 Preparing to unpack .../python3.10-minimal_3.10.12-1~22.04.5_amd64.deb ...
      20.13 Unpacking python3.10-minimal (3.10.12-1~22.04.5) ...
      20.23 Setting up libpython3.10-minimal:amd64 (3.10.12-1~22.04.5) ...
      20.24 Setting up libexpat1:amd64 (2.4.7-1ubuntu0.3) ...
      20.25 Setting up python3.10-minimal (3.10.12-1~22.04.5) ...
      21.25 Selecting previously unselected package python3-minimal.
      (Reading database ... 4697 files and directories currently installed.)
      21.26 Preparing to unpack .../0-python3-minimal_3.10.6-1~22.04.1_amd64.deb ...
      21.26 Unpacking python3-minimal (3.10.6-1~22.04.1) ...
      21.29 Selecting previously unselected package media-types.
      21.29 Preparing to unpack .../1-media-types_7.0.0_all.deb ...
      21.29 Unpacking media-types (7.0.0) ...
      21.32 Selecting previously unselected package libmpdec3:amd64.
      21.32 Preparing to unpack .../2-libmpdec3_2.5.1-2build2_amd64.deb ...
      21.33 Unpacking libmpdec3:amd64 (2.5.1-2build2) ...
      21.35 Selecting previously unselected package readline-common.
      21.36 Preparing to unpack .../3-readline-common_8.1.2-1_all.deb ...
      21.36 Unpacking readline-common (8.1.2-1) ...
      21.41 Selecting previously unselected package libreadline8:amd64.
      21.41 Preparing to unpack .../4-libreadline8_8.1.2-1_amd64.deb ...
      21.41 Unpacking libreadline8:amd64 (8.1.2-1) ...
      21.45 Selecting previously unselected package libsqlite3-0:amd64.
      21.45 Preparing to unpack .../5-libsqlite3-0_3.37.2-2ubuntu0.3_amd64.deb ...
      21.45 Unpacking libsqlite3-0:amd64 (3.37.2-2ubuntu0.3) ...
      21.49 Selecting previously unselected package libpython3.10-stdlib:amd64.
      21.49 Preparing to unpack .../6-libpython3.10-stdlib_3.10.12-1~22.04.5_amd64.deb ...
      21.50 Unpacking libpython3.10-stdlib:amd64 (3.10.12-1~22.04.5) ...
      21.71 Selecting previously unselected package python3.10.
      21.71 Preparing to unpack .../7-python3.10_3.10.12-1~22.04.5_amd64.deb ...
      21.72 Unpacking python3.10 (3.10.12-1~22.04.5) ...
      21.77 Selecting previously unselected package libpython3-stdlib:amd64.
      21.77 Preparing to unpack .../8-libpython3-stdlib_3.10.6-1~22.04.1_amd64.deb ...
      21.78 Unpacking libpython3-stdlib:amd64 (3.10.6-1~22.04.1) ...
      21.81 Setting up python3-minimal (3.10.6-1~22.04.1) ...
      22.04 Selecting previously unselected package python3.
      (Reading database ... 5127 files and directories currently installed.)
      22.05 Preparing to unpack .../00-python3_3.10.6-1~22.04.1_amd64.deb ...
      22.06 Unpacking python3 (3.10.6-1~22.04.1) ...
      22.10 Selecting previously unselected package openssl.
      22.10 Preparing to unpack .../01-openssl_3.0.2-0ubuntu1.18_amd64.deb ...
      22.10 Unpacking openssl (3.0.2-0ubuntu1.18) ...
      22.16 Selecting previously unselected package ca-certificates.
      22.17 Preparing to unpack .../02-ca-certificates_20230311ubuntu0.22.04.1_all.deb ...
      22.17 Unpacking ca-certificates (20230311ubuntu0.22.04.1) ...
      22.25 Selecting previously unselected package distro-info-data.
      22.25 Preparing to unpack .../03-distro-info-data_0.52ubuntu0.7_all.deb ...
      22.25 Unpacking distro-info-data (0.52ubuntu0.7) ...
      22.28 Selecting previously unselected package libyaml-0-2:amd64.
      22.28 Preparing to unpack .../04-libyaml-0-2_0.2.2-1build2_amd64.deb ...
      22.28 Unpacking libyaml-0-2:amd64 (0.2.2-1build2) ...
      22.32 Selecting previously unselected package lsb-release.
      22.32 Preparing to unpack .../05-lsb-release_11.1.0ubuntu4_all.deb ...
      22.33 Unpacking lsb-release (11.1.0ubuntu4) ...
      22.37 Selecting previously unselected package python3-yaml.
      22.37 Preparing to unpack .../06-python3-yaml_5.4.1-1ubuntu1_amd64.deb ...
      22.38 Unpacking python3-yaml (5.4.1-1ubuntu1) ...
      22.42 Selecting previously unselected package libpsl5:amd64.
      22.42 Preparing to unpack .../07-libpsl5_0.21.0-1.2build2_amd64.deb ...
      22.43 Unpacking libpsl5:amd64 (0.21.0-1.2build2) ...
      22.48 Selecting previously unselected package publicsuffix.
      22.48 Preparing to unpack .../08-publicsuffix_20211207.1025-1_all.deb ...
      22.48 Unpacking publicsuffix (20211207.1025-1) ...
      22.52 Selecting previously unselected package wget.
      22.52 Preparing to unpack .../09-wget_1.21.2-2ubuntu1.1_amd64.deb ...
      22.52 Unpacking wget (1.21.2-2ubuntu1.1) ...
      22.58 Selecting previously unselected package python3-distro.
      22.58 Preparing to unpack .../10-python3-distro_1.7.0-1_all.deb ...
      22.58 Unpacking python3-distro (1.7.0-1) ...
      22.63 Setting up media-types (7.0.0) ...
      22.64 Setting up libpsl5:amd64 (0.21.0-1.2build2) ...
      22.65 Setting up wget (1.21.2-2ubuntu1.1) ...
      22.65 Setting up libyaml-0-2:amd64 (0.2.2-1build2) ...
      22.66 Setting up distro-info-data (0.52ubuntu0.7) ...
      22.67 Setting up libsqlite3-0:amd64 (3.37.2-2ubuntu0.3) ...
      22.67 Setting up libmpdec3:amd64 (2.5.1-2build2) ...
      22.68 Setting up openssl (3.0.2-0ubuntu1.18) ...
      22.69 Setting up readline-common (8.1.2-1) ...
      22.70 Setting up publicsuffix (20211207.1025-1) ...
      22.71 Setting up libreadline8:amd64 (8.1.2-1) ...
      22.73 Setting up libpython3.10-stdlib:amd64 (3.10.12-1~22.04.5) ...
      22.73 Setting up ca-certificates (20230311ubuntu0.22.04.1) ...
      22.84 debconf: unable to initialize frontend: Dialog
      22.84 debconf: (TERM is not set, so the dialog frontend is not usable.)
      22.84 debconf: falling back to frontend: Readline
      22.84 debconf: unable to initialize frontend: Readline
      22.84 debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.34.0 /usr/local/share/perl/5.34.0 /usr/lib/x86_64-linux-gnu/perl5/5.34 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.34 /usr/share/perl/5.34 /usr/local/lib/site_perl) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
      22.84 debconf: falling back to frontend: Teletype
      23.83 Updating certificates in /etc/ssl/certs...
      25.22 137 added, 0 removed; done.
      25.26 Setting up libpython3-stdlib:amd64 (3.10.6-1~22.04.1) ...
      25.27 Setting up python3.10 (3.10.12-1~22.04.5) ...
      26.31 Setting up python3 (3.10.6-1~22.04.1) ...
      26.33 running python rtupdate hooks for python3.10...
      26.33 running python post-rtupdate hooks for python3.10...
      26.50 Setting up lsb-release (11.1.0ubuntu4) ...
      26.52 Setting up python3-distro (1.7.0-1) ...
      26.80 Setting up python3-yaml (5.4.1-1ubuntu1) ...
      27.04 Processing triggers for libc-bin (2.35-0ubuntu3.8) ...
      27.14 Processing triggers for ca-certificates (20230311ubuntu0.22.04.1) ...
      27.15 Updating certificates in /etc/ssl/certs...
      28.27 0 added, 0 removed; done.
      28.27 Running hooks in /etc/ca-certificates/update.d...
      28.28 done.
      28.39 --2024-09-13 09:38:38--  http://fishros.com/install
      28.39 Resolving fishros.com (fishros.com)... 47.119.165.169
      28.40 Connecting to fishros.com (fishros.com)|47.119.165.169|:80... connected.
      28.43 HTTP request sent, awaiting response... 301 Moved Permanently
      28.47 Location: http://fishros.com/install/ [following]
      28.47 --2024-09-13 09:38:38--  http://fishros.com/install/
      28.47 Reusing existing connection to fishros.com:80.
      28.47 HTTP request sent, awaiting response... 200 OK
      28.50 Length: 387 [application/octet-stream]
      28.50 Saving to: 'fishros'
      28.50 
      28.50      0K                                                       100% 37.1M=0s
      28.50 
      28.50 2024-09-13 09:38:38 (37.1 MB/s) - 'fishros' saved [387/387]
      28.50 
      28.72 Reading package lists...
      30.27 Building dependency tree...
      30.80 Reading state information...
      31.32 The following NEW packages will be installed:
      31.32   sudo
      31.92 0 upgraded, 1 newly installed, 0 to remove and 9 not upgraded.
      31.92 Need to get 821 kB of archives.
      31.92 After this operation, 2568 kB of additional disk space will be used.
      31.92 Get:1 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 sudo amd64 1.9.9-1ubuntu2.4 [821 kB]
      34.11 debconf: delaying package configuration, since apt-utils is not installed
      34.18 Fetched 821 kB in 3s (316 kB/s)
      34.21 Selecting previously unselected package sudo.
      (Reading database ... 5714 files and directories currently installed.)
      34.22 Preparing to unpack .../sudo_1.9.9-1ubuntu2.4_amd64.deb ...
      34.23 Unpacking sudo (1.9.9-1ubuntu2.4) ...
      34.32 Setting up sudo (1.9.9-1ubuntu2.4) ...
      34.45 Processing triggers for libc-bin (2.35-0ubuntu3.8) ...
      34.56 
      34.56 WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
      34.56 
      34.63 Reading package lists...
      36.22 Building dependency tree...
      36.75 Reading state information...
      37.28 python3-distro is already the newest version (1.7.0-1).
      37.28 python3-yaml is already the newest version (5.4.1-1ubuntu1).
      37.28 0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.
      37.34 --2024-09-13 09:38:47--  http://mirror.fishros.com/install/tools/base.py
      37.34 Resolving mirror.fishros.com (mirror.fishros.com)... 47.119.165.169
      37.34 Connecting to mirror.fishros.com (mirror.fishros.com)|47.119.165.169|:80... connected.
      37.37 HTTP request sent, awaiting response... 200 OK
      37.40 Length: 51464 (50K) [application/octet-stream]
      37.40 Saving to: ‘/tmp/fishinstall//tools/base.py’
      37.40 
      37.40      0K .......... .......... .......... .......... .......... 99%  176K 0s
      37.68     50K                                                       100%  492G=0.3s
      37.68 
      37.68 2024-09-13 09:38:47 (177 KB/s) - ‘/tmp/fishinstall//tools/base.py’ saved [51464/51464]
      37.68 
      37.86 Run CMD Task:[dpkg --print-architecture]
      [-][0.00s] CMD Result:success                                               
      38.44 
      38.44 Run CMD Task:[wget http://mirror.fishros.com/install/tools/translation/translator.py -O /tmp/fishinstall//tools/translation/translator.py --no-check-certificate]
      [-][0.08s] CMD Result:success                                               169|:80... connected.r.py
      39.25 
      39.25 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.06s] CMD Result:success                                               169|:80... connected._CN.py
      39.76 
      39.76 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.08s] CMD Result:success                                               169|:80... connected._US.py
      40.69 
      40.69 Run CMD Task:[wget https://fishros.org.cn/forum/topic/1733 -O /tmp/t1733 -q  --timeout 10 && rm -rf /tmp/t1733]
      [-][0.00s] CMD Result:success                                               
      40.69 
      40.69 已为您切换语言至当前所在国家语言:zh_CN
      40.69 基础检查通过...
      40.69 ===============================================================================
      40.81 ======欢迎使用一键安装工具,人生苦短,三省吾身,省时省力省心!=======
      40.86 ======一键安装已开源,请放心使用:https://github.com/fishros/install =======
      40.95 ===============================================================================
      41.06     
      41.06 
      41.07                         .-~~~~~~~~~-._       _.-~~~~~~~~~-.
      41.15                     __.'              ~.   .~              `.__
      41.24                 .'//     开卷有益        \./     书山有路     \ `.
      41.32                 .'// 可以多看看小鱼的文章   |    关注公众号鱼香ROS  \ `.
      41.39             .'// .-~~~~~~~~~~~~~~-._     |     _,-~~~~~~~~~~~. \`.
      41.49             .'//.-"                 `-.  |  .-'                 "-.\`.
      41.59         .'//______.============-..   \ | /   ..-============.______\`.
      41.70         .'______________________________\|/______________________________`
      41.81         ----------------------------------------------------------------------
      41.93 RUN Choose Task:[请输入括号内的数字]
      42.75 ---众多工具,等君来用---
      42.77 ROS相关:
      42.81   [1]:一键安装(推荐):ROS(支持ROS/ROS2,树莓派Jetson)
      43.03   [3]:一键安装:rosdep(小鱼的rosdepc,又快又好用)
      43.22   [4]:一键配置:ROS环境(快速更新ROS环境设置,自动生成环境选择)
      43.43   [9]:一键安装:Cartographer(18 20测试通过,16未测. updateTime 20240125)
      43.76   [11]:一键安装:ROS Docker版(支持所有版本ROS/ROS2)
      43.97   [16]:一键安装:系统自带ROS (!!警告!!仅供特殊情况下使用)
      44.18 
      44.18 常用软件:
      44.21   [2]:一键安装:github桌面版(小鱼常用的github客户端)
      44.41   [6]:一键安装:NodeJS环境
      44.51   [7]:一键安装:VsCode开发工具
      44.63   [8]:一键安装:Docker
      44.72   [10]:一键安装:微信(可以在Linux上使用的微信)
      44.89   [12]:一键安装:PlateformIO MicroROS开发环境(支持Fishbot)
      45.14   [14]:一键安装:科学上网代理工具
      45.25   [15]:一键安装:QQ for Linux
      45.39 
      45.39 配置工具:
      45.41   [5]:一键配置:系统源(更换系统源,支持全版本Ubuntu系统)
      45.61   [13]:一键配置:python国内源
      45.73   [17]:一键配置: Docker代理(支持VPN+代理服务两种模式)
      45.93 
      45.93 [0]:quit
      46.04 
      46.04 为您从配置文件找到默认选项:{'choose': 5, 'desc': '一键安装:ROS(支持ROS和ROS2,树莓派Jetson)'}
      46.04 Run CMD Task:[wget http://mirror.fishros.com/install/tools/tool_config_system_source.py -O /tmp/fishinstall/tools/tool_config_system_source.py --no-check-certificate]
      [-][0.06s] CMD Result:success                                               169|:80... connected.urce.py
      46.59 
      46.59 Run CMD Task:[wget http://mirror.fishros.com/install/tools/tool_install_ros.py -O /tmp/fishinstall/tools/tool_install_ros.py --no-check-certificate]
      [-][0.10s] CMD Result:success                                               169|:80... connected.
      46.98 
      46.98 欢迎使用一键更换系统源,本工具由作者小鱼提供
      47.66 RUN Choose Task:[请输入括号内的数字]
      48.48 请选择换源方式,如果不知道选什么请选2
      48.51 [1]:仅更换系统源
      48.57 [2]:更换系统源并清理第三方源
      48.66 [0]:quit
      50.21 为您从配置文件找到默认选项:{'choose': 2, 'desc': '更换源继续安装'}
      50.21 Run CMD Task:[sudo rm -rf /etc/apt/sources.list]
      [-][0.00s] CMD Result:success                                               
      50.21 
      50.21 删除一个资源文件
      50.21 Run CMD Task:[sudo rm -rf /etc/apt/sources.list.d]
      [-][0.00s] CMD Result:success                                               
      50.21 
      50.21 Run CMD Task:[sudo mkdir -p /etc/apt/sources.list.d]
      [-][0.00s] CMD Result:success                                               
      50.21 
      50.21 Run CMD Task:[dpkg --print-architecture]
      [-][0.00s] CMD Result:success                                               
      50.71 
      50.71 检测到当前系统:ubuntu 架构:amd64 代号:jammy,正在为你搜索适合的源...
      52.11 搜索到可用源:['https://mirrors.tuna.tsinghua.edu.cn/ubuntu', 'https://mirrors.163.com/ubuntu', 'https://mirrors.ustc.edu.cn/ubuntu', 'https://archive.ubuntu.com/ubuntu', 'https://mirrors.kernel.org/ubuntu', 'http://mirrors.tuna.tsinghua.edu.cn/ubuntu', 'http://mirrors.163.com/ubuntu', 'http://mirrors.ustc.edu.cn/ubuntu', 'http://archive.ubuntu.com/ubuntu', 'http://mirrors.kernel.org/ubuntu']
      53.12 接下来将进行自动测速以为您选择最快的源:
      76.18 - https://mirrors.tuna.tsinghua.edu.cn/ubuntu             延时:0.44s
      76.18 - https://mirrors.163.com/ubuntu          超时
      76.18 - https://mirrors.ustc.edu.cn/ubuntu              延时:0.12s
      76.18 - https://archive.ubuntu.com/ubuntu               超时
      76.18 - https://mirrors.kernel.org/ubuntu               延时:0.81s
      76.18 - http://mirrors.tuna.tsinghua.edu.cn/ubuntu              延时:0.38s
      76.18 - http://mirrors.163.com/ubuntu           延时:0.12s
      76.18 - http://mirrors.ustc.edu.cn/ubuntu               延时:0.11s
      76.18 - http://archive.ubuntu.com/ubuntu                超时
      76.18 - http://mirrors.kernel.org/ubuntu                延时:0.84s
      76.18 为您选择最快镜像源:http://mirrors.ustc.edu.cn/ubuntu
      76.18 创建文件:/etc/apt/sources.list
      76.18 替换镜像源完成,尝试进行更新....
      76.86 Run CMD Task:[sudo apt update]
      [-][52.22s] CMD Result:success                                               em.64 Packages [1150 kB]B]
      129.0 
      129.0 搞定了,不信你看,累死宝宝了,还不快去给小鱼点个赞~
      129.0 ['Get:1 http://mirrors.ustc.edu.cn/ubuntu jammy InRelease [270 kB]', 'Get:2 http://mirrors.ustc.edu.cn/ubuntu jammy-updates InRelease [128 kB]', 'Get:3 http://mirrors.ustc.edu.cn/ubuntu jammy-backports InRelease [127 kB]', 'Get:4 http://mirrors.ustc.edu.cn/ubuntu jammy-security InRelease [129 kB]', 'Get:5 http://mirrors.ustc.edu.cn/ubuntu jammy/restricted amd64 Packages [164 kB]', 'Get:6 http://mirrors.ustc.edu.cn/ubuntu jammy/universe amd64 Packages [17.5 MB]', 'Get:7 http://mirrors.ustc.edu.cn/ubuntu jammy/multiverse amd64 Packages [266 kB]', 'Get:8 http://mirrors.ustc.edu.cn/ubuntu jammy/main amd64 Packages [1792 kB]', 'Get:9 http://mirrors.ustc.edu.cn/ubuntu jammy-updates/restricted amd64 Packages [3108 kB]', 'Get:10 http://mirrors.ustc.edu.cn/ubuntu jammy-updates/universe amd64 Packages [1439 kB]', 'Get:11 http://mirrors.ustc.edu.cn/ubuntu jammy-updates/multiverse amd64 Packages [51.8 kB]', 'Get:12 http://mirrors.ustc.edu.cn/ubuntu jammy-updates/main amd64 Packages [2541 kB]', 'Get:13 http://mirrors.ustc.edu.cn/ubuntu jammy-backports/main amd64 Packages [81.4 kB]', 'Get:14 http://mirrors.ustc.edu.cn/ubuntu jammy-backports/universe amd64 Packages [33.7 kB]', 'Get:15 http://mirrors.ustc.edu.cn/ubuntu jammy-security/restricted amd64 Packages [3030 kB]', 'Get:16 http://mirrors.ustc.edu.cn/ubuntu jammy-security/main amd64 Packages [2267 kB]', 'Get:17 http://mirrors.ustc.edu.cn/ubuntu jammy-security/multiverse amd64 Packages [44.7 kB]', 'Get:18 http://mirrors.ustc.edu.cn/ubuntu jammy-security/universe amd64 Packages [1150 kB]', 'Fetched 34.1 MB in 50s (681 kB/s)', 'Reading package lists...', 'Building dependency tree...', 'Reading state information...', "9 packages can be upgraded. Run 'apt list --upgradable' to see them."]
      129.0 镜像更新完成.....
      129.0 RUN Choose Task:[请输入括号内的数字]
      129.9 请问是否添加ROS和ROS2源?
      129.9 [1]:添加ROS/ROS2源
      130.0 [2]:不添加ROS/ROS2源
      130.0 [0]:quit
      130.3 为您从配置文件找到默认选项:{'choose': 1, 'desc': '清理三方源'}
      130.3 小鱼:检测当前系统ubuntu22.04:jammy 支持一键安装ROS
      130.3 ============正在添加ROS源密钥=================
      130.3 Run CMD Task:[sudo apt update]
      [-][2.97s] CMD Result:success                                               em.
      133.6 
      133.6 Run CMD Task:[sudo apt search curl ]
      [-][3.48s] CMD Result:success                                               ust source codeon-osx"
      137.2 
      137.2 Run CMD Task:[sudo apt install curl -y]
      [-][5.43s] CMD Result:success                                               .2_amd64.deb ......md64 2.1.27+dfsg2-3ubuntu1.2 [68.8 kB]]]
      142.7 
      142.7 Run CMD Task:[sudo apt search gnupg2 ]
      [-][2.63s] CMD Result:success                                               package)
      145.4 
      145.4 Run CMD Task:[sudo apt install gnupg2 -y]
      [-][8.98s] CMD Result:success                                               .deb ...pg2 all 2.2.27-3ubuntu2.1 [5548 B]7.5 kB]
      154.7 
      154.7 正在挑选最快的密钥服务:['https://gitee.com/ohhuo/rosdistro/raw/master/ros.asc', 'https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc']
      154.7 - https://gitee.com/ohhuo/rosdistro/raw/master/ros.asc            延时:0.20s
      154.7 - https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc          超时
      154.7 已自动选择最快密钥服务:https://gitee.com/ohhuo/rosdistro/raw/master/ros.asc
      154.7 Run CMD Task:[curl -s https://gitee.com/ohhuo/rosdistro/raw/master/ros.asc | sudo apt-key add -]
      [-][0.56s] CMD Result:success                                               pg.d instead (see apt-key(8)).
      155.1 
      155.1 Run CMD Task:[curl -s https://gitee.com/ohhuo/rosdistro/raw/master/ros.asc | sudo gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/ros.gpg --import]
      [-][0.29s] CMD Result:success                                               ndation.org>" imported
      155.8 
      155.8 Run CMD Task:[sudo chmod 644 /etc/apt/trusted.gpg.d/ros.gpg]
      [-][0.00s] CMD Result:success                                               
      155.8 
      155.8 Run CMD Task:[dpkg --print-architecture]
      [-][0.01s] CMD Result:success                                               
      156.5 
      156.5 根据您的系统,为您推荐安装源为['http://mirrors.tuna.tsinghua.edu.cn/ros2/ubuntu/']
      156.5 创建文件:/etc/apt/sources.list.d/ros-fish.list
      156.5 Run CMD Task:[sudo apt update]
      [-][4.02s] CMD Result:success                                               em.64 Packages [1605 kB]
      160.9 
      160.9 Run CMD Task:[sudo apt search ros-base ]
      [-][3.22s] CMD Result:success                                               ctionalities like tf2 and urdf.roker using the MQTT protocol.
      163.7 
      163.7 恭喜,成功添加ROS源,接下来可以使用apt安装ROS或者使用[1]一键安装ROS安装!
      163.7 欢迎加入机器人学习交流QQ群:438144612(入群口令:一键安装)
      165.5 鱼香小铺正式开业,最低499可入手一台能建图会导航的移动机器人,淘宝搜店:鱼香ROS 或打开链接查看:https://item.taobao.com/item.htm?id=696573635888
      165.7 如在使用过程中遇到问题,请打开:https://fishros.org.cn/forum 进行反馈
      ------
      Dockerfile:25
      --------------------
        24 |     # 一键换源
        25 | >>> RUN apt update \
        26 | >>>     && apt install wget python3 python3-yaml -y python3-distro\
        27 | >>>     && echo "chooses:\n" > fish_install.yaml \
        28 | >>>     && echo "- {choose: 5, desc: '一键安装:ROS(支持ROS和ROS2,树莓派Jetson)'}\n" >> fish_install.yaml \
        29 | >>>     && echo "- {choose: 2, desc: 更换源继续安装}\n" >> fish_install.yaml \
        30 | >>>     && echo "- {choose: 1, desc: 清理三方源}\n" >> fish_install.yaml \
        31 | >>>     && wget http://fishros.com/install  -O fishros && /bin/bash fishros \
        32 | >>>     # 进行最后的清理
        33 | >>>     && rm -rf fish_install.yaml \
        34 | >>>     && rm -rf /var/lib/apt/lists/*  /tmp/* /var/tmp/* \
        35 | >>>     && apt-get clean && apt autoclean 
        36 |     
      --------------------
      ERROR: failed to solve: process "/bin/sh -c apt update     && apt install wget python3 python3-yaml -y python3-distro    && echo \"chooses:\\n\" > fish_install.yaml     && echo \"- {choose: 5, desc: '一键安装:ROS(支持ROS和ROS2,树莓派Jetson)'}\\n\" >> fish_install.yaml     && echo \"- {choose: 2, desc: 更换源继续安装}\\n\" >> fish_install.yaml     && echo \"- {choose: 1, desc: 清理三方源}\\n\" >> fish_install.yaml     && wget http://fishros.com/install  -O fishros && /bin/bash fishros     && rm -rf fish_install.yaml     && rm -rf /var/lib/apt/lists/*  /tmp/* /var/tmp/*     && apt-get clean && apt autoclean" did not complete successfully: exit code: 1
      
      S 1 条回复 最后回复 回复 引用 0
      • S
        shangui @shangui
        最后由 编辑

        @小鱼
        大佬帮忙看看,感谢

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

          @shangui eiyaya 我改改

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

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

            @shangui 再试试

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

            S 1 条回复 最后回复 回复 引用 0
            • S
              shangui @小鱼
              最后由 编辑

              @小鱼 好像可以跑了,谢谢鱼总

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

                @shangui 客气

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

                1 条回复 最后回复 回复 引用 0
                • 小伊小 小伊 将这个主题转为问答主题,在
                • 小伊小 小伊 将这个主题标记为已解决,在
                • 第一个帖子
                  最后一个帖子
                皖ICP备16016415号-7
                Powered by NodeBB | 鱼香ROS