一键安装失败,apt更新失败
-
~$ wget http://fishros.com/install -O fishros && chmod +x fishros && sudo ./fishros
--2026-07-03 11:52:15-- http://fishros.com/install
正在解析主机 fishros.com (fishros.com)... 47.119.165.169
正在连接 fishros.com (fishros.com)|47.119.165.169|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 301 Moved Permanently
位置:http://fishros.com/install/ [跟随至新的 URL]
--2026-07-03 11:52:16-- http://fishros.com/install/
再次使用存在的到 fishros.com:80 的连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度: 994 [application/octet-stream]
正在保存至: ‘fishros’fishros 100%[=======================================================>] 994 --.-KB/s 用时 0s
2026-07-03 11:52:16 (86.1 MB/s) - 已保存 ‘fishros’ [994/994])
./fishros: 5: source: not found
./fishros: 8: [: -ne: unexpected operator
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成
python3-distro 已经是最新版 (1.7.0-1)。
python3-yaml 已经是最新版 (5.4.1-1ubuntu1)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 8 个软件包未被升级。
--2026-07-03 11:52:17-- http://mirror.fishros.com/install/tools/base.py
正在解析主机 mirror.fishros.com (mirror.fishros.com)... 47.119.165.169
正在连接 mirror.fishros.com (mirror.fishros.com)|47.119.165.169|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度: 56547 (55K) [application/octet-stream]
正在保存至: ‘/tmp/fishinstall/tools/base.py’/tmp/fishinstall/tools/base.py 100%[=======================================================>] 55.22K 265KB/s 用时 0.2s
2026-07-03 11:52:17 (265 KB/s) - 已保存 ‘/tmp/fishinstall/tools/base.py’ [56547/56547])
--2026-07-03 11:52:17-- http://mirror.fishros.com/install/tools/translation/translator.py
正在解析主机 mirror.fishros.com (mirror.fishros.com)... 47.119.165.169
正在连接 mirror.fishros.com (mirror.fishros.com)|47.119.165.169|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度: 4232 (4.1K) [application/octet-stream]
正在保存至: ‘/tmp/fishinstall/tools/translation/translator.py’/tmp/fishinstall/tools/translat 100%[=======================================================>] 4.13K --.-KB/s 用时 0s
2026-07-03 11:52:17 (296 MB/s) - 已保存 ‘/tmp/fishinstall/tools/translation/translator.py’ [4232/4232])
Run CMD Task:[dpkg --print-architecture]
[-][0.00s] CMD Result:successRun CMD Task:[mkdir -p /tmp/fishinstall/tools/translation/assets]
[-][0.00s] CMD Result:successRun CMD Task:[wget http://mirror.fishros.com/install/tools/translation/assets/zh_CN.py -O /tmp/fishros_lang_zh_CN.py --no-check-certificate]
[-][0.30s] CMD Result:successRun CMD Task:[mkdir -p $(dirname /tmp/fishinstall/tools/translation/assets/zh_CN.py)]
[-][0.00s] CMD Result:successRun CMD Task:[mv /tmp/fishros_lang_zh_CN.py /tmp/fishinstall/tools/translation/assets/zh_CN.py]
[-][0.00s] CMD Result:successRun CMD Task:[wget http://mirror.fishros.com/install/tools/translation/assets/en_US.py -O /tmp/fishros_lang_en_US.py --no-check-certificate]
[-][0.29s] CMD Result:successRun CMD Task:[mkdir -p $(dirname /tmp/fishinstall/tools/translation/assets/en_US.py)]
[-][0.00s] CMD Result:successRun CMD Task:[mv /tmp/fishros_lang_en_US.py /tmp/fishinstall/tools/translation/assets/en_US.py]
[-][0.00s] CMD Result:successRun CMD Task:[wget https://fishros.org.cn/forum/topic/1733 -O /tmp/t1733 -q --no-check-certificate --timeout 10 && rm -rf /tmp/t1733]
[-][0.70s] CMD Result:successLanguage switched to the current country's language:':en_US
Base check passed...====== Welcome to the One-Click Installation Tool, life is short, save your time and energy! =======
====== One-click installation has been open sourced, please feel free to use: https://github.com/fishros/install =======.-~~~~~~~~~-._ _.-~~~~~~~~~-. __.' ~. .~ `.__ .'// 开卷有益 \./ 书山有路 \ `. .'// 可以多看看小鱼的文章 | 关注B站鱼香ROS机器人 \ `. .'// .-~~~~~~~~~~~~~~-._ | _,-~~~~~~~~~~~. \`. .'//.-" `-. | .-' "-.\`. .'//______.============-.. \ | / ..-============.______\`. .'______________________________\|/______________________________` ----------------------------------------------------------------------RUN Choose Task:[Please enter the number in brackets]
--- A variety of tools just waiting to be used ---
ROS Related:
[1]:一键安装(推荐):ROS(支持ROS/ROS2,树莓派Jetson)
[3]:一键安装:rosdep(小鱼的rosdepc,又快又好用)
[4]:一键配置:ROS环境(快速更新ROS环境设置,自动生成环境选择)
[9]:一键安装:Cartographer(18 20测试通过,16未测. updateTime 20240125)
[11]:一键安装:ROS Docker版(支持所有版本ROS/ROS2)
[16]:Install: System shipped ROS (!!Warning!! Only for special cases)AI Section:
[6]:一键安装:NodeJs环境
[14]:一键安装:科学上网代理工具
[18]:一键安装/卸载:OpenCode(AI编程助手)Common Software:
[2]:一键安装:github桌面版(小鱼常用的github客户端)
[7]:一键安装:VsCode开发工具
[8]:一键安装:Docker
[10]:一键安装:微信(可以在Linux上使用的微信)
[12]:一键安装:PlateformIO MicroROS开发环境(支持Fishbot)
[15]:一键安装:QQ for LinuxConfiguration Tools:
[5]:一键配置:系统源(更换系统源,支持全版本Ubuntu系统)
[13]:一键配置:python国内源
[17]:一键配置: Docker代理(支持VPN+代理服务两种模式)Type the number in [] to choose a function:1
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.33s] CMD Result:successRun CMD Task:[wget http://mirror.fishros.com/install/tools/tool_config_rosenv.py -O /tmp/fishinstall/tools/tool_config_rosenv.py --no-check-certificate]
[-][0.28s] CMD Result:successRun 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.40s] CMD Result:successWelcome to use 一键安装ROS和ROS2,支持树莓派Jetson, this tool is brought to you by 小鱼
欢迎使用ROS开箱子工具,本工具由[鱼香ROS]小鱼贡献..
小鱼:检测当前系统ubuntu22.04:jammy 支持一键安装ROS
=========接下来这一步很很很很重要,如果不知道怎么选请选择1========
RUN Choose Task:[Please enter the number in brackets]
新手或首次安装一定要一定要一定要换源并清理三方源,换源!!!系统默认国外源容易失败!!
[1]:更换系统源再继续安装
[2]:不更换继续安装
0:quit
Type the number in [] to choose a function:1
RUN Choose Task:[Please enter the number in brackets]
请选择换源方式,如果不知道选什么请选2
[1]:仅更换系统源
[2]:更换系统源并清理第三方源
0:quit
Type the number in [] to choose a function:2
Run CMD Task:[sudo rm -rf /etc/apt/sources.list]
[-][0.00s] CMD Result:success删除一个资源文件
Run CMD Task:[sudo rm -rf /etc/apt/sources.list.d]
[-][0.00s] CMD Result:successRun CMD Task:[sudo mkdir -p /etc/apt/sources.list.d]
[-][0.00s] CMD Result:success源选择方式说明:
- 自动测速选择最快的源: 系统将自动测试各个源的速度,并选择最快的源
- 根据测速结果手动选择源: 系统将测试各个源的速度,然后让您从测试结果中选择
RUN Choose Task:[Please enter the number in brackets]
请选择源的选择方式
[1]:自动测速选择最快的源
[2]:根据测速结果手动选择源
0:quit
Type the number in [] to choose a function:1
Run CMD Task:[dpkg --print-architecture]
[-][0.00s] CMD Result:success
检测到当前系统:ubuntu 架构:amd64 代号:jammy,正在为你搜索适合的源...
搜索到可用源:['https://mirrors.tuna.tsinghua.edu.cn/ubuntu', 'https://mirror.sysu.edu.cn/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://mirror.sysu.edu.cn/ubuntu/', 'http://mirrors.ustc.edu.cn/ubuntu', 'http://archive.ubuntu.com/ubuntu', 'http://mirrors.kernel.org/ubuntu']
接下来将进行自动测速以为您选择最快的源:- https://mirrors.tuna.tsinghua.edu.cn/ubuntu 延时:2.05s
- https://mirror.sysu.edu.cn/ubuntu/ 延时:0.51s
- https://mirrors.ustc.edu.cn/ubuntu 延时:1.75s
- https://archive.ubuntu.com/ubuntu 延时:3.98s
- https://mirrors.kernel.org/ubuntu 延时:3.17s
- http://mirrors.tuna.tsinghua.edu.cn/ubuntu 延时:1.84s
- http://mirror.sysu.edu.cn/ubuntu/ 延时:0.52s
- http://mirrors.ustc.edu.cn/ubuntu 延时:1.56s
- http://archive.ubuntu.com/ubuntu 延时:3.78s
- http://mirrors.kernel.org/ubuntu 延时:2.23s
为您选择最快镜像源:https://mirror.sysu.edu.cn/ubuntu/
Creating file:/etc/apt/sources.list
Run CMD Task:[sudo mv /tmp/cba5a07a-8782-4513-a8da-d297316d1def_sources.list /etc/apt/sources.list]
[-][0.00s] CMD Result:success
替换镜像源完成,尝试进行更新....
Run CMD Task:[sudo apt update]
[-][11.88s] CMD Result:success搞定了,不信你看,累死宝宝了,还不快去给小鱼点个赞~
['命中:1 https://mirror.sysu.edu.cn/ubuntu/ jammy InRelease', '命中:2 https://mirror.sysu.edu.cn/ubuntu/ jammy-updates InRelease', '命中:3 https://mirror.sysu.edu.cn/ubuntu/ jammy-backports InRelease', '命中:4 https://mirror.sysu.edu.cn/ubuntu/ jammy-security InRelease', '正在读取软件包列表...', '正在分析软件包的依赖关系树...', '正在读取状态信息...', '有 8 个软件包可以升级。请执行 ‘apt list --upgradable’ 来查看它们。']
镜像更新完成.....
============正在添加ROS源密钥=================
Run CMD Task:[sudo apt update]
[-][10.17s] CMD Result:successRun CMD Task:[sudo apt search curl ]
[/][0.59s] rust-1.76-lldb/jammy-updates,jammy-updates,jammy-security,jammy-security 1.76.0+dfsg0ubuntu1~bpo0-0ubuntu0.22.04.1 al[/][0.59s] rust-1.77-lldb/jammy-updates,jammy-updates,jammy-security,jammy-security 1.77.2+dfsg1ubuntu1~bpo0-0ubuntu0.22.04.1 al[/][0.59s] rust-1.78-lldb/jammy-updates,jammy-updates,jammy-security,jammy-security 1.78.0+dfsg1ubuntu1~bpo0-0ubuntu0.22.04.1 al[/][0.59s] rust-1.79-lldb/jammy-updates,jammy-updates,jammy-security,jammy-security 1.79.0+dfsg1ubuntu1~bpo0-0ubuntu0.22.04.1 al[/][0.59s] rust-1.80-lldb/jammy-updates,jammy-updates,jammy-security,jammy-security 1.80.1+dfsg0ubuntu1~bpo0-0ubuntu0.22.04.1 al[/][0.59s] rust-1.82-all/jammy-updates,jammy-updates,jammy-security,jammy-security 1.82.0+dfsg0ubuntu0~jammy-0ubuntu0.22.04.1 al[/][0.59s] rust-1.82-doc/jammy-updates,jammy-updates,jammy-security,jammy-security 1.82.0+dfsg0ubuntu0~jammy-0ubuntu0.22.04.1 al[|][0.59s] rust-1.82-gdb/jammy-updates,jammy-updates,jammy-security,jammy-security 1.82.0+dfsg0ubuntu0~jammy-0ubuntu0.22.04.1 al[/][0.59s] rust-1.82-lldb/jammy-updates,jammy-updates,jammy-security,jammy-security 1.82.0+dfsg0ubuntu0~jammy-0ubuntu0.22.04.1 a[|][0.59s] rust-1.82-src/jammy-updates,jammy-updates,jammy-security,jammy-security 1.82.0+dfsg0ubuntu0~jammy-0ubuntu0.22.04.1 al[/][0.59s] rust-1.83-lldb/jammy-updates,jammy-updates,jammy-security,jammy-security 1.83.0+dfsg0ubuntu2~bpo2-0ubuntu2.22.04.1 al[/][0.59s] rust-1.84-all/jammy-updates,jammy-updates,jammy-security,jammy-security 1.84.1+dfsg0ubuntu1~bpo10-0ubuntu4.22.04.1 al[/][0.59s] rust-1.84-doc/jammy-updates,jammy-updates,jammy-security,jammy-security 1.84.1+dfsg0ubuntu1~bpo10-0ubuntu4.22.04.1 al[|][0.59s] rust-1.84-gdb/jammy-updates,jammy-updates,jammy-security,jammy-security 1.84.1+dfsg0ubuntu1~bpo10-0ubuntu4.22.04.1 al[/][0.59s] rust-1.84-lldb/jammy-updates,jammy-updates,jammy-security,jammy-security 1.84.1+dfsg0ubuntu1~bpo10-0ubuntu4.22.04.1 a[|][0.59s] rust-1.84-src/jammy-updates,jammy-updates,jammy-security,jammy-security 1.84.1+dfsg0ubuntu1~bpo10-0ubuntu4.22.04.1 al[/][0.59s] rust-1.85-lldb/jammy-updates,jammy-updates,jammy-security,jammy-security 1.85.1+dfsg0ubuntu2~bpo0-0ubuntu1.22.04.1 al[-][0.59s] CMD Result:success allRun CMD Task:[sudo apt install curl -y]
[-][0.39s] CMD Result:successRun CMD Task:[sudo apt search gnupg2 ]
[-][0.56s] CMD Result:successRun CMD Task:[sudo apt install gnupg2 -y]
[-][0.38s] CMD Result:success正在挑选最快的密钥服务:['https://gitee.com/fishros/rosdistro/raw/master/ros.asc', 'https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc']
- https://gitee.com/fishros/rosdistro/raw/master/ros.asc 延时:0.67s
- https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc 超时
已自动选择最快密钥服务:https://gitee.com/fishros/rosdistro/raw/master/ros.asc
Run CMD Task:[command -v apt-key]
[-][0.00s] CMD Result:success
Run CMD Task:[curl -s https://gitee.com/fishros/rosdistro/raw/master/ros.asc | sudo apt-key add -]
[-][0.36s] CMD Result:code:2Run CMD Task:[curl -s https://gitee.com/fishros/rosdistro/raw/master/ros.asc | sudo apt-key add -]
[-][0.67s] CMD Result:code:2Run CMD Task:[sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F42ED6FBAB17C654]
[-][10.08s] CMD Result:code:2导入密钥失败,开始更换导入方式并二次尝试...
Run CMD Task:[sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F42ED6FBAB17C654]
[-][10.09s] CMD Result:code:2Run CMD Task:[curl -s https://gitee.com/fishros/rosdistro/raw/master/ros.asc | sudo gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/ros.gpg --import]
[-][0.57s] CMD Result:code:2Run CMD Task:[sudo chmod 644 /etc/apt/trusted.gpg.d/ros.gpg]
[-][0.00s] CMD Result:successRun CMD Task:[dpkg --print-architecture]
[-][0.00s] CMD Result:successRUN Choose Task:[Please enter the number in brackets]
检测到您的系统支持多个ROS镜像源,请选择您想要使用的ROS镜像源(默认清华):
[1]:中科大镜像源 (推荐国内用户使用)
[2]:清华镜像源 (容易被封禁)
[3]:华为镜像源
[4]:中山大学开源软件镜像站 (试运行)
[5]:ROS官方源 (国外用户或需要最新版本时使用)
0:quit
Type the number in [] to choose a function:1
您选择的镜像源: ustc
根据您的系统和选择,为您推荐安装源为['https://mirrors.ustc.edu.cn/ros2/ubuntu/']
Creating file:/etc/apt/sources.list.d/ros-fish.list
Run CMD Task:[sudo mv /tmp/7bd24bec-c3b2-4c26-893a-a02fab710dc3_ros-fish.list /etc/apt/sources.list.d/ros-fish.list]
[-][0.00s] CMD Result:successRun CMD Task:[sudo apt update]
[-][11.80s] CMD Result:code:100apt update failed, the subsequent program may continue to try...,[]
Run CMD Task:[sudo apt search ros-base ]
[-][0.58s] CMD Result:success换源后更新失败,您可以重新选择镜像源再尝试!
RUN Choose Task:[Please enter the number in brackets]
检测到您的系统支持多个ROS镜像源,请选择您想要使用的ROS镜像源(默认清华):
[1]:中科大镜像源 (推荐国内用户使用)
[2]:清华镜像源 (容易被封禁)
[3]:华为镜像源
[4]:中山大学开源软件镜像站 (试运行)
[5]:ROS官方源 (国外用户或需要最新版本时使用)
0:quit
Type the number in [] to choose a function: