what's the key-id in trusted.gpg.d?
Hi! I'm a newbie just following "http://wiki.ros.org/noetic/Installation/Ubuntu" have some test.
But there's a warning in shell. [OS: ubuntu 21.04]
[1.3 Set up your keys]
daneil @vpc:~$ curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
gpg: no valid OpenPGP data found.
After a few google later. I guess It should be written like this:
$ curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo gpg --no-default-keyring --keyring /etc/apt/trusted.gpg.d/{key-id}.gpg --import -
My question is What's the {key-id}? Thanks!
setup,noetic,ubuntu,install
Asked by yang on 2021-09-23 21:03:40 UTC
Answers
I installed noetic
using the apt-key add -
method, and it worked fine. I don't remember if I got the warning or not (note that it is only a warning telling you something is going to stop working in the future, it is not an error.)
Looking at the man pages for gpg
and apt-key
, {key-id}
appears to be a name you make up to remind yourself what this key is for. For example, you could use ros
.
Asked by Mike Scheutzow on 2021-09-25 10:31:34 UTC
Comments
I tried the curl command provided in the above question and got an issue.
gpg: keyserver receive failed: End of file
W: The key(s) in the keyring /etc/apt/trusted.gpg.d/ros.gpg are ignored as the file has an unsupported filetype.
Any solution for this ?
Asked by ros_user_ak on 2022-05-19 02:21:27 UTC
That first line looks like the error from using apt-key
, not curl
. Also, before running the command you should remove /etc/apt/trusted.gpg.d/ros.gpg
if you already created a corrupt file there.
Asked by Mike Scheutzow on 2022-05-19 08:48:02 UTC
Comments