一键安装失败

一键安装失败

鱼香ROS介绍:

鱼香ROS是由机器人爱好者共同组成的社区,欢迎一起参与机器人技术交流。
进群加V:fishros2048

文章信息:

标题:一键安装失败
原文地址:https://fishros.org.cn/forum/topic/97
关键词: 一键安装,ros2,ubuntu20.04,
参与者: 42235046,小鱼,
版权声明: 文章中所有知识产权归鱼香ROS及原作者所有。


1. 42235046掰着手指头说:

树莓派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版本代号的选择



2. 42235046苦兮兮的说:

@小鱼 在 一键安装失败 中说:

sudo apt install ros-foxy-desktop

试过了,现在安装成功了。原因如下:
ROS2 foxy 需要的是64位的ubuntu. 即使手动安装还是会出现各种各样的问题,后面没有通过sudo apt install ,而是 sudo apititude



3. 小鱼苦兮兮的说:

@42235046 推测可能是源导致,晚上我做一下更新后你再测试。



4. 小鱼看着代码说:

@42235046 已完成对应的armhf架构源的优化,可以再次尝试,有问题可以持续反馈。😁



5. 42235046看着电脑说:

@小鱼 还是找不到ROS2安装版本

ubuntu@ubuntu:~$ wget http://fishros.com/install -O fishros && . fishros
--2022-03-31 01:08:45--  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-31 01:08:46--  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-31 01:08:46 (5.33 MB/s) - ‘fishros’ saved [300/300]

--2022-03-31 01:08:46--  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: 36533 (36K) [application/octet-stream]
Saving to: ‘/tmp/fishinstall/tools/base.py’

/tmp/fishinstall/to 100%[===================>]  35.68K  --.-KB/s    in 0.03s   

2022-03-31 01:08:46 (1.17 MB/s) - ‘/tmp/fishinstall/tools/base.py’ saved [36533/36533]

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
[7]:一键安装:VsCode开发工具
[8]:一键安装:Docker
[9]:一键安装:Cartographer(内测版v0.1)
[77]:测试模式:运行自定义工具测试
[0]:quit
请输入[]内的数字以选择:1
请输入[]内的数字以选择:1
--2022-03-31 01:09:02--  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: 7929 (7.7K) [application/octet-stream]
Saving to: ‘/tmp/fishinstall/tools/tool_install_ros.py’

/tmp/fishinstall/to 100%[===================>]   7.74K  --.-KB/s    in 0s      

2022-03-31 01:09:02 (20.7 MB/s) - ‘/tmp/fishinstall/tools/tool_install_ros.py’ saved [7929/7929]

--2022-03-31 01:09:02--  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/to 100%[===================>]   2.25K  --.-KB/s    in 0s      

2022-03-31 01:09:02 (37.8 MB/s) - ‘/tmp/fishinstall/tools/tool_config_rosenv.py’ saved [2307/2307]

--2022-03-31 01:09:02--  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/to 100%[===================>]   4.88K  --.-KB/s    in 0s      

2022-03-31 01:09:02 (73.0 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
请输入[]内的数字以选择:2
Run CMD Task:[sudo apt update]
[-]Result:success                            --upgradable' to see them.asee

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:success                           

检测到当前系统架构为[armhf],正在为你更换对应源..
替换完成,尝试第一次更新....
Run CMD Task:[sudo apt update]
[-]Result:success                            --upgradable' to see them.asee

搞定了,不信你看,累死宝宝了,还不快去给小鱼点个赞~
['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...', "5 packages can be upgraded. Run 'apt list --upgradable' to see them.", '']
镜像修复完成.....
Run CMD Task:[sudo apt update]
[-]Result:success                            --upgradable' to see them.asee

Run CMD Task:[sudo apt install curl gnupg2 -y]
[-]Result:success                           e and 5 not upgraded.

Run CMD Task:[curl -s https://gitee.com/ohhuo/rosdistro/raw/master/ros.asc | sudo apt-key add -]
[-]Result:success                           

Run CMD Task:[dpkg --print-architecture]
[-]Result:success                           

根据您的系统,为您推荐安装源为['http://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu/', 'http://packages.ros.org/ros2/ubuntu/']
Run CMD Task:[sudo mkdir -p /etc/apt/sources.list.d/]
[-]Result:success                           

Run CMD Task:[sudo apt update]
[-]Get:3 http://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu focal Release.gpg [833 B[\]Get:9 http://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu focal/main armhf Package[|]Get:10 http://packages.ros.org/ros2/ubuntu focal/main armhf Packages [72.3 kB[-]Result:success                            --upgradable' to see them.

Run CMD Task:[sudo apt-cache search ros-base ]
[/]ros-noetic-ros-base - A metapackage which extends ros_core and includes other basic non-robot tools like actionlib, dynamic reconfigure, nodelets, and plugin[-]Result:success                           

RUN Choose Task:[请输入括号内的数字]
请选择你要安装的ROS版本名称:
[1]:noetic
[0]:quit
请输入[]内的数字以选择:0
RUN Choose Task:[请输入括号内的数字]
请选择安装的具体版本:
[1]:quit完全版
[2]:quit基础版(小)
[0]:quit
请输入[]内的数字以选择:0
欢迎使用一键配置ROS开发环境,本工具由作者小鱼提供
Run CMD Task:[ls /opt/ros/*/setup.bash]
[-]Result:success                           

Run CMD Task:[ls /home/*/.bashrc]
[-]Result:success                           

恭喜你,安装成功了,再附赠你机器人学习宝藏网站:鱼香社区-https://fishros.org.cn/forum
欢迎加入机器人学习交流QQ群:139707339
鱼香ROS机器人社区上线了!!快快打开链接:-https://fishros.org.cn/forum,一起交流学习机器人问题吧~
ubuntu@ubuntu:~$


6. 小鱼看着电脑说:

@42235046 直接敲命令行试试,不行我抽时间在我这边树莓派试试,非常奇怪的问题。

 sudo apt install ros-foxy-desktop


7. 42235046喜滋滋的说:

@小鱼 在 一键安装失败 中说:

sudo apt install ros-foxy-desktop

试过了,现在安装成功了。原因如下:
ROS2 foxy 需要的是64位的ubuntu. 即使手动安装还是会出现各种各样的问题,后面没有通过sudo apt install ,而是 sudo apititude



  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值