小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
树莓派一键安装ros melodic安装失败
-
pi@raspberrypi:~ $ lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 10 (buster)
Release: 10
Codename: busterpi@raspberrypi:~ $ ./fishros
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
python3-distro python3-yaml
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 126 kB of archives.
After this operation, 542 kB of additional disk space will be used.
Get:1 http://mirrors.zju.edu.cn/raspbian/raspbian buster/main armhf python3-distro all 1.3.0-1 [14.3 kB]
Get:2 http://mirrors.zju.edu.cn/raspbian/raspbian buster/main armhf python3-yaml armhf 3.13-2 [111 kB]
Fetched 126 kB in 2s (58.5 kB/s)
Selecting previously unselected package python3-distro.
(Reading database ... 98848 files and directories currently installed.)
Preparing to unpack .../python3-distro_1.3.0-1_all.deb ...
Unpacking python3-distro (1.3.0-1) ...
Selecting previously unselected package python3-yaml.
Preparing to unpack .../python3-yaml_3.13-2_armhf.deb ...
Unpacking python3-yaml (3.13-2) ...
Setting up python3-distro (1.3.0-1) ...
Setting up python3-yaml (3.13-2) ...
--2023-03-28 13:50:53-- 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.08s
2023-03-28 13:50:53 (545 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-28 13:51:03-- 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.04s
2023-03-28 13:51:03 (513 KB/s) - ‘/tmp/fishinstall/tools/tool_install_ros.py’ saved [19050/19050]
--2023-03-28 13:51:03-- 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-28 13:51:03 (19.2 MB/s) - ‘/tmp/fishinstall/tools/tool_config_rosenv.py’ saved [2457/2457]
--2023-03-28 13:51:03-- 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 0.003s
2023-03-28 13:51:03 (2.09 MB/s) - ‘/tmp/fishinstall/tools/tool_config_system_source.py’ saved [7511/7511]
欢迎使用一键安装ROS和ROS2,支持树莓派Jetson,本工具由作者小鱼提供
欢迎使用ROS开箱子工具,本工具由[鱼香ROS]小鱼贡献..
小鱼:检测当前系统debian10.13:buster 支持一键安装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检测到当前系统架构为[arm64:buster],正在为你更换对应源..
替换完成,尝试第一次更新....
Run CMD Task:[sudo apt update]
[|]Get:2 https://mirrors.tuna.tsinghua.edu.cn/debian buster-updates InRelease [5[-]Get:3 https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports InRelease [/]Get:4 https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates InR[|] The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9 NO_PUBKEY DCC9[/] 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[-]Err:4 https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates InR[/] The following signatures couldn't be verified because the public key is not[-]Result:code:100 KEY 54404762BBB6E853更新失败,开始更换导入方式并三次尝试...
Run CMD Task:[sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0E98404D386FA1D9]
[]Executing: /tmp/apt-key-gpghome.VHtO2DCTbc/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.VDwjHrbJlO/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.uv4bM819Zt/gpg.1.sh --keyserver keyserver.ubu[-]Result:successRun CMD Task:[apt-get install debian-keyring debian-archive-keyring]
[/]Package debian-keyring is not available, but is referred to by another packag[-]Result:code:100 has been obsoleted, orRun CMD Task:[apt-key update]
[]gpg: key 9165938D90FDDD2E: "Mike Thompson (Raspberry Pi Debian armhf ARMv6+VF[-]Result:successRun CMD Task:[sudo apt update]
[|]Get:2 https://mirrors.tuna.tsinghua.edu.cn/debian buster-updates InRelease [5[-]Get:3 https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports InRelease [/]Get:4 https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates InR[]Get:5 https://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf Packages [|]Get:6 https://mirrors.tuna.tsinghua.edu.cn/debian buster/main Translation-en [-]Get:7 https://mirrors.tuna.tsinghua.edu.cn/debian buster/contrib armhf Packag[/]Get:8 https://mirrors.tuna.tsinghua.edu.cn/debian buster/contrib Translation-[]Get:9 https://mirrors.tuna.tsinghua.edu.cn/debian buster/non-free armhf Packa[|]Get:10 https://mirrors.tuna.tsinghua.edu.cn/debian buster/non-free Translatio[-]Get:11 https://mirrors.tuna.tsinghua.edu.cn/debian buster-updates/main armhf [/]Get:12 https://mirrors.tuna.tsinghua.edu.cn/debian buster-updates/main Transl[]Get:13 https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports/main armh[|]Get:14 https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports/main Tran[-]Get:15 https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports/contrib a[/]Get:16 https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports/contrib T[]Get:17 https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports/non-free [|]Get:18 https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports/non-free [-]Get:19 https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates/ma[/]Get:20 https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates/ma[]Get:21 https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates/no[-]Result:success st --upgradable' to see them.搞定了,不信你看,累死宝宝了,还不快去给小鱼点个赞~
['Get:1 https://mirrors.tuna.tsinghua.edu.cn/debian buster InRelease [122 kB]', 'Get:2 https://mirrors.tuna.tsinghua.edu.cn/debian buster-updates InRelease [56.6 kB]', 'Get:3 https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports InRelease [51.4 kB]', 'Get:4 https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates InRelease [34.8 kB]', 'Get:5 https://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf Packages [7,706 kB]', 'Get:6 https://mirrors.tuna.tsinghua.edu.cn/debian buster/main Translation-en [5,969 kB]', 'Get:7 https://mirrors.tuna.tsinghua.edu.cn/debian buster/contrib armhf Packages [40.1 kB]', 'Get:8 https://mirrors.tuna.tsinghua.edu.cn/debian buster/contrib Translation-en [44.2 kB]', 'Get:9 https://mirrors.tuna.tsinghua.edu.cn/debian buster/non-free armhf Packages [62.1 kB]', 'Get:10 https://mirrors.tuna.tsinghua.edu.cn/debian buster/non-free Translation-en [88.9 kB]', 'Get:11 https://mirrors.tuna.tsinghua.edu.cn/debian buster-updates/main armhf Packages [8,784 B]', 'Get:12 https://mirrors.tuna.tsinghua.edu.cn/debian buster-updates/main Translation-en [6,915 B]', 'Get:13 https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports/main armhf Packages [477 kB]', 'Get:14 https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports/main Translation-en [411 kB]', 'Get:15 https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports/contrib armhf Packages [7,732 B]', 'Get:16 https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports/contrib Translation-en [8,080 B]', 'Get:17 https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports/non-free armhf Packages [13.0 kB]', 'Get:18 https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports/non-free Translation-en [39.5 kB]', 'Get:19 https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates/main armhf Packages [464 kB]', 'Get:20 https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates/main Translation-en [256 kB]', 'Get:21 https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates/non-free Translation-en [344 B]', 'Fetched 15.6 MB in 12s (1,298 kB/s)', 'Reading package lists...', 'Building dependency tree...', 'Reading state information...', "721 packages can be upgraded. Run 'apt list --upgradable' to see them."]
镜像修复完成.....
Run CMD Task:[sudo apt update]
[|]Get:2 https://mirrors.tuna.tsinghua.edu.cn/debian buster-updates InRelease [5[-]Get:3 https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports InRelease [/]Get:4 https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates InR[-]Result:success st --upgradable' to see them.Run CMD Task:[sudo apt-cache search curl ]
[-]cl-curry-compose-reader-macros - Reader macros for function partial applicati[-]libcupt4-2-downloadmethod-curl - flexible package manager -- libcurl download[]libcurl3-gnutls - easy-to-use client-side URL transfer library (GnuTLS flavou[]libcurl4-gnutls-dev - development files and documentation for libcurl (GnuTLS[|]libcurl4-nss-dev - development files and documentation for libcurl (NSS flavo[-]libcurl4-openssl-dev - development files and documentation for libcurl (OpenS[/]flickcurl-doc - utilities to call the Flickr API from command line - document[/]libflickcurl0-dbg - C library for accessing the Flickr API - debugging symbol[]forensics-extra - Forensics Environment - extra console components (metapacka[|]gnupg1 - GNU privacy guard - a PGP implementation (deprecated "classic" versi[-]golang-github-moul-http2curl-dev - Go package for convert Golang's http.Reque[|]libghc-curl-doc - Documentation for the libcurl Haskell bindings; documentati[-]libghc-curl-prof - Profiling libraries for the libcurl Haskell bindings; prof[]libghc-hxt-doc - collection of tools for processing XML with Haskell; documen[|]libghc-hxt-prof - collection of tools for processing XML with Haskell; profil[-]libghc-hxt-http-doc - Interface to native Haskell HTTP package HTTP; document[/]libghc-hxt-http-prof - Interface to native Haskell HTTP package HTTP; profili[]libresource-retriever-dev - Robot OS resource_retriever library - development[]librust-curl+http2-dev - Rust bindings to libcurl for making HTTP requests - [|]librust-curl-dev - Rust bindings to libcurl for making HTTP requests - Rust s[-]librust-curl-sys+http2-dev - Native bindings to the libcurl library - feature[/]librust-curl-sys+libnghttp2-sys-dev - Native bindings to the libcurl library []librust-curl-sys-dev - Native bindings to the libcurl library - Rust source c[|]librust-git2+curl-dev - Bindings to libgit2 for interoperating with git repos[-]librust-git2-curl-dev - Backend for an HTTP transport in libgit2 powered by l[/]librust-libgit2-sys+curl-dev - Native bindings to the libgit2 library - featu[]librust-libgit2-sys+curl-sys-dev - Native bindings to the libgit2 library - f[/]libstrongswan-extra-plugins - strongSwan utility and crypto library (extra pl[/]golang-github-ssgelm-cookiejarparser-dev - Go library that parses a curl cook[-]Result:success ect inputstream addon for KodiRun CMD Task:[sudo apt install curl -y]
[-]Get:1 https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates/mai[/]Get:2 https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates/mai[-]Result:success +rpt2+rpi1+deb10u1) ...u4) ...Run CMD Task:[sudo apt-cache search gnupg2 ]
[|]gnupg2 - GNU privacy guard - a free PGP replacement (dummy transitional packa[-]Result:successRun CMD Task:[sudo apt install gnupg2 -y]
[]Get:1 https://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf gnupg2 al[-]Result:success ...0u2_all.deb ...stalled.)Run CMD Task:[curl -s https://gitee.com/ohhuo/rosdistro/raw/master/ros.asc | sudo apt-key add -]
[-]Result:successRun CMD Task:[dpkg --print-architecture]
[-]Result:success根据您的系统,为您推荐安装源为['http://packages.ros.org/ros/ubuntu/', 'http://packages.ros.org/ros2/ubuntu/']
Run CMD Task:[sudo apt update]
[|]Get:2 https://mirrors.tuna.tsinghua.edu.cn/debian buster-updates InRelease [5[-]Get:3 https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports InRelease [/]Get:4 https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates InR[/]Get:8 http://packages.ros.org/ros2/ubuntu buster/main arm64 Packages [59.5 kB[-]Result:success st --upgradable' to see them.Run CMD Task:[sudo apt-cache search ros-base ]
[-]Result:success r Robot OS roscpp-coreageKerberos换源后更新失败,第二次开始切换源,尝试更换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]
[|]Get:2 https://mirrors.tuna.tsinghua.edu.cn/debian buster-updates InRelease [5[-]Get:3 https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports InRelease [/]Get:4 https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates InR[-]Result:success st --upgradable' to see them.Run CMD Task:[sudo apt-cache search ros-base ]
[-]Result:success r Robot OS roscpp-coreageKerberos换源后更新失败,第三次开始切换源,尝试更换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]
[-]Get:3 https://mirrors.tuna.tsinghua.edu.cn/debian buster-updates InRelease [5[/]Get:4 https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports InRelease [|]Get:6 https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates InR[-]Result:success st --upgradable' to see them.Run CMD Task:[sudo apt-cache search ros-base ]
[-]Result:success r Robot OS roscpp-coreageKerberos换源后更新失败,第四次开始切换源,尝试使用https-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]
[-]Get:3 https://mirrors.tuna.tsinghua.edu.cn/debian buster-updates InRelease [5[/]Get:4 https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports InRelease []Get:5 https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates InR[-]Result:success st --upgradable' to see them.Run CMD Task:[sudo apt-cache search ros-base ]
[-]Result:success r Robot OS roscpp-coreageKerberosRun CMD Task:[sudo apt update]
[-]Get:3 https://mirrors.tuna.tsinghua.edu.cn/debian buster-updates InRelease [5[]Get:5 https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports InRelease [|]Get:6 https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates InR[-]Result:success st --upgradable' to see them.Run CMD Task:[sudo apt-cache search ros-base ]
[-]Result:success r Robot OS roscpp-coreageKerberosRun 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 进行反馈 -
@niuniu_niu1 在 树莓派一键安装ros melodic安装失败 中说:
: NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D
https://fishros.org.cn/forum/topic/136/一键安装遇到no_pubkey错误该怎么办