Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RUN rosdep init error #971

Open
duguguang opened this issue Aug 16, 2022 · 2 comments
Open

RUN rosdep init error #971

duguguang opened this issue Aug 16, 2022 · 2 comments

Comments

@duguguang
Copy link

a@b:/tmp/prerelease_job$ ./prerelease.sh
Step 24/27 : RUN rosdep init
---> Running in 9ee7afba1935
ERROR: cannot download default sources list from:
https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/sources.list.d/20-default.list
Website may be down.
Removing intermediate container 9ee7afba1935
The command '/bin/sh -c rosdep init' returned a non-zero code: 4

but i can visit the page and the command sudo rosdep init , rosdep update run in the terminal is ok

@tfoote
Copy link
Member

tfoote commented Aug 16, 2022

That sounds like you have a connectivity error from your container.

There's lots of reasons why it might be a problem. https://answers.ros.org/question/345503/website-may-be-down-error-when-i-try-sudo-rosdep-init/

You'll need to debug your system better. Likely enter into the container and run the command manually.

Also if you want more help please include the full commands that your running as well as minimal instructions to recreate the problem, otherwise we're just guessing what's going wrong.

@duguguang
Copy link
Author

Finally i found the problem, Compare the cmd, the /bin/sh is slow and report the error
nokov@nokov-Host:/tmp/prerelease_job$ sudo /bin/sh -c "rosdep init"
ERROR: cannot download default sources list from:
https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/sources.list.d/20-default.list
Website may be down.

nokov@nokov-Host:/tmp/prerelease_job$ sudo rosdep init
Wrote /etc/ros/rosdep/sources.list.d/20-default.list
Recommended: please run

rosdep update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants