Error Upgrading Modules: GPG Verify File check failed


#21

before you do that

whoami

you need to be asterisk or root


#22

~$ whoami
asterisk
asterisk@ubuntu:~$ chmod -R 600 /home/asterisk/.gnupg
chmod: cannot access ‘/home/asterisk/.gnupg/pubring.kbx’: Permission denied
chmod: cannot access ‘/home/asterisk/.gnupg/private-keys-v1.d’: Permission denied
chmod: cannot access ‘/home/asterisk/.gnupg/random_seed’: Permission denied
chmod: cannot access ‘/home/asterisk/.gnupg/crls.d’: Permission denied
chmod: cannot access ‘/home/asterisk/.gnupg/pubring.kbx~’: Permission denied
chmod: cannot access ‘/home/asterisk/.gnupg/S.dirmngr’: Permission denied
chmod: cannot access ‘/home/asterisk/.gnupg/trustdb.gpg’: Permission denied


#23

as root (sudo = switch user and do as root)

sudo ls -l /home/asterisk/

then (sudo makes you effectively root)

sudo chown -R asterisk:asterisk /home/asterisk/

Got to RT&M, for an Ubuntu user start with


#24

If I run these commands in asterisk user, it asks for asterisk password.

As root the output is like this:

sudo ls -l /home/asterisk/

total 0
root@ubuntu:/home/asterisk# sudo chown -R asterisk:asterisk /home/asterisk/
root@ubuntu:/home/asterisk#

And, the same gpg permission error again!


#25

if you have

sudo ls -l /home/asterisk/
total 0

then you have a bigger problem, The asterisk user’s home directory is defined in /etc/passwd

grep asterisk /etc/passwd|cut -d “:” -f 6

would reveal it. If it is /var/lib/asterisk then you kinda didn’t follow the recipe fully, but just redirect your efforts to the real asterisk home directory. (or change it :wink: )

edit

I should have said " ls -la" as any directory starting with . is “hidden” and -a would reveal it.


#26

ls -al /home/asterisk

total 28
drwxr-xr-x 3 asterisk asterisk 4096 Jul 18 18:17 .
drwxr-xr-x 3 root root 4096 Jul 18 06:36 …
-rw-r–r-- 1 asterisk asterisk 1090 Jul 18 18:17 .bash_history
-rw-r–r-- 1 asterisk asterisk 220 Jun 24 2016 .bash_logout
-rw-r–r-- 1 asterisk asterisk 3771 Jun 24 2016 .bashrc
drw------- 4 asterisk asterisk 4096 Jul 18 18:28 .gnupg
-rw-r–r-- 1 asterisk asterisk 655 Jun 24 2016 .profile

$ grep asterisk /etc/passwd|cut -d “:” -f 6
/home/asterisk


#27

i changed passwd of asterisk user (as i didnt know default) and ran gpg --refresh-keys commands with sudo and gpg error stands resolved.
Thanks for all the help.


#28

This still seems to be an issue.

The following error(s) occured:
 - File Integrity failed for /var/www/html/admin/modules/_cache/framework-13.0.197.22.tgz.gpg - aborting (Cause: Unable to download GPG key B53D215A755231A3, or find  or )

gpg --keyserver pgp.mit.edu --recv-key B53D215A755231A3
gpg: requesting key 755231A3 from hkp server pgp.mit.edu
gpgkeys: key B53D215A755231A3 not found on keyserver
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0


(Itzik) #29

No, this isn’t a issue lasting for 3 years.

Search the forum, it was recently discussed here


(system) closed #30

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.