arm下一键安装ros出现问题了
-
wget http://fishros.com/install -O fishros && . fishros
--2023-03-09 17:44:01-- 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 17:44:01-- 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 17:44:01 (47.6 MB/s) - ‘fishros’ saved [582/582]
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package python3-distro is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another sourceE: Package 'python3-distro' has no installation candidate
--2023-03-09 17:44:02-- 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/tools/base. 100%[============================================>] 41.21K --.-KB/s in 0.1s
2023-03-09 17:44:02 (335 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 17:44:08-- 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/tools/tool_ 100%[============================================>] 18.60K --.-KB/s in 0.07s
2023-03-09 17:44:08 (279 KB/s) - ‘/tmp/fishinstall/tools/tool_install_ros.py’ saved [19050/19050]
--2023-03-09 17:44:08-- 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/tools/tool_ 100%[============================================>] 2.40K --.-KB/s in 0s
2023-03-09 17:44:08 (55.8 MB/s) - ‘/tmp/fishinstall/tools/tool_config_rosenv.py’ saved [2457/2457]
--2023-03-09 17:44:08-- 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/tools/tool_ 100%[============================================>] 7.33K --.-KB/s in 0.03s
2023-03-09 17:44:08 (282 KB/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检测到当前系统架构为[arm64:bionic],正在为你更换对应源..
替换完成,尝试第一次更新....
Run CMD Task:[sudo apt update]
[-]Result:code:100 ports bionic-security/multiverse amd64 Packages,886 kB]B]更新失败,开始更换导入方式并三次尝试...
Run CMD Task:[sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0E98404D386FA1D9]
[]Executing: /tmp/apt-key-gpghome.AXcRKn6N1o/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 0E98404D386FA1[-]Result:successRun CMD Task:[sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys DCC9EFBF77E11517]
[]Executing: /tmp/apt-key-gpghome.VuEeXe7ujU/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys DCC9EFBF77E115[-]Result:successRun CMD Task:[sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 54404762BBB6E853]
[]Executing: /tmp/apt-key-gpghome.xjXKKE2LlR/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 54404762BBB6E8[-]Result:successRun CMD Task:[apt-get install debian-keyring debian-archive-keyring]
[-]Result:code:100 has been obsoleted, orother package.Run CMD Task:[apt-key update]
[-]Result:success e Automatic Signing Key (2018) ftpmaster@ubuntu.com" not changedRun CMD Task:[sudo apt update]
[-]Result:code:100 ports bionic-security/multiverse amd64 Packages[1,172 kB]如果出现问题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 ports bionic-security/multiverse amd64 Packages3 kB] kB]apt更新失败,后续程序可能会继续尝试...,['\n', 'WARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n', '\n', 'E: Failed to fetch https://mirrors.ustc.edu.cn/ubuntu-ports/dists/bionic/main/binary-amd64/Packages 404 Not Found [IP: 202.141.160.110 443]\n', 'E: Failed to fetch https://mirrors.ustc.edu.cn/ubuntu-ports/dists/bionic-updates/main/binary-amd64/Packages 404 Not Found [IP: 202.141.160.110 443]\n', 'E: Failed to fetch https://mirrors.ustc.edu.cn/ubuntu-ports/dists/bionic-backports/main/binary-amd64/Packages 404 Not Found [IP: 202.141.160.110 443]\n', 'E: Failed to fetch https://mirrors.ustc.edu.cn/ubuntu-ports/dists/bionic-security/main/binary-amd64/Packages 404 Not Found [IP: 202.141.160.110 443]\n', 'E: Some index files failed to download. They have been ignored, or old ones used instead.\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]
[-]Result:code:100 ports bionic-security/multiverse amd64 Packages[18.1 kB]apt更新失败,后续程序可能会继续尝试...,['\n', 'WARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n', '\n', 'E: Failed to fetch https://mirrors.ustc.edu.cn/ubuntu-ports/dists/bionic/main/binary-amd64/Packages 404 Not Found [IP: 202.141.160.110 443]\n', 'E: Failed to fetch https://mirrors.ustc.edu.cn/ubuntu-ports/dists/bionic-updates/main/binary-amd64/Packages 404 Not Found [IP: 202.141.160.110 443]\n', 'E: Failed to fetch https://mirrors.ustc.edu.cn/ubuntu-ports/dists/bionic-backports/main/binary-amd64/Packages 404 Not Found [IP: 202.141.160.110 443]\n', 'E: Failed to fetch https://mirrors.ustc.edu.cn/ubuntu-ports/dists/bionic-security/main/binary-amd64/Packages 404 Not Found [IP: 202.141.160.110 443]\n', 'E: Some index files failed to download. They have been ignored, or old ones used instead.\n']
Run CMD Task:[sudo apt-cache search ros-base ]
[]ros-melodic-end-effector - End-Effector package: provides a ROS-based set of standard interfaces to command rob[|]ros-melodic-ros-base - A metapackage which extends ros_core and includes other basic non-robot tools like actio[-]ros-bouncy-ros-base - A package which extends 'ros_core' and includes other basic functionalities like tf2 and [/]ros-crystal-ros-base - A package which extends 'ros_core' and includes other basic functionalities like tf2 and[]ros-dashing-ros-base - A package which extends 'ros_core' and includes other basic functionalities like tf2 and[|]ros-eloquent-ros-base - A package which extends 'ros_core' and includes other basic functionalities like tf2 an[-]Result:success恭喜,成功添加ROS源,接下来可以使用apt安装ROS或者使用[1]一键安装ROS安装!
Run CMD Task:[sudo apt-cache search ros-base ]
[]ros-melodic-end-effector - End-Effector package: provides a ROS-based set of standard interfaces to command rob[|]ros-melodic-ros-base - A metapackage which extends ros_core and includes other basic non-robot tools like actio[-]ros-bouncy-ros-base - A package which extends 'ros_core' and includes other basic functionalities like tf2 and [/]ros-crystal-ros-base - A package which extends 'ros_core' and includes other basic functionalities like tf2 and[]ros-dashing-ros-base - A package which extends 'ros_core' and includes other basic functionalities like tf2 and[|]ros-eloquent-ros-base - A package which extends 'ros_core' and includes other basic functionalities like tf2 an[-]Result:successRUN Choose Task:[请输入括号内的数字]
请选择你要安装的ROS版本名称(请注意ROS1和ROS2区别):
[1]:melodic(ROS1)
[2]:bouncy(ROS2)
[3]:crystal(ROS2)
[4]:dashing(ROS2)
[5]:eloquent(ROS2)
[0]:quit
请输入[]内的数字以选择:1
RUN Choose Task:[请输入括号内的数字]
请选择安装的具体版本(如果不知道怎么选,请选1桌面版):
[1]:melodic(ROS1)桌面版
[2]:melodic(ROS1)基础版(小)
[0]:quit
请输入[]内的数字以选择:1
Run CMD Task:[sudo apt-cache search aptitude ]
[-]Result:successTraceback (most recent call last):
File "/tmp/fishinstall/install.py", line 90, in <module>
main()
File "/tmp/fishinstall/install.py", line 83, in main
run_tool_file(tools[code]['tool'].replace(url_prefix,'').replace("/","."))
File "/tmp/fishinstall/tools/base.py", line 1233, in run_tool_file
if tool.run()==False: return False
File "/tmp/fishinstall/tools/tool_install_ros.py", line 385, in run
self.install_ros()
File "/tmp/fishinstall/tools/tool_install_ros.py", line 378, in install_ros
ros_version = self.choose_and_install_ros()
File "/tmp/fishinstall/tools/tool_install_ros.py", line 319, in choose_and_install_ros
AptUtils.install_pkg('aptitude')
File "/tmp/fishinstall/tools/base.py", line 1172, in install_pkg
for key in dic.keys():
AttributeError: 'NoneType' object has no attribute 'keys'
bash: /opt/ros/melodic/setup.bash: No such file or directory -
@zyd18342842908 在 arm下一键安装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 -
@小鱼 可能还是不是很懂,会返回“从公钥服务器接收失败,无数据”
-
@1812133298 arm下只能装基础版