-
Notifications
You must be signed in to change notification settings - Fork 171
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
sudo and rosdep #473
Comments
rosdep assumes that sudo is installed, which is the reason you have the "No such file or directory" error. If you like you can add a dependency on sudo in the https://github.com/ros-infrastructure/rosdep/blob/master/stdeb.cfg file and it will be a dependency in the next rosdep release. The other thing about running Either way, I don't think these two issues are related, running rosdep as root and rosdep requiring sudo. |
As @wjwwood mentioned the warning is for most users using sudo if you're knowningly running as root you can ignore the warning. I don't think we should add a dependency on sudo. For the use of rosdep without sudo installed in docker you should just use the |
I implemented a simple possible fix for the sudo issue in #474. Maybe you can give that a shot. As mentioned by William and Tully the Warning is a separate issue, and it should actually just be a warning, so the update should still work fine, or doesn't it? |
@tfoote what installers would i need to disable? is there a list of all of them? I found this fixes the current issue: |
@tfoote why not have a dependency on sudo? Just because it is technically optional or some other reason? Thanks @NikolausDemmel that looks good to me for addressing this particular issue (running rosdep as root in docker without sudo). However, I think that if we do not add a dependency on sudo, then we should have a better error message when sudo is not available. This exact same issue will come up if @davetcoleman now attempts to rosdep as a non-root user within docker. |
@wjwwood, considering your comment I'm not sure if this issue is then actually closed by my PR. After the PR sudo is even "more optional". I agree on the need for a better error message though. |
I'll reopen this to track the better error message. I would be great to detect if it doesn't exist and warn the user if it wants to use it but it's not available. At the same time it can fall back to trying without sudo. |
Is there a way to suppress |
When running
rosdep
in a Docker container for CI we always get:Is there a work around?
If not, the debian package
python-rosdep
should also require thesudo
package be installed, because currentlyrosdep
will fail with unuseful error message:That is caused by the Docker container not having
sudo
installed by default.The text was updated successfully, but these errors were encountered: