小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
ubuntu18.04一键安装ros/ros2出现OsNotDetected: Could not detect OS
-
wget http://fishros.com/install -O fishros && . fishros 然后选择1安装ros/ros2,最后提示请输入[]内的数字以选择:1
Run CMD Task:[wget http://mirror.fishros.com/install/tools/tool_install_ros.py -O /tmp/fishinstall/tools/tool_install_ros.py --no-check-certificate]
[/][0.00s] --2024-12-05 10:49:12-- http://mirror.fishros.com/install/tools/tool[][0.04s] 正在解析主机 mirror.fishros.com (mirror.fishros.com)... 47.119.165.16[|][0.04s] 正在连接 mirror.fishros.com (mirror.fishros.com)|47.119.165.169|:80..[-][0.04s] CMD Result:successRun CMD Task:[wget http://mirror.fishros.com/install/tools/tool_config_rosenv.py -O /tmp/fishinstall/tools/tool_config_rosenv.py --no-check-certificate]
[/][0.00s] --2024-12-05 10:49:12-- http://mirror.fishros.com/install/tools/tool[][0.02s] 正在解析主机 mirror.fishros.com (mirror.fishros.com)... 47.119.165.16[|][0.02s] 正在连接 mirror.fishros.com (mirror.fishros.com)|47.119.165.169|:80..[-][0.02s] CMD Result:successRun CMD Task:[wget http://mirror.fishros.com/install/tools/tool_config_system_source.py -O /tmp/fishinstall/tools/tool_config_system_source.py --no-check-certificate]
[/][0.00s] --2024-12-05 10:49:13-- http://mirror.fishros.com/install/tools/tool[][0.02s] 正在解析主机 mirror.fishros.com (mirror.fishros.com)... 47.119.165.16[|][0.02s] 正在连接 mirror.fishros.com (mirror.fishros.com)|47.119.165.169|:80..[-][0.02s] CMD Result:success欢迎使用一键安装ROS和ROS2,支持树莓派Jetson,本工具由作者小鱼提供
欢迎使用ROS开箱子工具,本工具由[鱼香ROS]小鱼贡献..检测到程序发生异常退出,请打开:https://fishros.org.cn/forum 携带如下内容进行反馈
标题:使用一键安装过程中遇到程序崩溃
Traceback (most recent call last):
File "/tmp/fishinstall/install.py", line 134, in <module>
main()
File "/tmp/fishinstall/install.py", line 123, in main
run_tool_file(tools[code]['tool'].replace("/","."))
File "/tmp/fishinstall/tools/base.py", line 1476, in run_tool_file
if tool.run()==False: return False
File "/tmp/fishinstall/tools/tool_install_ros.py", line 413, in run
self.install_ros()
File "/tmp/fishinstall/tools/tool_install_ros.py", line 398, in install_ros
if not self.support_install(): return False
File "/tmp/fishinstall/tools/tool_install_ros.py", line 300, in support_install
if (osversion.get_codename() not in ros_dist_dic.keys()) and (osversion.get_codename() not in ros2_dist_dic.keys()):
File "/tmp/fishinstall/tools/base.py", line 691, in get_codename
self.detect_os()
File "/tmp/fishinstall/tools/base.py", line 651, in detect_os
raise OsNotDetected("Could not detect OS, tried %s" % attempted)
tools.base.GetOsVersion.<locals>.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']本次运行详细日志文件已保存至 /tmp/fishros_install.log