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

ROS installation troubles

asked 2021-06-30 18:52:12 -0500

zippyzoo77 gravatar image

updated 2021-07-01 13:34:05 -0500


I am following the ROS installation guide for noetic on an ubuntu focal 20.04 machine. This is the second time I have done this, and before the keys were there, but now it only shows the key for the curl command and it cuts off the rest of the command for using the sudo command, which was there last time I installed it. What is the rest of that command, as the curl command is not working for me. This is the link to the instructions, specifically I am looking at the code box in section 1.3 that says curl -s | sudo apt-key add - And the rest appears to be missing.

edit retag flag offensive close merge delete



And the rest appears to be missing.

What "rest" do you expect?

the curl command is not working for me.

Please elaborate.

The command is correct and working just fine. There is nothing missing. curl prints whatever it gets to the terminal by default, and apt-key add - means: read stdout and add that as a key. Check the manpages.

mgruhler gravatar image mgruhler  ( 2021-07-01 02:24:41 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2021-07-01 13:22:06 -0500

zippyzoo77 gravatar image

Ok, so I was missing that it was all one command, and the curl command was not installed yet on my machine because it is brand new. My brain saw the line and thought two commands, my brain was incorrect on that.

edit flag offensive delete link more


yes exactly, one single command. You can also download the certificate using curl into a file and then read this. But that isn't required, thus the above command.

Yeah, curl doesn't get installed with ubuntu 20.04 per default. I've stumbled upon that as well. So working now? If yes, please mark the question as solved.

mgruhler gravatar image mgruhler  ( 2021-07-02 01:14:32 -0500 )edit

If curl is not present by default, that (ie: the fact it needs to be separately installed first) would be something to add to the instructions.

gvdhoorn gravatar image gvdhoorn  ( 2021-07-02 01:42:42 -0500 )edit

agreed and done.

mgruhler gravatar image mgruhler  ( 2021-07-02 04:28:21 -0500 )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: 2021-06-30 18:52:12 -0500

Seen: 391 times

Last updated: Jul 01 '21