9

Now I'm using Ubuntu12.04.04 LTS.

I tried to create my gpg key with following steps on "Passwords and Keys" program.

enter image description here

enter image description here

enter image description here

enter image description here

I don't know why this error was occurred. According to I skipped some steps.

Braiam
  • 66,947
  • 30
  • 177
  • 264
xiaodongjie
  • 2,796
  • 1
  • 17
  • 37

1 Answers1

4

The reason that error was occurred are following:

~/.gnupg/*.gpg files had read-only permissions.

Before I use this operation, I created a gpg key by using following commands.

sudo -s
gpg --gen-key

After that, I logged in regular user.

Thus, I hadn't the permissions to write ~/.gnupg/*.gpg (it's owner is root) files.

The solution: I modified it's permission by using following commands so that I created gpg key successfully.

sudo -s
chown xxx ~/.gnupg/*.gpg
Oli
  • 289,791
  • 117
  • 680
  • 835
xiaodongjie
  • 2,796
  • 1
  • 17
  • 37