小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
Ubuntu18.04一键Ros失败
-
hhh@ubuntu:~$ wget http://fishros.com/install -O fishros && bash fishros
--2023-03-09 19:07:39-- http://fishros.com/install
Resolving fishros.com (fishros.com)... 139.9.131.171
Connecting to fishros.com (fishros.com)|139.9.131.171|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://fishros.com/install/ [following]
--2023-03-09 19:07:39-- http://fishros.com/install/
Reusing existing connection to fishros.com:80.
HTTP request sent, awaiting response... 200 OK
Length: 582 [application/octet-stream]
Saving to: ‘fishros’fishros 100%[===================>] 582 --.-KB/s in 0s
2023-03-09 19:07:39 (99.2 MB/s) - ‘fishros’ saved [582/582]
[sudo] password for hhh:
Sorry, try again.
[sudo] password for hhh:
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-yaml is already the newest version (3.12-1build2).
The following NEW packages will be installed:
python3-distro
0 upgraded, 1 newly installed, 0 to remove and 724 not upgraded.
Need to get 11.2 kB of archives.
After this operation, 58.4 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 python3-distro all 1.0.1-2 [11.2 kB]
Fetched 11.2 kB in 1s (10.2 kB/s)
Selecting previously unselected package python3-distro.
(Reading database ... 112959 files and directories currently installed.)
Preparing to unpack .../python3-distro_1.0.1-2_all.deb ...
Unpacking python3-distro (1.0.1-2) ...
Setting up python3-distro (1.0.1-2) ...
--2023-03-09 19:07:55-- http://fishros.com/install/install1s/tools/base.py
Resolving fishros.com (fishros.com)... 139.9.131.171
Connecting to fishros.com (fishros.com)|139.9.131.171|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 42195 (41K) [application/octet-stream]
Saving to: ‘/tmp/fishinstall/tools/base.py’/tmp/fishinstall/to 100%[===================>] 41.21K --.-KB/s in 0.07s
2023-03-09 19:07:55 (604 KB/s) - ‘/tmp/fishinstall/tools/base.py’ saved [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-09 19:08:23-- http://fishros.com/install/install1s/tools/tool_install_ros.py
Resolving fishros.com (fishros.com)... 139.9.131.171
Connecting to fishros.com (fishros.com)|139.9.131.171|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 19050 (19K) [application/octet-stream]
Saving to: ‘/tmp/fishinstall/tools/tool_install_ros.py’/tmp/fishinstall/to 100%[===================>] 18.60K --.-KB/s in 0.06s
2023-03-09 19:08:24 (314 KB/s) - ‘/tmp/fishinstall/tools/tool_install_ros.py’ saved [19050/19050]
--2023-03-09 19:08:24-- http://fishros.com/install/install1s/tools/tool_config_rosenv.py
Resolving fishros.com (fishros.com)... 139.9.131.171
Connecting to fishros.com (fishros.com)|139.9.131.171|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2457 (2.4K) [application/octet-stream]
Saving to: ‘/tmp/fishinstall/tools/tool_config_rosenv.py’/tmp/fishinstall/to 100%[===================>] 2.40K --.-KB/s in 0s
2023-03-09 19:08:24 (376 MB/s) - ‘/tmp/fishinstall/tools/tool_config_rosenv.py’ saved [2457/2457]
--2023-03-09 19:08:24-- http://fishros.com/install/install1s/tools/tool_config_system_source.py
Resolving fishros.com (fishros.com)... 139.9.131.171
Connecting to fishros.com (fishros.com)|139.9.131.171|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7511 (7.3K) [application/octet-stream]
Saving to: ‘/tmp/fishinstall/tools/tool_config_system_source.py’/tmp/fishinstall/to 100%[===================>] 7.33K --.-KB/s in 0s
2023-03-09 19:08:24 (643 MB/s) - ‘/tmp/fishinstall/tools/tool_config_system_source.py’ saved [7511/7511]
欢迎使用一键安装ROS和ROS2,支持树莓派Jetson,本工具由作者小鱼提供
欢迎使用ROS开箱子工具,本工具由[鱼香ROS]小鱼贡献..
小鱼:检测当前系统ubuntu18.04:bionic 支持一键安装ROS
=========接下来这一步很重要,如果不知道怎么选请选择1========
RUN Choose Task:[请输入括号内的数字]
首次安装一定要换源并清理三方源,换源!!!系统默认国外源容易失败!!
[1]:更换系统源再继续安装
[2]:不更换继续安装
[0]:quit
请输入[]内的数字以选择:1
欢迎使用一键换源工具,本工具由[鱼香ROS]小鱼贡献..
RUN Choose Task:[请输入括号内的数字]
请选择换源方式,如果不知道选什么请选2
[1]:仅更换系统源
[2]:更换系统源并清理第三方源
[0]:quit
请输入[]内的数字以选择:2
Run CMD Task:[sudo rm -rf /etc/apt/sources.list]
[-]Result:success删除一个资源文件
Run CMD Task:[sudo rm -rf /etc/apt/sources.list.d]
[-]Result:successRun CMD Task:[sudo mkdir -p /etc/apt/sources.list.d]
[-]Result:successRun CMD Task:[dpkg --print-architecture]
[-]Result:success检测到当前系统架构为[amd64:bionic],正在为你更换对应源..
替换完成,尝试第一次更新....
Run CMD Task:[sudo apt update]
[]Get:5 https://mirrors.ustc.edu.cn/ubuntu bionic/main amd64 Packages [1,019 kB[/]Get:8 https://mirrors.ustc.edu.cn/ubuntu bionic/main amd64 DEP-11 Metadata [4[]Get:9 https://mirrors.ustc.edu.cn/ubuntu bionic/main DEP-11 48x48 Icons [118 [|]Get:10 https://mirrors.ustc.edu.cn/ubuntu bionic/main DEP-11 64x64 Icons [245[-]Get:11 https://mirrors.ustc.edu.cn/ubuntu bionic/restricted i386 Packages [9,[/]Get:12 https://mirrors.ustc.edu.cn/ubuntu bionic/restricted amd64 Packages [9[]Get:13 https://mirrors.ustc.edu.cn/ubuntu bionic/restricted Translation-en [3[|]Get:14 https://mirrors.ustc.edu.cn/ubuntu bionic/universe amd64 Packages [8,5[-]Get:15 https://mirrors.ustc.edu.cn/ubuntu bionic/universe i386 Packages [8,53[/]Get:16 https://mirrors.ustc.edu.cn/ubuntu bionic/universe Translation-en [4,9[]Get:17 https://mirrors.ustc.edu.cn/ubuntu bionic/universe amd64 DEP-11 Metada[|]Get:18 https://mirrors.ustc.edu.cn/ubuntu bionic/universe DEP-11 48x48 Icons [-]Get:19 https://mirrors.ustc.edu.cn/ubuntu bionic/universe DEP-11 64x64 Icons [/]Get:20 https://mirrors.ustc.edu.cn/ubuntu bionic/multiverse i386 Packages [14[]Get:21 https://mirrors.ustc.edu.cn/ubuntu bionic/multiverse amd64 Packages [1[|]Get:22 https://mirrors.ustc.edu.cn/ubuntu bionic/multiverse Translation-en [1[-]Get:23 https://mirrors.ustc.edu.cn/ubuntu bionic/multiverse amd64 DEP-11 Meta[/]Get:24 https://mirrors.ustc.edu.cn/ubuntu bionic/multiverse DEP-11 48x48 Icon[]Get:25 https://mirrors.ustc.edu.cn/ubuntu bionic/multiverse DEP-11 64x64 Icon[|]Get:26 https://mirrors.ustc.edu.cn/ubuntu bionic-updates/main i386 Packages [[-]Get:27 https://mirrors.ustc.edu.cn/ubuntu bionic-updates/main amd64 Packages [/]Get:28 https://mirrors.ustc.edu.cn/ubuntu bionic-updates/main Translation-en []Get:29 https://mirrors.ustc.edu.cn/ubuntu bionic-updates/main amd64 DEP-11 Me[|]Get:30 https://mirrors.ustc.edu.cn/ubuntu bionic-updates/main DEP-11 48x48 Ic[-]Get:31 https://mirrors.ustc.edu.cn/ubuntu bionic-updates/main DEP-11 64x64 Ic[/]Get:32 https://mirrors.ustc.edu.cn/ubuntu bionic-updates/restricted amd64 Pac[]Get:33 https://mirrors.ustc.edu.cn/ubuntu bionic-updates/restricted i386 Pack[|]Get:34 https://mirrors.ustc.edu.cn/ubuntu bionic-updates/restricted Translati[-]Get:35 https://mirrors.ustc.edu.cn/ubuntu bionic-updates/universe i386 Packag[/]Get:36 https://mirrors.ustc.edu.cn/ubuntu bionic-updates/universe amd64 Packa[]Get:37 https://mirrors.ustc.edu.cn/ubuntu bionic-updates/universe Translation[|]Get:38 https://mirrors.ustc.edu.cn/ubuntu bionic-updates/universe amd64 DEP-1[-]Get:39 https://mirrors.ustc.edu.cn/ubuntu bionic-updates/universe DEP-11 48x4[/]Get:40 https://mirrors.ustc.edu.cn/ubuntu bionic-updates/universe DEP-11 64x6[]Get:41 https://mirrors.ustc.edu.cn/ubuntu bionic-updates/multiverse amd64 Pac[|]Get:42 https://mirrors.ustc.edu.cn/ubuntu bionic-updates/multiverse i386 Pack[-]Get:43 https://mirrors.ustc.edu.cn/ubuntu bionic-updates/multiverse Translati[/]Get:44 https://mirrors.ustc.edu.cn/ubuntu bionic-updates/multiverse amd64 DEP[]Get:45 https://mirrors.ustc.edu.cn/ubuntu bionic-updates/multiverse DEP-11 48[|]Get:46 https://mirrors.ustc.edu.cn/ubuntu bionic-updates/multiverse DEP-11 64[-]Get:47 https://mirrors.ustc.edu.cn/ubuntu bionic-backports/main i386 Packages[/]Get:48 https://mirrors.ustc.edu.cn/ubuntu bionic-backports/main amd64 Package[]Get:49 https://mirrors.ustc.edu.cn/ubuntu bionic-backports/main Translation-e[|]Get:50 https://mirrors.ustc.edu.cn/ubuntu bionic-backports/main amd64 DEP-11 [-]Get:51 https://mirrors.ustc.edu.cn/ubuntu bionic-backports/main DEP-11 48x48 [/]Get:52 https://mirrors.ustc.edu.cn/ubuntu bionic-backports/main DEP-11 64x64 []Get:53 https://mirrors.ustc.edu.cn/ubuntu bionic-backports/universe amd64 Pac[|]Get:54 https://mirrors.ustc.edu.cn/ubuntu bionic-backports/universe i386 Pack[-]Get:55 https://mirrors.ustc.edu.cn/ubuntu bionic-backports/universe Translati[/]Get:56 https://mirrors.ustc.edu.cn/ubuntu bionic-backports/universe amd64 DEP[]Get:57 https://mirrors.ustc.edu.cn/ubuntu bionic-backports/universe DEP-11 48[|]Get:58 https://mirrors.ustc.edu.cn/ubuntu bionic-backports/universe DEP-11 64[-]Get:59 https://mirrors.ustc.edu.cn/ubuntu bionic-security/main amd64 Packages[/]Get:60 https://mirrors.ustc.edu.cn/ubuntu bionic-security/main i386 Packages []Get:61 https://mirrors.ustc.edu.cn/ubuntu bionic-security/main Translation-en[|]Get:62 https://mirrors.ustc.edu.cn/ubuntu bionic-security/main amd64 DEP-11 M[-]Get:63 https://mirrors.ustc.edu.cn/ubuntu bionic-security/main DEP-11 48x48 I[/]Get:64 https://mirrors.ustc.edu.cn/ubuntu bionic-security/main DEP-11 64x64 I[]Get:65 https://mirrors.ustc.edu.cn/ubuntu bionic-security/restricted amd64 Pa[|]Get:66 https://mirrors.ustc.edu.cn/ubuntu bionic-security/restricted i386 Pac[-]Get:67 https://mirrors.ustc.edu.cn/ubuntu bionic-security/restricted Translat[/]Get:68 https://mirrors.ustc.edu.cn/ubuntu bionic-security/universe amd64 Pack[]Get:69 https://mirrors.ustc.edu.cn/ubuntu bionic-security/universe i386 Packa[|]Get:70 https://mirrors.ustc.edu.cn/ubuntu bionic-security/universe Translatio[-]Get:71 https://mirrors.ustc.edu.cn/ubuntu bionic-security/universe amd64 DEP-[/]Get:72 https://mirrors.ustc.edu.cn/ubuntu bionic-security/universe DEP-11 48x[]Get:73 https://mirrors.ustc.edu.cn/ubuntu bionic-security/universe DEP-11 64x[|]Get:74 https://mirrors.ustc.edu.cn/ubuntu bionic-security/multiverse i386 Pac[-]Get:75 https://mirrors.ustc.edu.cn/ubuntu bionic-security/multiverse amd64 Pa[/]Get:76 https://mirrors.ustc.edu.cn/ubuntu bionic-security/multiverse Translat[]Get:77 https://mirrors.ustc.edu.cn/ubuntu bionic-security/multiverse amd64 DE[|]Get:78 https://mirrors.ustc.edu.cn/ubuntu bionic-security/multiverse DEP-11 4[-]Get:79 https://mirrors.ustc.edu.cn/ubuntu bionic-security/multiverse DEP-11 6[-]Result:code:100更新失败,开始更换导入方式并三次尝试...
Run CMD Task:[sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0E98404D386FA1D9]
[]Executing: /tmp/apt-key-gpghome.utMrIVQBn8/gpg.1.sh --keyserver keyserver.ubu[-]Result:successRun CMD Task:[sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys DCC9EFBF77E11517]
[]Executing: /tmp/apt-key-gpghome.lU0HWe2ZQn/gpg.1.sh --keyserver keyserver.ubu[-]Result:successRun CMD Task:[sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 54404762BBB6E853]
[]Executing: /tmp/apt-key-gpghome.cPQEcuCgtL/gpg.1.sh --keyserver keyserver.ubu[-]Result:successRun CMD Task:[apt-get install debian-keyring debian-archive-keyring]
[]Get:1 https://mirrors.ustc.edu.cn/ubuntu bionic/universe amd64 debian-archive[|]Get:2 https://mirrors.ustc.edu.cn/ubuntu bionic/universe amd64 debian-keyring[-]Result:success ubuntu1) ....deb ...all.deb ...Run CMD Task:[apt-key update]
[|]gpg: key 3B4FE6ACC0B21F32: "Ubuntu Archive Automatic Signing Key (2012) <ftpm[/]gpg: key D94AA3F0EFE21092: "Ubuntu CD Image Automatic Signing Key (2012) <cdi[-]Result:successRun CMD Task:[sudo apt update]
[-]Result:code:100 ionic-security InReleasee如果出现问题NO_PUBKEY XXXXXXXX,请手动运行添加指令:apt-key adv --keyserver keyserver.ubuntu.com --recv-keys XXXXXXXX
如:error: NO_PUBKEY 0E98404D386FA1D9
运行指令:sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0E98404D386FA1D9镜像修复完成.....
Run CMD Task:[sudo apt update]
[-]Result:code:100 ionic-security InReleaseeapt更新失败,后续程序可能会继续尝试...,['\n', 'WARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n', '\n', '\n', "(appstreamcli:4613): GLib-CRITICAL **: 19:09:20.414: 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:4613): GLib-CRITICAL **: 19:09:20.414: g_variant_new_variant: assertion 'value != NULL' failed\n", '\n', '(appstreamcli:4613): GLib-ERROR **: 19:09:20.414: g_variant_new_parsed: 11-13:invalid GVariant format string\n', 'Trace/breakpoint trap (core dumped)\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 apt update]
[]Get:5 http://mirrors.tuna.tsinghua.edu.cn/ros2/ubuntu bionic InRelease [4,680[/]Get:8 http://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu bionic Release.gpg [833 [|] The following signatures couldn't be verified because the public key is not[-]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:5007): GLib-CRITICAL **: 19:09:24.334: 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:5007): GLib-CRITICAL **: 19:09:24.334: g_variant_new_variant: assertion 'value != NULL' failed\n", '\n', '(appstreamcli:5007): GLib-ERROR **: 19:09:24.334: g_variant_new_parsed: 11-13:invalid GVariant format string\n', 'Trace/breakpoint trap (core dumped)\n', "W: GPG error: http://mirrors.tuna.tsinghua.edu.cn/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://mirrors.tuna.tsinghua.edu.cn/ros2/ubuntu bionic InRelease' is not signed.\n", "W: GPG error: http://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu bionic Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F42ED6FBAB17C654\n", "E: The repository 'http://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu bionic Release' 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换源后更新失败,第二次开始切换源,尝试更换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]
[/] The following signatures couldn't be verified because the public key is not[-]Result:code:100 ntu 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:5406): GLib-CRITICAL **: 19:09:29.340: 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:5406): GLib-CRITICAL **: 19:09:29.341: g_variant_new_variant: assertion 'value != NULL' failed\n", '\n', '(appstreamcli:5406): GLib-ERROR **: 19:09:29.341: g_variant_new_parsed: 11-13:invalid GVariant format string\n', 'Trace/breakpoint trap (core dumped)\n', "W: GPG error: https://repo.huaweicloud.com/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://repo.huaweicloud.com/ros2/ubuntu bionic InRelease' is not signed.\n", "W: GPG error: https://repo.huaweicloud.com/ros/ubuntu bionic Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F42ED6FBAB17C654\n", "E: The repository 'https://repo.huaweicloud.com/ros/ubuntu bionic Release' 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换源后更新失败,第三次开始切换源,尝试更换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:5807): GLib-CRITICAL **: 19:09:37.232: 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:5807): GLib-CRITICAL **: 19:09:37.232: g_variant_new_variant: assertion 'value != NULL' failed\n", '\n', '(appstreamcli:5807): GLib-ERROR **: 19:09:37.232: 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 443]检测到发生证书校验错误['\n', 'WARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n', '\n', '\n', "(appstreamcli:6100): GLib-CRITICAL **: 19:09:43.424: 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:6100): GLib-CRITICAL **: 19:09:43.424: g_variant_new_variant: assertion 'value != NULL' failed\n", '\n', '(appstreamcli:6100): GLib-ERROR **: 19:09:43.424: 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:6501): GLib-CRITICAL **: 19:09:49.025: 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:6501): GLib-CRITICAL **: 19:09:49.025: g_variant_new_variant: assertion 'value != NULL' failed\n", '\n', '(appstreamcli:6501): GLib-ERROR **: 19:09:49.025: 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:6896): GLib-CRITICAL **: 19:09:55.586: 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:6896): GLib-CRITICAL **: 19:09:55.586: g_variant_new_variant: assertion 'value != NULL' failed\n", '\n', '(appstreamcli:6896): GLib-ERROR **: 19:09:55.586: 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欢迎加入机器人学习交流QQ群:686914208(入群口令:一键安装)
如在使用过程中遇到问题,请打开:https://fishros.org.cn/forum 进行反馈 -
@875648245 在 Ubuntu18.04一键Ros失败 中说:
如果出现问题NO_PUBKEY XXXXXXXX,请手动运行添加指令:apt-key adv --keyserver keyserver.ubuntu.com --recv-keys XXXXXXXX
如:error: NO_PUBKEY 0E98404D386FA1D9
运行指令:sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0E98404D386FA1D9 -
尝试了还是一样:
root@ubuntu:~$ sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
[sudo] root 的密码:
Executing: /tmp/apt-key-gpghome.WDHoDJClwv/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
gpg: 密钥 F42ED6FBAB17C654:“Open Robotics info@osrfoundation.org” 未改变
gpg: 处理的总数:1
gpg: 未改变:1报错:
apt更新失败,后续程序可能会继续尝试...,['\n', 'WARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n', '\n', 'E: 仓库 “https://mirrors.ustc.edu.cn/ubuntu eoan Release” 没有 Release 文件。\n', 'E: 仓库 “https://mirrors.ustc.edu.cn/ubuntu eoan-updates Release” 没有 Release 文件。\n', 'E: 仓库 “https://mirrors.ustc.edu.cn/ubuntu eoan-backports Release” 没有 Release 文件。\n', 'E: 仓库 “https://mirrors.ustc.edu.cn/ubuntu eoan-security Release” 没有 Release 文件。\n']
Run CMD Task:[sudo apt-cache search ros-base ]
[-]Result:success换源后更新失败,第四次开始切换源,尝试使用https-ROS2官方源~!
根据您的系统,为您推荐安装源为['http://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 tu eoan InReleaseeaseeeeapt更新失败,后续程序可能会继续尝试...,['\n', 'WARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n', '\n', 'E: 仓库 “https://mirrors.ustc.edu.cn/ubuntu eoan Release” 没有 Release 文件。\n', 'E: 仓库 “https://mirrors.ustc.edu.cn/ubuntu eoan-updates Release” 没有 Release 文件。\n', 'E: 仓库 “https://mirrors.ustc.edu.cn/ubuntu eoan-backports Release” 没有 Release 文件。\n', 'E: 仓库 “https://mirrors.ustc.edu.cn/ubuntu eoan-security Release” 没有 Release 文件。\n']
Run CMD Task:[sudo apt-cache search ros-base ]
[-]Result:successRun CMD Task:[sudo apt update]
[-]Result:code:100 tu eoan InReleaseeaseeeeapt更新失败,后续程序可能会继续尝试...,['\n', 'WARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n', '\n', 'E: 仓库 “https://mirrors.ustc.edu.cn/ubuntu eoan Release” 没有 Release 文件。\n', 'E: 仓库 “https://mirrors.ustc.edu.cn/ubuntu eoan-updates Release” 没有 Release 文件。\n', 'E: 仓库 “https://mirrors.ustc.edu.cn/ubuntu eoan-backports Release” 没有 Release 文件。\n', 'E: 仓库 “https://mirrors.ustc.edu.cn/ubuntu eoan-security Release” 没有 Release 文件。\n']
四次换源后都失败了,请及时联系小鱼获取解决方案并处理!