When i try to add new module i get error message on freepbx?

How can i solve this problem?When i try to add some modules via freepbx so that error message appeared on my screen.

Error(s) downloading bulkextensions: Cant
Verify downloaded module
Unable to trust GPG Key - aborting (Cause: Don’t have permission/can’t
write to /var/spool/asterisk/.gnupg)

amportal chown

This will solve my problem?
By the way when i click add module so fatal error message is displayed. It is about php script error. How can i solve this problem?

Friend i typed amportal a chown in terminal but my problem has not solved. Can you describe exactly what i must do in order to solve this problem.

The command is actually:

amportal chown

(post above fixed)