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

Asked by bra10n

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:
Last query:
Last reply:
Revision history for this message
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

Revision history for this message
bra10n (bra10n-deactivatedaccount) said :
#2

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.

Revision history for this message
bra10n (bra10n-deactivatedaccount) said :
#3

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

Revision history for this message
bra10n (bra10n-deactivatedaccount) said :
#4

Thanks Marc Stewart, that solved my question.