小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
一键安装使用指南及常见问题解决方案
-
请问在rosdepc update这一步显示
ERROR: Rosdep experienced an error: Expected file type is 'distribution'
Please go to the rosdepc page [1] and file a bug report with the stack trace below.
[1] : http://www.ros.org/wiki/rosdepc发生错误了,请关注微信公众号:鱼香ROS,找小鱼反馈哦
rosdepc version: 0.21.0
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/roscdep2/main.py", line 146, in rosdep_main
exit_code = _rosdep_main(args)
File "/usr/local/lib/python2.7/dist-packages/roscdep2/main.py", line 446, in _rosdep_main
return _no_args_handler(command, parser, options, args)
File "/usr/local/lib/python2.7/dist-packages/roscdep2/main.py", line 455, in _no_args_handler
return command_handlerscommand
File "/usr/local/lib/python2.7/dist-packages/roscdep2/main.py", line 677, in command_update
ros_distro=options.ros_distro)
File "/usr/local/lib/python2.7/dist-packages/roscdep2/sources_list.py", line 516, in update_sources_list
rosdep_data = get_gbprepo_as_rosdep_data(dist_name)
File "/usr/local/lib/python2.7/dist-packages/roscdep2/gbpdistro_support.py", line 149, in get_gbprepo_as_rosdep_data
distro_file = get_release_file(gbpdistro)
File "/usr/local/lib/python2.7/dist-packages/roscdep2/rosdistrohelper.py", line 77, in get_release_file
dist_file = rosdistro.get_distribution_file(get_index(), distro)
File "/usr/local/lib/python2.7/dist-packages/rosdistro/init.py", line 120, in get_distribution_file
return create_distribution_file(dist_name, data)
File "/usr/local/lib/python2.7/dist-packages/rosdistro/distribution_file.py", line 134, in create_distribution_file
dist_file = DistributionFile(dist_name, d)
File "/usr/local/lib/python2.7/dist-packages/rosdistro/distribution_file.py", line 45, in init
assert 'type' in data, "Expected file type is '%s'" % DistributionFile._type
AssertionError: Expected file type is 'distribution'这个怎么搞呢,谢谢
-
File "/tmp/fishinstall/tools/base.py", line 644, in detect_os
raise OsNotDetected("Could not detect OS, tried %s" % attempted)
tools.base.OsNotDetected: Could not detect OS, tried ['zorin', 'windows', 'nixos', 'clearlinux', 'ubuntu', 'slackware', 'rocky', 'rhel', 'qnx', 'pop', 'osx', 'sailfishos', 'tizen', 'oracle', 'opensuse', 'opensuse', 'opensuse', 'opensuse', 'opensuse', 'openembedded', 'neon', 'mx', 'mint', 'linaro', 'gentoo', 'funtoo', 'freebsd', 'fedora', 'elementary', 'elementary', 'debian', 'cygwin', 'euleros', 'centos', 'manjaro', 'buildroot', 'arch', 'amazon', 'alpine', 'almalinux']这是我一键安装时报错,我是在树莓派的raspbian bullseye上安装,这个有办法解决吗
-
-
此回复已被删除! -
@小鱼 大佬,那有没有什么办法可以让我的这个版本的系统装上ros吗,18.04的
-
@1604333939 docker
-
@小鱼 那我该怎么做呢,麻烦说得详细一些。
-
@小鱼 apt更新失败,后续程序可能会继续尝试...,['\n', 'WARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n', '\n', "E: The repository 'https://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu bullseye Release' does not have a Release file.\n", "E: The repository 'http://packages.ros.org/ros1/ubuntu bullseye Release' does not have a Release file.\n"]
=================3.下载镜像(该步骤因网络原因会慢一些,若失败请重试)==================
Run CMD Task:[sudo docker pull ros:melodic ]
sudo: docker: command not found
Run CMD Task:[sudo docker pull ros:melodic ]
sudo: docker: command not found
Run CMD Task:[sudo docker pull ros:melodic ]
sudo: docker: command not found用一键安装 安装docker和ros melodic时出现以下问题,然后操作完之后什么都没有,这个问题要如何解决呢
-
@小鱼 --2023-05-17 22:50:07-- http://fishros.com/install
正在解析主机 fishros.com (fishros.com)... 139.9.131.171
正在连接 fishros.com (fishros.com)|139.9.131.171|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 301 Moved Permanently
位置:http://fishros.com/install/ [跟随至新的 URL]
--2023-05-17 22:50:07-- http://fishros.com/install/
再次使用存在的到 fishros.com:80 的连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:582 [application/octet-stream]
正在保存至: “fishros”fishros 100%[===================>] 582 --.-KB/s 用时 0s
2023-05-17 22:50:08 (22.2 MB/s) - 已保存 “fishros” [582/582])
SSH is enabled and the default password for the 'pi' user has not been changed.
This is a security risk - please login as the 'pi' user and type 'passwd' to set a new password.正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
python3-distro 已经是最新版 (1.3.0-1)。
python3-yaml 已经是最新版 (3.13-2)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 721 个软件包未被升级。
--2023-05-17 22:50:10-- http://fishros.com/install/install1s/tools/base.py
正在解析主机 fishros.com (fishros.com)... 139.9.131.171
正在连接 fishros.com (fishros.com)|139.9.131.171|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:42293 (41K) [application/octet-stream]
正在保存至: “/tmp/fishinstall/tools/base.py”/tmp/fishinstall/to 100%[===================>] 41.30K --.-KB/s 用时 0.1s
2023-05-17 22:50:10 (411 KB/s) - 已保存 “/tmp/fishinstall/tools/base.py” [42293/42293])
Run CMD Task:[dpkg --print-architecture]
[-]Result:success基础检查通过...
======欢迎使用一键安装工具,人生苦短,三省吾身,省时省力省心!=======
======一键安装已开源,请放心使用:https://github.com/fishros/install=======.-~~~~~~~~~-._ _.-~~~~~~~~~-. __.' ~. .~ `.__ .'// 开卷有益 \./ 书山有路 \ `. .'// 可以多看看小鱼的文章 | 关注公众号鱼香ROS \ `. .'// .-~"~~~~-._ | _,-~~~~"~-. \`. .'//.-" `-. | .-' "-.\`. .'//______.============-.. \ | / ..-============.______\`. .'______________________________\|/______________________________` ----------------------------------------------------------------------
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)
[10]:一键安装:微信(可以在Linux上使用的微信)
[11]:一键安装:ROS+Docker(支持所有版本ROS/ROS2)
[12]:一键安装:PlateformIO MicroROS开发环境(支持Fishbot)
[77]:测试模式:运行自定义工具测试
[0]:quit
请输入[]内的数字以选择:11
--2023-05-17 22:50:21-- http://fishros.com/install/install1s/tools/tool_install_ros_with_docker.py
正在解析主机 fishros.com (fishros.com)... 139.9.131.171
正在连接 fishros.com (fishros.com)|139.9.131.171|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:11540 (11K) [application/octet-stream]
正在保存至: “/tmp/fishinstall/tools/tool_install_ros_with_docker.py”/tmp/fishinstall/to 100%[===================>] 11.27K --.-KB/s 用时 0s
2023-05-17 22:50:21 (52.0 MB/s) - 已保存 “/tmp/fishinstall/tools/tool_install_ros_with_docker.py” [11540/11540])
--2023-05-17 22:50:21-- http://fishros.com/install/install1s/tools/tool_install_vscode.py
正在解析主机 fishros.com (fishros.com)... 139.9.131.171
正在连接 fishros.com (fishros.com)|139.9.131.171|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:1366 (1.3K) [application/octet-stream]
正在保存至: “/tmp/fishinstall/tools/tool_install_vscode.py”/tmp/fishinstall/to 100%[===================>] 1.33K --.-KB/s 用时 0s
2023-05-17 22:50:22 (31.5 MB/s) - 已保存 “/tmp/fishinstall/tools/tool_install_vscode.py” [1366/1366])
--2023-05-17 22:50:22-- http://fishros.com/install/install1s/tools/tool_install_docker.py
正在解析主机 fishros.com (fishros.com)... 139.9.131.171
正在连接 fishros.com (fishros.com)|139.9.131.171|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:2882 (2.8K) [application/octet-stream]
正在保存至: “/tmp/fishinstall/tools/tool_install_docker.py”/tmp/fishinstall/to 100%[===================>] 2.81K --.-KB/s 用时 0s
2023-05-17 22:50:22 (59.4 MB/s) - 已保存 “/tmp/fishinstall/tools/tool_install_docker.py” [2882/2882])
欢迎使用一键安装ROS-Docker版,支持所有版本ROS,本工具由作者小鱼提供
================================1.版本选择======================================
RUN Choose Task:[请输入括号内的数字]
请选择你要安装的ROS版本名称(请注意ROS1和ROS2区别):
[1]:noetic
[2]:humble
[3]:foxy
[4]:galactic
[5]:melodic
[6]:rolling
[7]:kinetic
[8]:eloquent
[9]:dashing
[10]:crystal
[11]:bouncy
[12]:ardent
[13]:lunar
[14]:indigo
[0]:quit
请输入[]内的数字以选择:5
你选择了melodic(ROS1),该版本目前状态:长期支持
================================2.安装Docker======================================
Run CMD Task:[docker version]
[-]Result:code:127欢迎使用一键安装Docker,支持amd64和arm64架构系统,本工具由作者alyssa提供
开始根据系统架构,为你下载对应版本的docker~
Run CMD Task:[sudo apt update]
[|]获取:6 https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates In[-]Result:success --upgradable’ 来查看它们。Run CMD Task:[sudo apt install apt-transport-https ca-certificates curl software-properties-common -y]
[/]升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 721 个软件包未[-]Result:successRun CMD Task:[curl -fsSL https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu/gpg | sudo apt-key add -]
[-]Result:successRun CMD Task:[sudo apt-key fingerprint 0EBFCD88]
[-]Result:success deb) docker@docker.comRun CMD Task:[sudo add-apt-repository "deb [arch=arm64] https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu $(lsb_release -cs) stable" -y]
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 95, in <module>
sp = SoftwareProperties(options=options)
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 109, in init
self.reload_sourceslist()
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 599, in reload_sourceslist
self.distro.get_sources(self.sourceslist)
File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 93, in get_sources
(self.id, self.codename))
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Raspbian/buster
下载完成,接下来升级apt索引~
Run CMD Task:[sudo apt update]
[|]获取:6 https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates In[-]Result:success --upgradable’ 来查看它们。开始安装最新版本docker CE~
Run CMD Task:[sudo apt --fix-broken install -y]
[/]升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 721 个软件包未[-]Result:successRun CMD Task:[sudo apt-cache search docker-ce ]
[-]Result:successTraceback (most recent call last):
File "/tmp/fishinstall/install.py", line 91, 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_with_docker.py", line 236, in run
self.install_ros_with_docker()
File "/tmp/fishinstall/tools/tool_install_ros_with_docker.py", line 222, in install_ros_with_docker
self.install_docker()
File "/tmp/fishinstall/tools/tool_install_ros_with_docker.py", line 138, in install_docker
run_tool_file('tools.tool_install_docker')
File "/tmp/fishinstall/tools/base.py", line 1233, in run_tool_file
if tool.run()==False: return False
File "/tmp/fishinstall/tools/tool_install_docker.py", line 64, in run
self.install_docker()
File "/tmp/fishinstall/tools/tool_install_docker.py", line 55, in install_docker
AptUtils.install_pkg_check_dep("docker-ce")
File "/tmp/fishinstall/tools/base.py", line 1183, in install_pkg_check_dep
result = AptUtils.install_pkg(name)
File "/tmp/fishinstall/tools/base.py", line 1172, in install_pkg
for key in dic.keys():
AttributeError: 'NoneType' object has no attribute 'keys'这是完整过程
-
@1604333939 一键安装不支持树莓派系统
-
此回复已被删除! -
spric@spric-desktop:~$ rosdep update Traceback (most recent call last): File "/usr/local/bin/rosdep", line 7, in <module> from rosdep2.main import rosdep_main File "/usr/local/lib/python3.5/dist-packages/rosdep2/__init__.py", line 45, in <module> from .lookup import RosdepDefinition, RosdepView, RosdepLookup, \ File "/usr/local/lib/python3.5/dist-packages/rosdep2/lookup.py", line 41, in <module> from .rospkg_loader import RosPkgLoader File "/usr/local/lib/python3.5/dist-packages/rosdep2/rospkg_loader.py", line 39, in <module> import catkin_pkg.package File "/usr/local/lib/python3.5/dist-packages/catkin_pkg/package.py", line 44, in <module> from catkin_pkg.condition import evaluate_condition File "/usr/local/lib/python3.5/dist-packages/catkin_pkg/condition.py", line 17, in <module> import pyparsing as pp File "/usr/local/lib/python3.5/dist-packages/pyparsing/__init__.py", line 100 major: int ^ SyntaxError: invalid syntax
在更新和初始化时,都出现这个报错
-
更新源也错误了
小鱼:检测当前系统ubuntu16.04:xenial 支持一键安装ROS Run CMD Task:[sudo apt update] [-]Result:success --upgradable’ 来查看它们。eleasee Run CMD Task:[sudo apt-cache search curl ] [-]Result:success kage retrieves data from url-format files such as http://, ftp://, package:// file://, etc., and loads the data into memory. Run CMD Task:[sudo apt install curl -y] [-]Result:success .卸载 0 个软件包,有 35 个软件包未被升级。 Run CMD Task:[sudo apt-cache search gnupg2 ] [-]Result:success eplacement (new v2.x)tainer easier Run CMD Task:[sudo apt install gnupg2 -y] [-]Result:success .卸载 0 个软件包,有 35 个软件包未被升级。 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://mirrors.tuna.tsinghua.edu.cn/ros2/ubuntu/'] Run CMD Task:[sudo apt update] [-]Result:success --upgradable’ 来查看它们。arm64 Packages [833 kB] Run CMD Task:[sudo apt-cache search ros-base ] [-]Result:success h extends ros_core and includes other basic non-robot tools like actionlib, dynamic reconfigure, nodelets, and pluginlib. 换源后更新失败,第二次开始切换源,尝试更换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:success Run CMD Task:[sudo apt update] [-]Result:success --upgradable’ 来查看它们。ackages [833 kB] Run CMD Task:[sudo apt-cache search ros-base ] [-]Result:success h extends ros_core and includes other basic non-robot tools like actionlib, dynamic reconfigure, nodelets, and pluginlib. 换源后更新失败,第三次开始切换源,尝试更换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:success Run CMD Task:[sudo apt update] [-]Result:success --upgradable’ 来查看它们。es [131 kB] Run CMD Task:[sudo apt-cache search ros-base ] [-]Result:success h extends ros_core and includes other basic non-robot tools like actionlib, dynamic reconfigure, nodelets, and pluginlib. 换源后更新失败,第四次开始切换源,尝试使用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:success Run CMD Task:[sudo apt update] [-]Result:code:100 org) does not match target host name 'packages.ros.org' 检测到发生证书校验错误['\n', 'WARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n', '\n', 'E: 仓库 “https://packages.ros.org/ros/ubuntu xenial Release” 没有 Release 文件。\n', 'E: 仓库 “https://packages.ros.org/ros2/ubuntu xenial Release” 没有 Release 文件。\n'],自动取消https校验,如有需要请手动删除:rm /etc/apt/apt.conf.d/99verify-peer.conf Run CMD Task:[touch /etc/apt/apt.conf.d/99verify-peer.conf] [-]Result:success Run CMD Task:[echo "Acquire { https::Verify-Peer false }" > /etc/apt/apt.conf.d/99verify-peer.conf] [-]Result:success Run CMD Task:[sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F42ED6FBAB17C654] [-]Result:success -keyserver Run CMD Task:[sudo apt update] [-]Result:code:100 org) does not match target host name 'packages.ros.org' apt更新失败,后续程序可能会继续尝试...,['\n', 'WARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n', '\n', 'E: 仓库 “https://packages.ros.org/ros/ubuntu xenial Release” 没有 Release 文件。\n', 'E: 仓库 “https://packages.ros.org/ros2/ubuntu xenial Release” 没有 Release 文件。\n'] Run CMD Task:[sudo apt-cache search ros-base ] [-]Result:success h extends ros_core and includes other basic non-robot tools like actionlib, dynamic reconfigure, nodelets, and pluginlib. Run CMD Task:[sudo apt update] [-]Result:code:100 org) does not match target host name 'packages.ros.org' 检测到发生证书校验错误['\n', 'WARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n', '\n', 'E: 仓库 “https://packages.ros.org/ros/ubuntu xenial Release” 没有 Release 文件。\n', 'E: 仓库 “https://packages.ros.org/ros2/ubuntu xenial Release” 没有 Release 文件。\n'],自动取消https校验,如有需要请手动删除:rm /etc/apt/apt.conf.d/99verify-peer.conf Run CMD Task:[touch /etc/apt/apt.conf.d/99verify-peer.conf] [-]Result:success Run CMD Task:[echo "Acquire { https::Verify-Peer false }" > /etc/apt/apt.conf.d/99verify-peer.conf] [-]Result:success Run CMD Task:[sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F42ED6FBAB17C654] [-]Result:success -keyserver Run CMD Task:[sudo apt update] [-]Result:code:100 org) does not match target host name 'packages.ros.org' apt更新失败,后续程序可能会继续尝试...,['\n', 'WARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n', '\n', 'E: 仓库 “https://packages.ros.org/ros/ubuntu xenial Release” 没有 Release 文件。\n', 'E: 仓库 “https://packages.ros.org/ros2/ubuntu xenial Release” 没有 Release 文件。\n'] 四次换源后都失败了,请及时联系小鱼获取解决方案并处理!
-
把 /etc/apt/sources.list.d/ 里面的文件里面的https换成http就好
这个问题是由系统证书链过期导致的。
-
@ganyuanzhen
@小鱼 建议小鱼在脚本里面加一个是否启用https的选项,以防止类似的在老旧系统上安装时出现的证书错误 -
@ganyuanzhen 有做这部分工作,可能存在bug,没有捕获
-
wget http://fishros.com/install -O fishros && . fishros
--2023-08-21 14:18:09-- http://fishros.com/install
正在连接 127.0.0.1:7890... 已连接。
已发出 Proxy 请求,正在等待回应... 301 Moved Permanently
位置:http://fishros.com/install/ [跟随至新的 URL]
--2023-08-21 14:18:09-- http://fishros.com/install/
再次使用存在的到 127.0.0.1:7890 的连接。
已发出 Proxy 请求,正在等待回应... 200 OK
长度: 582 [application/octet-stream]
正在保存至: “fishros”fishros 100%[===================>] 582 --.-KB/s 用时 0s
2023-08-21 14:18:09 (53.9 MB/s) - 已保存 “fishros” [582/582])
.: 没有那个文件或目录: fishros
-
@my863124497 改下指令 wget http://fishros.com/install -O fishros && /bin/bash fishros
-
此回复已被删除! -
['', 'sudo: docker: command not found\n']