赞
踩
鱼香ROS介绍:
鱼香ROS是由机器人爱好者共同组成的社区,欢迎一起参与机器人技术交流。
进群加V:fishros2048
文章信息:
标题:一键安装失败
原文地址:https://fishros.org.cn/forum/topic/97
关键词:一键安装,ros2
,ubuntu20.04
,
参与者: 42235046,小鱼,
版权声明: 文章中所有知识产权归鱼香ROS及原作者所有。
树莓派3B+UBUNTU20.04,打算安装ROS2,但是未能安装成功
一键安装的链接:
wget http://fishros.com/install -O fishros && . fishros **安装过程的显示:** ubuntu@ubuntu:~$ wget http://fishros.com/install -O fishros && bash fishros --2022-03-30 10:55:14-- 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] --2022-03-30 10:55:14-- http://fishros.com/install/ Reusing existing connection to fishros.com:80. HTTP request sent, awaiting response... 200 OK Length: 300 [application/octet-stream] Saving to: ‘fishros’ fishros 100%[===================>] 300 --.-KB/s in 0s 2022-03-30 10:55:14 (6.78 MB/s) - ‘fishros’ saved [300/300] --2022-03-30 10:55:15-- 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: 36343 (35K) [application/octet-stream] Saving to: ‘/tmp/fishinstall/tools/base.py’ /tmp/fishinstall/to 100%[===================>] 35.49K --.-KB/s in 0.06s 2022-03-30 10:55:15 (596 KB/s) - ‘/tmp/fishinstall/tools/base.py’ saved [36343/36343] Run CMD Task:[dpkg --print-architecture] [-]Result:success 基础检查通过... RUN Choose Task:[请输入括号内的数字] ---众多工具,等君来用--- [1]:一键安装:ROS(支持ROS和ROS2,树莓派Jetson) [2]:一键安装:github桌面版(小鱼常用的github客户端) [3]:一键配置:rosdep(小鱼的rosdepc,又快又好用) [4]:一键配置:ROS环境(快速更新ROS环境设置,自动生成环境选择) [5]:一键配置:系统源(更换系统源,支持全版本Ubuntu系统) [6]:一键安装:nodejs开发环境(通过nodejs可以预览小鱼官网噢) [7]:一键安装:VsCode [8]:一键安装:Docker [77]:测试模式:运行自定义工具测试 [0]:quit 请输入[]内的数字以选择:1 --2022-03-30 10:55:37-- 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: 7949 (7.8K) [application/octet-stream] Saving to: ‘/tmp/fishinstall/tools/tool_install_ros.py’ /tmp/fishinstall/t 100%[================>] 7.76K --.-KB/s in 0s 2022-03-30 10:55:37 (44.9 MB/s) - ‘/tmp/fishinstall/tools/tool_install_ros.py’ saved [7949/7949] --2022-03-30 10:55:37-- 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: 2307 (2.3K) [application/octet-stream] Saving to: ‘/tmp/fishinstall/tools/tool_config_rosenv.py’ /tmp/fishinstall/t 100%[================>] 2.25K --.-KB/s in 0s 2022-03-30 10:55:38 (42.6 MB/s) - ‘/tmp/fishinstall/tools/tool_config_rosenv.py’ saved [2307/2307] --2022-03-30 10:55:38-- 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: 5001 (4.9K) [application/octet-stream] Saving to: ‘/tmp/fishinstall/tools/tool_config_system_source.py’ /tmp/fishinstall/t 100%[================>] 4.88K --.-KB/s in 0s 2022-03-30 10:55:38 (51.3 MB/s) - ‘/tmp/fishinstall/tools/tool_config_system_source.py’ saved [5001/5001] 欢迎使用一键安装ROS和ROS2,支持树莓派Jetson,本工具由作者小鱼提供 欢迎使用ROS开箱子工具,本工具由[鱼香ROS]小鱼贡献.. 小鱼:检测当前系统ubuntu20.04:focal 支持一键安装ROS =========接下来这一步很重要,请小白关注,大佬请忽略======== RUN Choose Task:[请输入括号内的数字] 墙裂建议小白一定换源并清理三方源,换源!!!系统默认国外源容易失败!! [1]:更换系统源再继续安装 [2]:不更换继续安装 [0]:quit 请输入[]内的数字以选择:1 欢迎使用模板工程,本工具由作者小鱼提供 欢迎使用一键换源工具,本工具由[鱼香ROS]小鱼贡献.. RUN Choose Task:[请输入括号内的数字] 请选择换源方式 [1]:仅更换系统源 [2]:更换系统源并清理第三方源 [0]:quit 请输入[]内的数字以选择: Run CMD Task:[sudo apt update] [-]Result:success --upgradable' to see it.eleasee Run CMD Task:[sudo rm -rf /etc/apt/sources.list] [-]Result:success 删除一个资源文件 Run CMD Task:[sudo rm -rf /etc/apt/sources.list.d] [-]Result:success Run CMD Task:[dpkg --print-architecture] [-]Result:suc 检测到当前系统架构为[armhf],正在为你更换对应源.. 替换完成,尝试第一次更新.... Run CMD Task:[sudo apt update] [-]Result:success --upgradable' to see it.eleasee 搞定了,不信你看,累死宝宝了,还不快去给小鱼点个赞~ ['Hit:1 https://mirrors.ustc.edu.cn/ubuntu-ports focal InRelease', 'Hit:2 https://mirrors.ustc.edu.cn/ubuntu-ports focal-updates InRelease', 'Hit:3 https://mirrors.ustc.edu.cn/ubuntu-ports focal-backports InRelease', 'Hit:4 https://mirrors.ustc.edu.cn/ubuntu-ports focal-security InRelease', 'Reading package lists...', 'Building dependency tree...', 'Reading state information...', "1 package can be upgraded. Run 'apt list --upgradable' to see it.", ''] 镜像修复完成..... Run CMD Task:[sudo apt update] [-]Result:success --upgradable' to see it.eleasee Run CMD Task:[sudo apt install curl gnupg2 -y] [-]Result:success e and 1 not upgraded. Run CMD Task:[curl -s https://gitee.com/ohhuo/rosdistro/raw/master/ros.asc | sudo apt-key add -] [-]Result:success ['http://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu/', 'http://mirrors.tuna.tsinghua.edu.cn/ros2/ubuntu/'] Run CMD Task:[dpkg --print-architecture] [-]Result:success Run CMD Task:[sudo mkdir -p /etc/apt/sources.list.d/] [-]Result:success Run CMD Task:[sudo apt update] [|]Get:2 http://mirrors.tuna.tsinghua.edu.cn/ros2/ubuntu focal InRelease [4,[-]Get:3 http://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu focal Release [3,794[\]Get:5 http://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu focal Release.gpg [8[\]Get:9 http://mirrors.tuna.tsinghua.edu.cn/ros2/ubuntu focal/main armhf Pa[|]Get:10 http://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu focal/main armhf Pa[-]Result:success --upgradable' to see it. Run CMD Task:[sudo apt-cache search ros-base ] [\]libpam-krb5-migrate-heimdal - PAM module for migrating to Heimdal Kerbero[/]ros-noetic-ros-base - A metapackage which extends ros_core and includes other basic non-robot tools like actionlib, dynamic reconfigure, nodelets, an[-]Result:succ RUN Choose Task:[请输入括号内的数字] 请选择你要安装的ROS版本名称: [1]:noetic [0]:quit 请输入[]内的数字以选择:0 RUN Choose Task:[请输入括号内的数字] 请选择安装的具体版本: [1]:quit完全版 [2]:quit基础版(小) [0]:quit 请输入[]内的数字以选择:1 Run CMD Task:[sudo apt install ros-quit-desktop -y] Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package ros-quit-desktop Run CMD Task:[sudo apt install ros-quit-desktop -y] [-]Result:code:100 安装失败了,请打开鱼香社区-https://fishros.org.cn/forum 在一键安装专区反馈问题... 欢迎加入机器人学习交流QQ群:139707339 鱼香ROS机器人社区上线了!!快快打开链接:-https://fishros.org.cn/forum,一起交流学习机器人问题吧~
没有ROS2版本代号的选择
@小鱼 在 一键安装失败 中说:
sudo apt install ros-foxy-desktop
试过了,现在安装成功了。原因如下:
ROS2 foxy 需要的是64位的ubuntu. 即使手动安装还是会出现各种各样的问题,后面没有通过sudo apt install ,而是 sudo apititude
@42235046 推测可能是源导致,晚上我做一下更新后你再测试。
@42235046 已完成对应的armhf架构源的优化,可以再次尝试,有问题可以持续反馈。 本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。