小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
一键安装换源失败
-
wget http://fishros.com/install -O fishros && . fishros
--2023-03-01 14:21:57-- 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-03-01 14:21:57-- http://fishros.com/install/
再次使用存在的到 fishros.com:80 的连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度: 582 [application/octet-stream]
正在保存至: “fishros”fishros 100%[===================>] 582 --.-KB/s 用时 0s
2023-03-01 14:21:57 (39.0 MB/s) - 已保存 “fishros” [582/582])
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
python3-yaml 已经是最新版 (3.12-1build2)。
python3-distro 已经是最新版 (1.0.1-2)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 696 个软件包未被升级。
--2023-03-01 14:21:58-- 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
长度: 42195 (41K) [application/octet-stream]
正在保存至: “/tmp/fishinstall/tools/base.py”/tmp/fishinstall/to 100%[===================>] 41.21K --.-KB/s 用时 0.09s
2023-03-01 14:21:58 (472 KB/s) - 已保存 “/tmp/fishinstall/tools/base.py” [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-01 14:22:05-- http://fishros.com/install/install1s/tools/tool_install_ros.py
正在解析主机 fishros.com (fishros.com)... 139.9.131.171
正在连接 fishros.com (fishros.com)|139.9.131.171|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度: 19050 (19K) [application/octet-stream]
正在保存至: “/tmp/fishinstall/tools/tool_install_ros.py”/tmp/fishinstall/to 100%[===================>] 18.60K --.-KB/s 用时 0.04s
2023-03-01 14:22:05 (448 KB/s) - 已保存 “/tmp/fishinstall/tools/tool_install_ros.py” [19050/19050])
--2023-03-01 14:22:05-- http://fishros.com/install/install1s/tools/tool_config_rosenv.py
正在解析主机 fishros.com (fishros.com)... 139.9.131.171
正在连接 fishros.com (fishros.com)|139.9.131.171|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度: 2457 (2.4K) [application/octet-stream]
正在保存至: “/tmp/fishinstall/tools/tool_config_rosenv.py”/tmp/fishinstall/to 100%[===================>] 2.40K --.-KB/s 用时 0s
2023-03-01 14:22:05 (146 MB/s) - 已保存 “/tmp/fishinstall/tools/tool_config_rosenv.py” [2457/2457])
--2023-03-01 14:22:05-- http://fishros.com/install/install1s/tools/tool_config_system_source.py
正在解析主机 fishros.com (fishros.com)... 139.9.131.171
正在连接 fishros.com (fishros.com)|139.9.131.171|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度: 7511 (7.3K) [application/octet-stream]
正在保存至: “/tmp/fishinstall/tools/tool_config_system_source.py”/tmp/fishinstall/to 100%[===================>] 7.33K --.-KB/s 用时 0s
2023-03-01 14:22:05 (20.2 MB/s) - 已保存 “/tmp/fishinstall/tools/tool_config_system_source.py” [7511/7511])
欢迎使用一键安装ROS和ROS2,支持树莓派Jetson,本工具由作者小鱼提供
欢迎使用ROS开箱子工具,本工具由[鱼香ROS]小鱼贡献..
小鱼:检测当前系统ubuntu18.04:bionic 支持一键安装ROS
=========接下来这一步很重要,如果不知道怎么选请选择1========
RUN Choose Task:[请输入括号内的数字]
首次安装一定要换源并清理三方源,换源!!!系统默认国外源容易失败!!
[1]:更换系统源再继续安装
[2]:不更换继续安装
[0]:quit
请输入[]内的数字以选择:2
Run CMD Task:[sudo apt update]
[-]Result:code:100 EY F42ED6FBAB17C654[4,680 B]apt更新失败,后续程序可能会继续尝试...,['\n', 'WARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n', '\n', '\n', "(appstreamcli:6352): GLib-CRITICAL **: 14:22:21.322: g_variant_builder_end: assertion '!GVSB(builder)->uniform_item_types || GVSB(builder)->prev_item_type != NULL || g_variant_type_is_definite (GVSB(builder)->type)' failed\n", '\n', "(appstreamcli:6352): GLib-CRITICAL **: 14:22:21.322: g_variant_new_variant: assertion 'value != NULL' failed\n", '\n', '(appstreamcli:6352): GLib-ERROR **: 14:22:21.322: g_variant_new_parsed: 11-13:invalid GVariant format string\n', 'Trace/breakpoint trap (core dumped)\n', 'W: GPG 错误:https://packages.ros.org/ros/ubuntu bionic InRelease: 由于没有公钥,无法验证下列签名: NO_PUBKEY F42ED6FBAB17C654\n', 'E: 仓库 “https://packages.ros.org/ros/ubuntu bionic InRelease” 没有数字签名。\n', 'W: GPG 错误:https://packages.ros.org/ros2/ubuntu bionic InRelease: 由于没有公钥,无法验证下列签名: NO_PUBKEY F42ED6FBAB17C654\n', 'E: 仓库 “https://packages.ros.org/ros2/ubuntu bionic InRelease” 没有数字签名。\n', "E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli; then appstreamcli refresh-cache > /dev/null; fi'\n", 'E: Sub-process returned an error code\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 rm -rf /etc/apt/sources.list.d/ros-fish.list]
[-]Result:successRun CMD Task:[sudo apt update]
[|]获取:2 http://mirrors.tuna.tsinghua.edu.cn/ros2/ubuntu bionic InRelease [4,68[]获取:5 http://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu bionic Release [3,798 B[|]获取:8 http://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu bionic Release.gpg [833[-]Result:code:100 /ros/ubuntu bionic Release.gpgapt更新失败,后续程序可能会继续尝试...,['\n', 'WARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n', '\n', '\n', "(appstreamcli:6759): GLib-CRITICAL **: 14:22:24.543: g_variant_builder_end: assertion '!GVSB(builder)->uniform_item_types || GVSB(builder)->prev_item_type != NULL || g_variant_type_is_definite (GVSB(builder)->type)' failed\n", '\n', "(appstreamcli:6759): GLib-CRITICAL **: 14:22:24.543: g_variant_new_variant: assertion 'value != NULL' failed\n", '\n', '(appstreamcli:6759): GLib-ERROR **: 14:22:24.543: g_variant_new_parsed: 11-13:invalid GVariant format string\n', 'Trace/breakpoint trap (core dumped)\n', 'W: GPG 错误:http://mirrors.tuna.tsinghua.edu.cn/ros2/ubuntu bionic InRelease: 由于没有公钥,无法验证下列签名: NO_PUBKEY F42ED6FBAB17C654\n', 'E: 仓库 “http://mirrors.tuna.tsinghua.edu.cn/ros2/ubuntu bionic InRelease” 没有数字签名。\n', 'W: GPG 错误:http://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu bionic Release: 由于没有公钥,无法验证下列签名: NO_PUBKEY F42ED6FBAB17C654\n', 'E: 仓库 “http://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu bionic Release” 没有数字签名。\n', "E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli; then appstreamcli refresh-cache > /dev/null; fi'\n", 'E: Sub-process returned an error code\n']
Run CMD Task:[sudo apt-cache search ros-base ]
[-]Result:success e development metapackageKerberos换源后更新失败,第二次开始切换源,尝试更换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:successRun CMD Task:[sudo apt update]
[-]Result:code:100 untu bionic Release.gpg [833 B]]apt更新失败,后续程序可能会继续尝试...,['\n', 'WARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n', '\n', '\n', "(appstreamcli:7183): GLib-CRITICAL **: 14:22:31.914: g_variant_builder_end: assertion '!GVSB(builder)->uniform_item_types || GVSB(builder)->prev_item_type != NULL || g_variant_type_is_definite (GVSB(builder)->type)' failed\n", '\n', "(appstreamcli:7183): GLib-CRITICAL **: 14:22:31.914: g_variant_new_variant: assertion 'value != NULL' failed\n", '\n', '(appstreamcli:7183): GLib-ERROR **: 14:22:31.914: g_variant_new_parsed: 11-13:invalid GVariant format string\n', 'Trace/breakpoint trap (core dumped)\n', 'W: GPG 错误:https://repo.huaweicloud.com/ros2/ubuntu bionic InRelease: 由于没有公钥,无法验证下列签名: NO_PUBKEY F42ED6FBAB17C654\n', 'E: 仓库 “https://repo.huaweicloud.com/ros2/ubuntu bionic InRelease” 没有数字签名。\n', 'W: GPG 错误:https://repo.huaweicloud.com/ros/ubuntu bionic Release: 由于没有公钥,无法验证下列签名: NO_PUBKEY F42ED6FBAB17C654\n', 'E: 仓库 “https://repo.huaweicloud.com/ros/ubuntu bionic Release” 没有数字签名。\n', "E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli; then appstreamcli refresh-cache > /dev/null; fi'\n", 'E: Sub-process returned an error code\n']
Run CMD Task:[sudo apt-cache search ros-base ]
[-]Result:success e development metapackageKerberos换源后更新失败,第三次开始切换源,尝试更换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:successRun CMD Task:[sudo apt update]
[-]Result:code:100 EY F42ED6FBAB17C6544,680 B]apt更新失败,后续程序可能会继续尝试...,['\n', 'WARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n', '\n', '\n', "(appstreamcli:7592): GLib-CRITICAL **: 14:22:35.857: g_variant_builder_end: assertion '!GVSB(builder)->uniform_item_types || GVSB(builder)->prev_item_type != NULL || g_variant_type_is_definite (GVSB(builder)->type)' failed\n", '\n', "(appstreamcli:7592): GLib-CRITICAL **: 14:22:35.857: g_variant_new_variant: assertion 'value != NULL' failed\n", '\n', '(appstreamcli:7592): GLib-ERROR **: 14:22:35.857: g_variant_new_parsed: 11-13:invalid GVariant format string\n', 'Trace/breakpoint trap (core dumped)\n', 'W: GPG 错误:http://packages.ros.org/ros/ubuntu bionic InRelease: 由于没有公钥,无法验证下列签名: NO_PUBKEY F42ED6FBAB17C654\n', 'E: 仓库 “http://packages.ros.org/ros/ubuntu bionic InRelease” 没有数字签名。\n', 'W: GPG 错误:http://packages.ros.org/ros2/ubuntu bionic InRelease: 由于没有公钥,无法验证下列签名: NO_PUBKEY F42ED6FBAB17C654\n', 'E: 仓库 “http://packages.ros.org/ros2/ubuntu bionic InRelease” 没有数字签名。\n', "E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli; then appstreamcli refresh-cache > /dev/null; fi'\n", 'E: Sub-process returned an error code\n']
Run CMD Task:[sudo apt-cache search ros-base ]
[-]Result:success e development metapackageKerberos换源后更新失败,第四次开始切换源,尝试使用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:successRun CMD Task:[sudo apt update]
[-]Result:code:100 EY F42ED6FBAB17C654[4,680 B]apt更新失败,后续程序可能会继续尝试...,['\n', 'WARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n', '\n', '\n', "(appstreamcli:8002): GLib-CRITICAL **: 14:22:40.058: g_variant_builder_end: assertion '!GVSB(builder)->uniform_item_types || GVSB(builder)->prev_item_type != NULL || g_variant_type_is_definite (GVSB(builder)->type)' failed\n", '\n', "(appstreamcli:8002): GLib-CRITICAL **: 14:22:40.058: g_variant_new_variant: assertion 'value != NULL' failed\n", '\n', '(appstreamcli:8002): GLib-ERROR **: 14:22:40.058: g_variant_new_parsed: 11-13:invalid GVariant format string\n', 'Trace/breakpoint trap (core dumped)\n', 'W: GPG 错误:https://packages.ros.org/ros/ubuntu bionic InRelease: 由于没有公钥,无法验证下列签名: NO_PUBKEY F42ED6FBAB17C654\n', 'E: 仓库 “https://packages.ros.org/ros/ubuntu bionic InRelease” 没有数字签名。\n', 'W: GPG 错误:https://packages.ros.org/ros2/ubuntu bionic InRelease: 由于没有公钥,无法验证下列签名: NO_PUBKEY F42ED6FBAB17C654\n', 'E: 仓库 “https://packages.ros.org/ros2/ubuntu bionic InRelease” 没有数字签名。\n', "E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli; then appstreamcli refresh-cache > /dev/null; fi'\n", 'E: Sub-process returned an error code\n']
Run CMD Task:[sudo apt-cache search ros-base ]
[-]Result:success e development metapackageKerberosRun CMD Task:[sudo apt update]
[-]Result:code:100 EY F42ED6FBAB17C654[4,680 B]apt更新失败,后续程序可能会继续尝试...,['\n', 'WARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n', '\n', '\n', "(appstreamcli:8408): GLib-CRITICAL **: 14:22:44.278: g_variant_builder_end: assertion '!GVSB(builder)->uniform_item_types || GVSB(builder)->prev_item_type != NULL || g_variant_type_is_definite (GVSB(builder)->type)' failed\n", '\n', "(appstreamcli:8408): GLib-CRITICAL **: 14:22:44.278: g_variant_new_variant: assertion 'value != NULL' failed\n", '\n', '(appstreamcli:8408): GLib-ERROR **: 14:22:44.278: g_variant_new_parsed: 11-13:invalid GVariant format string\n', 'Trace/breakpoint trap (core dumped)\n', 'W: GPG 错误:https://packages.ros.org/ros/ubuntu bionic InRelease: 由于没有公钥,无法验证下列签名: NO_PUBKEY F42ED6FBAB17C654\n', 'E: 仓库 “https://packages.ros.org/ros/ubuntu bionic InRelease” 没有数字签名。\n', 'W: GPG 错误:https://packages.ros.org/ros2/ubuntu bionic InRelease: 由于没有公钥,无法验证下列签名: NO_PUBKEY F42ED6FBAB17C654\n', 'E: 仓库 “https://packages.ros.org/ros2/ubuntu bionic InRelease” 没有数字签名。\n', "E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli; then appstreamcli refresh-cache > /dev/null; fi'\n", 'E: Sub-process returned an error code\n']
四次换源后都失败了,请及时联系小鱼获取解决方案并处理!
Run CMD Task:[sudo apt-cache search ros-base ]
[-]Result:success e development metapackageKerberosRun CMD Task:[ls /opt/ros/False/setup.bash]
[-]Result:code:2安装失败了,请打开鱼香社区:https://fishros.org.cn/forum 在一键安装专区反馈问题...
Run CMD Task:[ls /opt/ros/False/setup.bash]
[-]Result:code:2欢迎加入机器人学习交流QQ群:686914208(入群口令:一键安装)
如在使用过程中遇到问题,请打开:https://fishros.org.cn/forum 进行反馈
ai-dog@WP:~$ -
@小鱼 在 一键安装遇到NO_PUBKEY错误该怎么办? 中说:
答案就是手动的添加KEY
比如说缺少DCC9EFBF77E11517,用下面的这句话
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys DCC9EFBF77E11517根据你的错误提示,可劲的添加吧