ubuntu kylin16.04 ERROR: Rosdep experienced an error: Could not detect OS

ERROR: Rosdep experienced an error: Could not detect OS

ERROR: Rosdep experienced an error: Could not detect OS, tried ['windows', 'ubuntu', 'rhel', 'qnx', 'osx', 'opensuse', 'mint', 'gentoo', 'freebsd', 'fedora', 'debian', 'cygwin', 'arch']
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.10.25

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/rosdep2/main.py", line 121, in rosdep_main
    exit_code = _rosdep_main(args)
  File "/usr/lib/python2.7/site-packages/rosdep2/main.py", line 266, in _rosdep_main
    return _package_args_handler(command, parser, options, args)
  File "/usr/lib/python2.7/site-packages/rosdep2/main.py", line 343, in _package_args_handler
    lookup = _get_default_RosdepLookup(options)
  File "/usr/lib/python2.7/site-packages/rosdep2/main.py", line 112, in _get_default_RosdepLookup
    verbose=options.verbose)
  File "/usr/lib/python2.7/site-packages/rosdep2/sources_list.py", line 559, in create_default
    matcher = DataSourceMatcher.create_default(os_override=os_override)
  File "/usr/lib/python2.7/site-packages/rosdep2/sources_list.py", line 263, in create_default
    os_name, os_version, os_codename = os_detect.detect_os()
  File "/usr/lib/python2.7/site-packages/rospkg/os_detect.py", line 456, in detect_os
    raise OsNotDetected("Could not detect OS, tried %s"%attempted)
OsNotDetected: Could not detect OS, tried ['windows', 'ubuntu', 'rhel', 'qnx', 'osx', 'opensuse', 'mint', 'gentoo', 'freebsd', 'fedora', 'debian', 'cygwin', 'arch']

原因:未安装lsb_realse,需修改/etc/lsb-realse中的“DISTRIB_ID=Ubuntu Kylin”为”DISTRIB_ID=Ubuntu“

解决步骤:

$:sudo apt-get install lsb

$:cat /etc/lsb-realse

DISTRIB_ID=Ubuntu Kylin
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu Kylin 16.04.1 LTS"

$:sudo vim /etc/lsb-realse

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu Kylin 16.04.1 LTS"

$:rosdep update

你可能感兴趣的:(ros,kylin)