在 Peppermint 10 上安装 ROS 时遇到问题
Trouble Installing ROS on Peppermint 10
我在我的 Peppermint OS 上安装了 ROS Melodic。我遵循 this 说明,当我尝试 rosdep 命令时,出现此错误。
ERROR: Rosdep experienced an error: Could not detect OS, tried ['windows', 'nixos', 'clearlinux', 'ubuntu', 'slackware', 'rhel', 'qnx', 'osx', 'tizen', 'opensuse', 'opensuse', 'opensuse', 'openembedded', 'neon', 'mx', 'mint', 'linaro', 'gentoo', 'funtoo', 'freebsd', 'fedora', 'elementary', 'elementary', 'debian', 'cygwin', 'centos', 'manjaro', 'arch', 'alpine']
Please go to the rosdep page [1] and file a bug report with the stack trace below.
[1] : http://www.ros.org/wiki/rosdep
rosdep version: 0.17.1
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/rosdep2/main.py", line 144, in rosdep_main
exit_code = _rosdep_main(args)
File "/usr/lib/python2.7/dist-packages/rosdep2/main.py", line 426, in _rosdep_main
return _no_args_handler(command, parser, options, args)
File "/usr/lib/python2.7/dist-packages/rosdep2/main.py", line 435, in _no_args_handler
return command_handlers[command](options)
File "/usr/lib/python2.7/dist-packages/rosdep2/main.py", line 646, in command_update
skip_eol_distros=not options.include_eol_distros)
File "/usr/lib/python2.7/dist-packages/rosdep2/sources_list.py", line 498, in update_sources_list
rosdep_data = get_gbprepo_as_rosdep_data(dist_name)
File "/usr/lib/python2.7/dist-packages/rosdep2/gbpdistro_support.py", line 150, in get_gbprepo_as_rosdep_data
ctx = create_default_installer_context()
File "/usr/lib/python2.7/dist-packages/rosdep2/__init__.py", line 90, in create_default_installer_context
m.register_platforms(context)
File "/usr/lib/python2.7/dist-packages/rosdep2/platforms/debian.py", line 55, in register_platforms
register_elementary(context)
File "/usr/lib/python2.7/dist-packages/rosdep2/platforms/debian.py", line 82, in register_elementary
(os_name, os_version) = context.get_os_name_and_version()
File "/usr/lib/python2.7/dist-packages/rosdep2/installers.py", line 115, in get_os_name_and_version
os_name = self.os_detect.get_name()
File "/usr/lib/python2.7/dist-packages/rospkg/os_detect.py", line 685, in get_name
self.detect_os()
File "/usr/lib/python2.7/dist-packages/rospkg/os_detect.py", line 655, in detect_os
raise OsNotDetected("Could not detect OS, tried %s" % attempted)
OsNotDetected: Could not detect OS, tried ['windows', 'nixos', 'clearlinux', 'ubuntu', 'slackware', 'rhel', 'qnx', 'osx', 'tizen', 'opensuse', 'opensuse', 'opensuse', 'openembedded', 'neon', 'mx', 'mint', 'linaro', 'gentoo', 'funtoo', 'freebsd', 'fedora', 'elementary', 'elementary', 'debian', 'cygwin', 'centos', 'manjaro', 'arch', 'alpine']
有什么解决办法吗?
先谢谢了。
Peppermint 似乎不支持 ROS。 python 脚本 /usr/lib/python2.7/dist-packages/rospkg/os_detect.py 尝试检测当前的 OS 类型。由于 Peppermint OS 基于 Ubuntu,您可以尝试通过设置 ROS_OS_OVERRIDE 环境变量来覆盖检测到的 OS 类型。快速搜索显示 Peppermint 10 OS 基于 Ubuntu 18.04.2,因此您可以在 运行 命令之前尝试以下操作:
export ROS_OS_OVERRIDE=ubuntu:18.04:bionic
我在我的 Peppermint OS 上安装了 ROS Melodic。我遵循 this 说明,当我尝试 rosdep 命令时,出现此错误。
ERROR: Rosdep experienced an error: Could not detect OS, tried ['windows', 'nixos', 'clearlinux', 'ubuntu', 'slackware', 'rhel', 'qnx', 'osx', 'tizen', 'opensuse', 'opensuse', 'opensuse', 'openembedded', 'neon', 'mx', 'mint', 'linaro', 'gentoo', 'funtoo', 'freebsd', 'fedora', 'elementary', 'elementary', 'debian', 'cygwin', 'centos', 'manjaro', 'arch', 'alpine']
Please go to the rosdep page [1] and file a bug report with the stack trace below.
[1] : http://www.ros.org/wiki/rosdep
rosdep version: 0.17.1
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/rosdep2/main.py", line 144, in rosdep_main
exit_code = _rosdep_main(args)
File "/usr/lib/python2.7/dist-packages/rosdep2/main.py", line 426, in _rosdep_main
return _no_args_handler(command, parser, options, args)
File "/usr/lib/python2.7/dist-packages/rosdep2/main.py", line 435, in _no_args_handler
return command_handlers[command](options)
File "/usr/lib/python2.7/dist-packages/rosdep2/main.py", line 646, in command_update
skip_eol_distros=not options.include_eol_distros)
File "/usr/lib/python2.7/dist-packages/rosdep2/sources_list.py", line 498, in update_sources_list
rosdep_data = get_gbprepo_as_rosdep_data(dist_name)
File "/usr/lib/python2.7/dist-packages/rosdep2/gbpdistro_support.py", line 150, in get_gbprepo_as_rosdep_data
ctx = create_default_installer_context()
File "/usr/lib/python2.7/dist-packages/rosdep2/__init__.py", line 90, in create_default_installer_context
m.register_platforms(context)
File "/usr/lib/python2.7/dist-packages/rosdep2/platforms/debian.py", line 55, in register_platforms
register_elementary(context)
File "/usr/lib/python2.7/dist-packages/rosdep2/platforms/debian.py", line 82, in register_elementary
(os_name, os_version) = context.get_os_name_and_version()
File "/usr/lib/python2.7/dist-packages/rosdep2/installers.py", line 115, in get_os_name_and_version
os_name = self.os_detect.get_name()
File "/usr/lib/python2.7/dist-packages/rospkg/os_detect.py", line 685, in get_name
self.detect_os()
File "/usr/lib/python2.7/dist-packages/rospkg/os_detect.py", line 655, in detect_os
raise OsNotDetected("Could not detect OS, tried %s" % attempted)
OsNotDetected: Could not detect OS, tried ['windows', 'nixos', 'clearlinux', 'ubuntu', 'slackware', 'rhel', 'qnx', 'osx', 'tizen', 'opensuse', 'opensuse', 'opensuse', 'openembedded', 'neon', 'mx', 'mint', 'linaro', 'gentoo', 'funtoo', 'freebsd', 'fedora', 'elementary', 'elementary', 'debian', 'cygwin', 'centos', 'manjaro', 'arch', 'alpine']
有什么解决办法吗? 先谢谢了。
Peppermint 似乎不支持 ROS。 python 脚本 /usr/lib/python2.7/dist-packages/rospkg/os_detect.py 尝试检测当前的 OS 类型。由于 Peppermint OS 基于 Ubuntu,您可以尝试通过设置 ROS_OS_OVERRIDE 环境变量来覆盖检测到的 OS 类型。快速搜索显示 Peppermint 10 OS 基于 Ubuntu 18.04.2,因此您可以在 运行 命令之前尝试以下操作:
export ROS_OS_OVERRIDE=ubuntu:18.04:bionic