0

line:wget https://packages.osrfoundation.org/gazebo.key -o- | sudo apt-key add -

gpg: no valid OpenPGP data found.

1 Answers1

0

Your syntax is wrong. -o- should be -O -.

wget https://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add -

-o writes the log output to a file, not the downloaded content. And by setting -o - you basically redirect the log output back to stdout.

Gerald Schneider
  • 23,274
  • 8
  • 57
  • 89