gpg --fingerprint Error Message

Asked by Paul Stewart

I have been following the instructions on the https://wiki.ubuntu.com/UbuntuDevelopment/GettingSetUp page.

When I get to the section "Uploading the GPG Key to LaunchPad" I run the command
gpg --fingerprint <email address hidden> (replacing with my email address)

I keep getting the error message in my terminal
bash: syntax error near unexpected token `newline'

I don't know which file this 'token' is in. How do I remedy this please?

Thanks
Paul Stewart

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu ubiquity Edit question
Assignee:
No assignee Edit question
Solved by:
Colin Watson
Solved:
Last query:
Last reply:
Revision history for this message
Best Colin Watson (cjwatson) said :
#1

Remove the <> from around your e-mail address, and this should work fine.

Technical detail: < and >, unquoted, are redirection operators in the shell. Roughly, < means "read input from the following file name" and > means "write output to the following file name". So this unpacks to "run the 'gpg --fingerprint' command, reading input from the file named '<email address hidden>' and writing output to ... oh dear, I don't seem to have a filename here, help". Actually you don't want to read from a file named '<email address hidden>' at all, but rather run the command 'gpg --fingerprint <email address hidden>', so dropping the <> is the right fix.

I've edited the wiki page to try to be less confusing here.

Revision history for this message
Paul Stewart (paulbrianstewart) said :
#2

Thanks mate,

How doh! of me, I should have been able to figure that out....thanks

Paul

Revision history for this message
Paul Stewart (paulbrianstewart) said :
#3

Thanks Colin Watson, that solved my question.