line:wget https://packages.osrfoundation.org/gazebo.key -o- | sudo apt-key add -
gpg: no valid OpenPGP data found.
line:wget https://packages.osrfoundation.org/gazebo.key -o- | sudo apt-key add -
gpg: no valid OpenPGP data found.
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.