gpg: WARNING: unsafe ownership on homedir /home/USER/.gnupg

I get an warning about unsafe ownership on homedir /home/USER/.gnupg

 curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo gpg --dearmor -o /usr/share/keyrings/githubcli-archive-keyring.gpg

Results:

gpg: WARNING: unsafe ownership on homedir '/home/USER/.gnupg'

I have tried the followings:

chown -R $(USER) ~/.gnupg/

find ~/.gnupg -type f -exec chmod 600 {} ;
find ~/.gnupg -type d -exec chmod 700 {} ;

sudo gpgconf --kill dirmngr
sudo chown -R USER:USER /home/USER/.gnupg
chmod 700 /home/USER/.gnupg
chmod 600 ~/.gnupg/*

Nothing worked!

Results of ls -al /home/elias/.gnupg

drwx------  4 USER USER  4096 Jul  1 19:33 .
drwxr-xr-x 96 USER USER 20480 Jul 10 11:19 ..
drw-------  2 USER USER  4096 Feb 13  2019 crls.d
drw-------  2 USER USER  4096 Aug 13  2018 private-keys-v1.d
-rw-------  1 USER USER  2305 Feb 13  2019 pubring.kbx
-rw-------  1 USER USER   584 Feb 13  2019 pubring.kbx~
-rw-------  1 USER USER  1200 Aug 13  2018 trustdb.gpg

It may be of relevance:

error:45 http://ppa.launchpad.net/hugin/hugin-builds/ubuntu bionic Release    
  404  Not Found (IP: 91.189.95.85 80)
Hit:32 https://www.icesi.edu.co/CRAN/bin/linux/ubuntu xenial-cran35/ InRelease 
error:25 https://repo.skype.com/deb stable InRelease                   
  The following signatures were not valid: EXPKEYSIG 1F3045A5DF7587C3 Skype Linux Client Repository <se-um@microsoft.com>
error:30 http://apt.insynchq.com/ubuntu bionic InRelease
  The following signatures were not valid: EXPKEYSIG A684470CACCAF35C Insynchq Inc <services@insynchq.com>
E: The repository 'https://packages.sury.org/php bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://ppa.launchpad.net/hugin/hugin-builds/ubuntu bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://repo.skype.com/deb stable InRelease: The following signatures were not valid: EXPKEYSIG 1F3045A5DF7587C3 Skype Linux Client Repository <se-um@microsoft.com>
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://apt.insynchq.com/ubuntu bionic InRelease: The following signatures were not valid: EXPKEYSIG A684470CACCAF35C Insynchq Inc <services@insynchq.com>