ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

pip/easy_install -U rosinstall problem

asked 2012-02-01 18:47:03 -0600

prince gravatar image

updated 2012-03-13 22:12:18 -0600

Hi, I am installing Diamondback afresh on Ubuntu10.04 using repository deb packages. The steps are followed as given in wiki. By default rosinstall is not setup. I am stuck while following the steps as in . I am behind a proxy for which http_proxy and https_proxy is defined.

Following is the output on console:

Searching for rosinstall


Download error: [Errno -2] Name or service not known -- Some packages may not be found!

This repeats couple of times. Is this issue related to proxy??? I do not face any problem when having a direct internet connnection.

Also installation of package ros-diamondback-ros-release deb ver:0.1.14-s131s503298 do not help.

I had also tried using pip. Following is the output of pip log.

  Downloading/unpacking rosinstall
  Getting page
  Could not fetch URL <urlopen error [Errno -2] Name or service not known>
  Will skip URL when looking for download links for rosinstall
  Getting page
  Could not fetch URL <urlopen error [Errno -2] Name or service not known>
  Will skip URL when looking for download links for rosinstall
  Cannot fetch index base URL
Cannot find requirement rosinstall, nor fetch index URL
Exception information:
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/", line 252, in main, args)
  File "/usr/lib/python2.6/dist-packages/", line 408, in run
    requirement_set.install_files(finder, force_root_egg_info=self.bundle)
  File "/usr/lib/python2.6/dist-packages/", line 1750, in install_files
    url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
  File "/usr/lib/python2.6/dist-packages/", line 996, in find_requirement
    url_name = self._find_url_name(Link(self.index_urls[0]), url_name, req)
  File "/usr/lib/python2.6/dist-packages/", line 1073, in _find_url_name
    raise DistributionNotFound('Cannot find requirement %s, nor fetch index URL %s' % (req, index_url))
DistributionNotFound: Cannot find requirement rosinstall, nor fetch index URL

Thanks prince

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted

answered 2012-02-22 15:31:40 -0600

tfoote gravatar image

It looks like easy_install obey's a environment variable to setup proxys. blog post

You can also use pip the replacement for easy_install which has a --proxy argument man page

edit flag offensive delete link more


I did set http_proxy, https_proxy. It did not worked and I end up copying packages from other machine. Maybe something is broken here or i might had made some silly mistake in exporting http_proxy. I believe we shall close this question.

prince gravatar image prince  ( 2012-02-22 18:19:30 -0600 )edit

It still do not works :( I can go to webpage and download one of rosinstall pkgs. What next shall i do? Readme file is not helpful enough.

prince gravatar image prince  ( 2012-02-29 21:52:55 -0600 )edit

This is a problem for pip/easy_install community. I suggest that you ask this problem on their forums.

tfoote gravatar image tfoote  ( 2012-03-01 10:17:40 -0600 )edit

answered 2012-10-29 03:31:06 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

I had similar issue with proxy environment

Here is how I solved the issue: 1. Setup the proxy in /etc/environment file 2. use "sudo -E easy_install <command>"

-E option used the environment of the current user.

Let me know if this helps you to solve the issue

edit flag offensive delete link more

answered 2012-03-10 21:26:44 -0600

KruseT gravatar image

updated 2012-03-14 08:15:29 -0600

Also please avoid $ easy_install -U rosinstall

I changed that on the wiki page as well. Use

$ sudo easy_install -U rosinstall vcstools


$ sudo pip install -U rosinstall

edit flag offensive delete link more


i had attached pip command log with main question.

prince gravatar image prince  ( 2012-03-13 22:12:55 -0600 )edit

sure i just responded to the title of you question. It was just a remark.

KruseT gravatar image KruseT  ( 2012-03-14 08:16:26 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2012-02-01 18:47:03 -0600

Seen: 3,161 times

Last updated: Oct 29 '12