小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
换源更新失败
-
换源后更新失败,第三次开始切换源,尝试更换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]
The following signatures couldn't be verified because the public key is not[|] The following signatures couldn't be verified because the public key is not[-]Result:code:100apt更新失败,后续程序可能会继续尝试...,['\n', 'WARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n', '\n', '\n', "(appstreamcli:9296): GLib-CRITICAL **: 22:48:48.089: 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:9296): GLib-CRITICAL **: 22:48:48.089: g_variant_new_variant: assertion 'value != NULL' failed\n", '\n', '(appstreamcli:9296): GLib-ERROR **: 22:48:48.089: g_variant_new_parsed: 11-13:invalid GVariant format string\n', 'Trace/breakpoint trap (core dumped)\n', "W: GPG error: http://packages.ros.org/ros/ubuntu bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F42ED6FBAB17C654\n", "E: The repository 'http://packages.ros.org/ros/ubuntu bionic InRelease' is not signed.\n", "W: GPG error: http://packages.ros.org/ros2/ubuntu bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F42ED6FBAB17C654\n", "E: The repository 'http://packages.ros.org/ros2/ubuntu bionic InRelease' is not signed.\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]
[/] Certificate verification failed: The certificate is NOT trusted. The name in the certificate does not match the expected. Could not handshake: Error in th[|] Certificate verification failed: The certificate is NOT trusted. The name in the certificate does not match the expected. Could not handshake: Error in th[-]Result:code:100 0 443]检测到发生证书校验错误['\n', 'WARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n', '\n', '\n', "(appstreamcli:9595): GLib-CRITICAL **: 22:48:56.780: 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:9595): GLib-CRITICAL **: 22:48:56.780: g_variant_new_variant: assertion 'value != NULL' failed\n", '\n', '(appstreamcli:9595): GLib-ERROR **: 22:48:56.780: g_variant_new_parsed: 11-13:invalid GVariant format string\n', 'Trace/breakpoint trap (core dumped)\n', "E: The repository 'https://packages.ros.org/ros/ubuntu bionic Release' does not have a Release file.\n", "E: The repository 'https://packages.ros.org/ros2/ubuntu bionic Release' does not have a Release file.\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'],自动取消https校验,如有需要请手动删除:rm /etc/apt/apt.conf.d/99verify-peer.conf
Run CMD Task:[touch /etc/apt/apt.conf.d/99verify-peer.conf]
[-]Result:successRun CMD Task:[echo "Acquire { https::Verify-Peer false }" > /etc/apt/apt.conf.d/99verify-peer.conf]
[-]Result:successRun CMD Task:[sudo apt update]
The following signatures couldn't be verified because the public key is not[|] The following signatures couldn't be verified because the public key is not[-]Result:code:100apt更新失败,后续程序可能会继续尝试...,['\n', 'WARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n', '\n', '\n', "(appstreamcli:9999): GLib-CRITICAL **: 22:49:09.331: 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:9999): GLib-CRITICAL **: 22:49:09.331: g_variant_new_variant: assertion 'value != NULL' failed\n", '\n', '(appstreamcli:9999): GLib-ERROR **: 22:49:09.331: g_variant_new_parsed: 11-13:invalid GVariant format string\n', 'Trace/breakpoint trap (core dumped)\n', "W: GPG error: https://packages.ros.org/ros/ubuntu bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F42ED6FBAB17C654\n", "E: The repository 'https://packages.ros.org/ros/ubuntu bionic InRelease' is not signed.\n", "W: GPG error: https://packages.ros.org/ros2/ubuntu bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F42ED6FBAB17C654\n", "E: The repository 'https://packages.ros.org/ros2/ubuntu bionic InRelease' is not signed.\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]
The following signatures couldn't be verified because the public key is not[|] The following signatures couldn't be verified because the public key is not[-]Result:code:100apt更新失败,后续程序可能会继续尝试...,['\n', 'WARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n', '\n', '\n', "(appstreamcli:10415): GLib-CRITICAL **: 22:49:17.813: 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:10415): GLib-CRITICAL **: 22:49:17.813: g_variant_new_variant: assertion 'value != NULL' failed\n", '\n', '(appstreamcli:10415): GLib-ERROR **: 22:49:17.813: g_variant_new_parsed: 11-13:invalid GVariant format string\n', 'Trace/breakpoint trap (core dumped)\n', "W: GPG error: https://packages.ros.org/ros/ubuntu bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F42ED6FBAB17C654\n", "E: The repository 'https://packages.ros.org/ros/ubuntu bionic InRelease' is not signed.\n", "W: GPG error: https://packages.ros.org/ros2/ubuntu bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F42ED6FBAB17C654\n", "E: The repository 'https://packages.ros.org/ros2/ubuntu bionic InRelease' is not signed.\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 -
@1183328510 在 换源更新失败 中说:
NO_PUBKEY F42ED6FBAB17C654\
注意这里
@小鱼 在 一键安装遇到NO_PUBKEY错误该怎么办? 中说:
答案就是手动的添加KEY
比如说缺少DCC9EFBF77E11517,用下面的这句话
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys DCC9EFBF77E11517根据你的错误提示,可劲的添加吧