Code of Conduct: gpg-agent is not available in this session

Asked by bra10n on 2010-07-20

In trying to complete the process of signing the C.o.C, I came across this problem...
gpg-agent is not available in this session
How do I finish the process?
Terminal output as follows:

bra10n@bra10n-desktop:~$ gpg --clearsign UbuntuCodeofConduct-1.1.txt

You need a passphrase to unlock the secret key for
user: "Dennis Michael Wickman <email address hidden>"
2048-bit RSA key, ID 28684A3B, created 2010-07-20

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
bra10n@bra10n-desktop:~$

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Marc Stewart
Solved:
2010-07-20
Last query:
2010-07-20
Last reply:
2010-07-20
Best Marc Stewart (marc.stewart) said : #1

gpg-agent isn't the problem here: you'll get the "not available" message even when you sign the CoC successfully.

"gpg: can't open `UbuntuCodeofConduct-1.1.txt': No such file or directory" is the error message to pay attention to. It means that you're in the wrong directory when you try to run gpg.

In most cases, UbuntuCodeofConduct-1.1.txt is downloaded to "Downloads", rather than the home directory, so try:
cd ~/Downloads
and then:
gpg --clearsign UbuntuCodeofConduct-1.1.txt

Marc,
Thank you for you response.
However I remain unable to to complete this task. What seemingly began as a very well controlled and 'tight' instruction set has turned farcical. Forgive me for missing the simple change of directory; such an oversight in the instruction set I did not foresee.
I have since generated a new PGP key which I have sent over an hour ago, but which is still to make the Ubuntu key server. I have deactivated the initial key and trust this is not impacting on this latest attempt.

Finally success. I might also add that the entire C.o.C was required to be pasted as confirmation, and not merely the PGP signature section as requested.
Thanks again for your assistance

Thanks Marc Stewart, that solved my question.