ROS Problem: stack/package not found
[ROS] Use irobot create in gazebo with ROS

[ROS] Solution to fix "Unable to handle 'index' format version '2', please update rosdistro" problem

Author posted @ 2014年8月12日 07:37 in ROS , 1404 阅读

When I upgrade ROS from Hydro to Indigo on Ubuntu 14.04 Trusty, I followed the installation instructions posted at However, after typing in command "rosdep update", I met a problem saying :

rosdep version: 0.10.24

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/rosdep2/", line 121, in rosdep_main
    exit_code = _rosdep_main(args)
  File "/usr/lib/pymodules/python2.7/rosdep2/", line 264, in _rosdep_main
    return _no_args_handler(command, parser, options, args)
  File "/usr/lib/pymodules/python2.7/rosdep2/", line 272, in _no_args_handler
    return command_handlers[command](options)
  File "/usr/lib/pymodules/python2.7/rosdep2/", line 437, in command_update
  File "/usr/lib/pymodules/python2.7/rosdep2/", line 433, in update_sources_list
    for d, dist in get_index().distributions.items():
  File "/usr/lib/pymodules/python2.7/rosdep2/", line 58, in get_index
    _RDCache.index = rosdistro.get_index(_RDCache.index_url)
  File "/usr/lib/pymodules/python2.7/rosdistro/", line 109, in get_index
    return Index(data, base_url)
  File "/usr/lib/pymodules/python2.7/rosdistro/", line 50, in __init__
    assert int(data['version']) == 1, "Unable to handle '%s' format version '%d', please update rosdistro" % (Index._type, int(data['version']))
AssertionError: Unable to handle 'index' format version '2', please update rosdistro

After trying the solution posted at [1], the problem was still there :-(

Fortunately, the valid solution I found from 古-月[2] is much simpler:

  1.  Download the rosdistro version 0.3.5 from
  2.  Unzip the file and enter the folder "rosdistro-0.3.5", type in command: 
    sudo python install
  3.  Re-run command: rosdep update. Done without any error.





登录 *

loading captcha image...
or Ctrl+Enter