统信UOS系统安装ROS2失败。
-
背景:在统信UOS系统上安装ROS 2
行动:
执行wget http://fishros.com/install -O fishros之后,. fishros,按“1”出现问题
Traceback (most recent call last):
File "/tmp/fishinstall/install.py", line 138, 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 1550, in run_tool_file
if tool.run()==False: return False
File "/tmp/fishinstall/tools/tool_install_ros.py", line 457, in run
self.install_ros()
File "/tmp/fishinstall/tools/tool_install_ros.py", line 442, in install_ros
if not self.support_install(): return False
File "/tmp/fishinstall/tools/tool_install_ros.py", line 342, 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 735, in get_codename
self.detect_os()
File "/tmp/fishinstall/tools/base.py", line 695, 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']
分析:在系统程序判断中不支持uos系统。不过uos系统底层也是基于debian的吧,所以我认为代码应该优化一下,谢谢。