gpg key terminal resolution "error/message"

Asked by subliminalfix

subliminalfix@probe02:~$ subliminalfix@probe02:~$ gpg --clearsign cd/~ ethics agreement ubuntu.txt
subliminalfix@probe02:~$: command not found
subliminalfix@probe02:~$ usage: gpg [options] --clearsign [filename]
usage:: command not found
subliminalfix@probe02:~$ gpg - -clearsign cd/~ documents/ethics agreement ubuntu.txt
usage: gpg [options] [filename]
subliminalfix@probe02:~$ ls
Desktop
Documents
Downloads
examples.desktop
MacFreda.Publishing.Ubuntu.Pocket.Guide.and.Reference.Jan.2009.eBook-DDU
Mail
Music
Pictures
Public
Templates
Videos
subliminalfix@probe02:~$ cd documents
bash: cd: documents: No such file or directory
subliminalfix@probe02:~$ find . -name UbuntuCodeofConduct-1.0.1.txt

subliminalfix@probe02:~$ gpg --clearsign UbuntuCodeofConduct-1.1.txt

You need a passphrase to unlock the secret key for
user: "subliminalfix <email address hidden>"
768-bit DSA key, ID 948F38C3, created 2010-04-18

gpg: gpg-agent is not available in this session
gpg: can't open `UbuntuCodeofConduct-1.1.txt': No such file or directory
gpg: UbuntuCodeofConduct-1.1.txt: clearsign failed: file open error

any help thanks

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Marc Stewart (marc.stewart) said :
#1

There are a couple of things going wrong here:

1) You can't try to change directory (cd) within a command for gpg.
Change directory first:
cd Documents (or whichever directory the file is in)
Then use gpg to sign the file:
gpg --clearsign UbuntuCodeofConduct-1.1.txt

2) Linux is case sensitive; therefore documents does not equal Documents
Use a capital D when typing:
cd Documents

Revision history for this message
subliminalfix (subliminalfix) said :
#2

thank you marc im a little tired so i must have missed the D

almost worked really puzzling

subliminalfix@probe02:~$ cd Documents
subliminalfix@probe02:~/Documents$ gpg --clearsign UbuntuCodeofConduct-1.1.txt

You need a passphrase to unlock the secret key for
user: "subliminalfix <email address hidden>"
768-bit DSA key, ID 948F38C3, created 2010-04-18

gpg: gpg-agent is not available in this session
subliminalfix@probe02:~/Documents$

Revision history for this message
Marc Stewart (marc.stewart) said :
#3

Almost worked? The output looks like you typed in the correct passphrase. Don't you have:
UbuntuCodeofConduct-1.1.txt.asc
in your Documents directory now?

Revision history for this message
subliminalfix (subliminalfix) said :
#4

again sir thanks yes it has now manifested itself however when i goto open and paste it as stated in the

https://launchpad.net/codeofconduct/1.1/+sign

i get this output with a error message:

There is no application installed for PGP/MIME-encrypted message header files

i have searched all over the internet and to my best guess there really needs to be a step by step somewhere on this that is really complete

any more ideas appreciated

Revision history for this message
subliminalfix (subliminalfix) said :
#5

i have now opened with gedit instead of doc. viewer after using the 2nd click mouse to the scroll menu

processing and has gone through

would really like to find a "comprehensive" guide for these kind of things especially

 if your someone wanting to join a group like

ubuntu beginners team

most would probably give up

thanks for your input again

Revision history for this message
Tom (tom6) said :
#6

Hi :)

That is a good idea for "Community Documentation"
https://help.ubuntu.com/community/Signpost/Answers#contribute-documentation
have a search around in there to see if there is something already that could just use a little editing. Otherwise you might need to write a simple guide using the knowledge you have gained. Other people will then be able to edit & update it

Good luck and regards from
Tom :)

Can you help with this problem?

Provide an answer of your own, or ask subliminalfix for more information if necessary.

To post a message you must log in.