my OS debug data: tracing of key addition from the scratch
~/Desktop ❯ rm -r ~/.gnupg
rm: cannot remove '/home/m/.gnupg': No such file or directory
~/Desktop ❯ sudo rm -r /etc/pacman.d/gnupg
~/Desktop ❯ sudo rm -r /etc/pacman.d/gnupg
rm: cannot remove '/etc/pacman.d/gnupg': No such file or directory
~/Desktop ❯ sudo pacman-key -l
==> ERROR: You do not have sufficient permissions to read the pacman keyring.
==> Use 'pacman-key --init' to correct the keyring permissions.
~/Desktop ❯ sudo pacman-key --init
gpg: /etc/pacman.d/gnupg/trustdb.gpg: trustdb created
gpg: no ultimately trusted keys found
gpg: starting migration from earlier GnuPG versions
gpg: porting secret keys from '/etc/pacman.d/gnupg/secring.gpg' to gpg-agent
gpg: migration succeeded
==> Generating pacman master key. This may take some time.
gpg: Generating pacman keyring master key...
gpg: key 601F2078157D111B marked as ultimately trusted
gpg: directory '/etc/pacman.d/gnupg/openpgp-revocs.d' created
gpg: revocation certificate stored as '/etc/pacman.d/gnupg/openpgp-revocs.d/98609D2BE03FC81198503F29601F2078157D111B.rev'
gpg: Done
==> Updating trust database...
gpg: marginals needed: 3 completes needed: 1 trust model: pgp
gpg: depth: 0 valid: 1 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 1u
~/Desktop ❯ sudo pacman-key -l | wc -l
6
~/Desktop ❯ sudo pacman-key -l
/etc/pacman.d/gnupg/pubring.gpg
-------------------------------
pub rsa4096 2021-11-29 [SC]
98609D2BE03FC81198503F29601F2078157D111B
uid [ultimate] Pacman Keyring Master Key <pacman@localhost>
~/Desktop ❯ sudo pacman -Sy gnupg archlinux-keyring manjaro-keyring
:: Synchronising package databases...
core is up to date
extra is up to date
community is up to date
multilib is up to date
chaotic-aur 1649.1 KiB 2.23 MiB/s 00:01 [####################################################################] 100%
warning: gnupg-2.2.32-2 is up to date -- reinstalling
warning: archlinux-keyring-20211028-1 is up to date -- reinstalling
warning: manjaro-keyring-20210910-2 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...
Package (3) Old Version New Version Net Change Download Size
core/archlinux-keyring 20211028-1 20211028-1 0.00 MiB 0.96 MiB
core/gnupg 2.2.32-2 2.2.32-2 0.00 MiB 2.38 MiB
core/manjaro-keyring 20210910-2 20210910-2 0.00 MiB 0.14 MiB
Total Download Size: 3.47 MiB
Total Installed Size: 11.49 MiB
Net Upgrade Size: 0.00 MiB
:: Proceed with installation? [Y/n]
:: Retrieving packages...
manjaro-keyring-20210910-2-any 141.6 KiB 253 KiB/s 00:01 [####################################################################] 100%
gnupg-2.2.32-2-x86_64 2.4 MiB 2.43 MiB/s 00:01 [####################################################################] 100%
archlinux-keyring-20211028-1-any 979.1 KiB 489 KiB/s 00:02 [####################################################################] 100%
Total (3/3) 3.5 MiB 1735 KiB/s 00:02 [####################################################################] 100%
(3/3) checking keys in keyring [####################################################################] 100%
downloading required keys...
:: Import PGP key 51E8B148A9999C34, "Evangelos Foutras <foutrelis@archlinux.org>"? [Y/n]
:: Import PGP key 6D42BDD116E0068F, "Christian Hesse <arch@eworm.de>"? [Y/n]
:: Import PGP key DAD3B211663CA268, "Bernhard Landauer <oberon@manjaro.org>"? [Y/n]
(3/3) checking package integrity [####################################################################] 100%
error: gnupg: signature from "Evangelos Foutras <foutrelis@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/gnupg-2.2.32-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]
error: archlinux-keyring: signature from "Christian Hesse (Arch Linux Package Signing) <arch@eworm.de>" is unknown trust
:: File /var/cache/pacman/pkg/archlinux-keyring-20211028-1-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]
error: manjaro-keyring: signature from "Bernhard Landauer <bernhard@manjaro.org>" is unknown trust
:: File /var/cache/pacman/pkg/manjaro-keyring-20210910-2-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.
~/Desktop ❯ sudo pacman-key -l | wc -l
25
~/Desktop ❯ sudo pacman-key -l
/etc/pacman.d/gnupg/pubring.gpg
-------------------------------
pub rsa4096 2021-11-29 [SC]
98609D2BE03FC81198503F29601F2078157D111B
uid [ultimate] Pacman Keyring Master Key <pacman@localhost>
pub rsa2048 2010-11-12 [SC]
86CFFCA918CF3AF47147588051E8B148A9999C34
uid [ unknown] Evangelos Foutras <foutrelis@archlinux.org>
sub rsa2048 2010-11-12 [E]
pub rsa2048 2011-08-12 [SC]
02FD1C7A934E614545849F19A6234074498E9CEE
uid [ unknown] Christian Hesse (Arch Linux Package Signing) <arch@eworm.de>
sub rsa2048 2011-08-12 [E]
sub ed25519 2019-08-29 [S]
sub cv25519 2019-08-29 [E]
pub rsa2048 2015-07-12 [SC]
39F0EC1AE50B37E5F3196F09DAD3B211663CA268
uid [ unknown] Bernhard Landauer <bernhard@manjaro.org>
uid [ unknown] Bernhard Landauer <oberon@manjaro.org>
sub dsa2048 2015-10-01 [S]
sub rsa2048 2015-07-12 [E]
~/Desktop ❯ sudo pacman-key --populate archlinux manjaro
==> Appending keys from archlinux.gpg...
==> Appending keys from manjaro.gpg...
gpg: error reading key: No public key
gpg: error reading key: No public key
==> Locally signing trusted keys in keyring...
-> Locally signed 28 keys.
==> Importing owner trust values...
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: inserting ownertrust of 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
==> Disabling revoked keys in keyring...
-> Disabled 47 keys.
==> Updating trust database...
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 1EB2638FF56C0C53: no user ID for key signature packet of class 10
gpg: key 1EB2638FF56C0C53: no user ID for key signature packet of class 10
gpg: marginals needed: 3 completes needed: 1 trust model: pgp
gpg: depth: 0 valid: 1 signed: 28 trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: depth: 1 valid: 28 signed: 84 trust: 0-, 0q, 0n, 28m, 0f, 0u
gpg: depth: 2 valid: 79 signed: 26 trust: 79-, 0q, 0n, 0m, 0f, 0u
gpg: next trustdb check due at 2022-01-20
~/Desktop ❯ sudo pacman-key -l | wc -l
1042
~/Desktop ❯ sudo pacman-key -l 5F7078DF1E0FDF8745D5B984108E0767D5F34DE4 86CFFCA918CF3AF47147588051E8B148A9999C34 02FD1C7A934E614545849F19A6234074498E9CEE 39F0EC1AE50B37E5F3196F09DAD3B211663CA268
pub rsa2048 2010-11-12 [SC]
86CFFCA918CF3AF47147588051E8B148A9999C34
uid [ full ] Evangelos Foutras <evangelos@foutrelis.com>
uid [ full ] Evangelos Foutras <foutrelis@archlinux.org>
uid [ full ] Evangelos Foutras <foutrelis@gmail.com>
sub rsa2048 2010-11-12 [E]
pub rsa2048 2011-08-12 [SC]
02FD1C7A934E614545849F19A6234074498E9CEE
uid [marginal] Christian Hesse <eworm@archlinux.org>
uid [ full ] Christian Hesse (Arch Linux Package Signing) <arch@eworm.de>
sub rsa2048 2011-08-12 [E]
sub ed25519 2019-08-29 [S]
sub cv25519 2019-08-29 [E]
pub rsa2048 2015-07-12 [SC]
39F0EC1AE50B37E5F3196F09DAD3B211663CA268
uid [ full ] Bernhard Landauer <bernhard@manjaro.org>
uid [ full ] Bernhard Landauer <oberon@manjaro.org>
sub dsa2048 2015-10-01 [S]
sub rsa2048 2015-07-12 [E]
~/Desktop ❯ sudo pacman-key --refresh-keys
gpg: key 51E8B148A9999C34: "Evangelos Foutras <evangelos@foutrelis.com>" 3 new signatures
gpg: Total number processed: 1
gpg: new signatures: 3
pub rsa2048 2010-11-12 [SC]
86CFFCA918CF3AF47147588051E8B148A9999C34
...
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: key 786C63F330D7CB92: no user ID for key signature packet of class 10
gpg: public key DB323392796CA067 is 3037 days newer than the signature
gpg: key 1EB2638FF56C0C53: no user ID for key signature packet of class 10
gpg: key 1EB2638FF56C0C53: no user ID for key signature packet of class 10
gpg: marginals needed: 3 completes needed: 1 trust model: pgp
gpg: depth: 0 valid: 1 signed: 27 trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: depth: 1 valid: 27 signed: 86 trust: 0-, 0q, 0n, 27m, 0f, 0u
gpg: depth: 2 valid: 79 signed: 26 trust: 79-, 0q, 0n, 0m, 0f, 0u
gpg: next trustdb check due at 2022-01-20
~/Desktop ❯ sudo pacman-key -l | wc -l
1067
~/Desktop ❯ sudo pacman-key -l 5F7078DF1E0FDF8745D5B984108E0767D5F34DE4 86CFFCA918CF3AF47147588051E8B148A9999C34 02FD1C7A934E614545849F19A6234074498E9CEE 39F0EC1AE50B37E5F3196F09DAD3B211663CA268
pub rsa2048 2010-11-12 [SC]
86CFFCA918CF3AF47147588051E8B148A9999C34
uid [ full ] Evangelos Foutras <evangelos@foutrelis.com>
uid [ full ] Evangelos Foutras <foutrelis@archlinux.org>
uid [ full ] Evangelos Foutras <foutrelis@gmail.com>
sub rsa2048 2010-11-12 [E]
pub rsa2048 2011-08-12 [SC]
02FD1C7A934E614545849F19A6234074498E9CEE
uid [marginal] Christian Hesse <eworm@archlinux.org>
uid [ full ] Christian Hesse (Arch Linux Package Signing) <arch@eworm.de>
sub rsa2048 2011-08-12 [E]
sub ed25519 2019-08-29 [S]
sub cv25519 2019-08-29 [E]
pub rsa2048 2015-07-12 [SC]
39F0EC1AE50B37E5F3196F09DAD3B211663CA268
uid [ full ] Bernhard Landauer <bernhard@manjaro.org>
uid [ full ] Bernhard Landauer <oberon@manjaro.org>
sub dsa2048 2015-10-01 [S]
sub rsa2048 2015-07-12 [E]
~/Desktop ❯ sudo pacman -Sy gnupg archlinux-keyring manjaro-keyring
:: Synchronising package databases...
core is up to date
extra is up to date
community is up to date
multilib is up to date
chaotic-aur 1649.1 KiB 461 KiB/s 00:04 [####################################################################] 100%
warning: gnupg-2.2.32-2 is up to date -- reinstalling
warning: archlinux-keyring-20211028-1 is up to date -- reinstalling
warning: manjaro-keyring-20210910-2 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...
Package (3) Old Version New Version Net Change Download Size
core/archlinux-keyring 20211028-1 20211028-1 0.00 MiB 0.96 MiB
core/gnupg 2.2.32-2 2.2.32-2 0.00 MiB 2.38 MiB
core/manjaro-keyring 20210910-2 20210910-2 0.00 MiB 0.14 MiB
Total Download Size: 3.47 MiB
Total Installed Size: 11.49 MiB
Net Upgrade Size: 0.00 MiB
:: Proceed with installation? [Y/n]
:: Retrieving packages...
manjaro-keyring-20210910-2-any 141.6 KiB 335 KiB/s 00:00 [####################################################################] 100%
archlinux-keyring-20211028-1-any 979.1 KiB 1399 KiB/s 00:01 [####################################################################] 100%
gnupg-2.2.32-2-x86_64 2.4 MiB 1851 KiB/s 00:01 [####################################################################] 100%
Total (3/3) 3.5 MiB 2.53 MiB/s 00:01 [####################################################################] 100%
(3/3) checking keys in keyring [####################################################################] 100%
(3/3) checking package integrity [####################################################################] 100%
(3/3) loading package files [####################################################################] 100%
(3/3) checking for file conflicts [####################################################################] 100%
(3/3) checking available disk space [####################################################################] 100%
:: Processing package changes...
(1/3) reinstalling gnupg [####################################################################] 100%
(2/3) reinstalling archlinux-keyring [####################################################################] 100%
==> Appending keys from archlinux.gpg...
gpg: public key DB323392796CA067 is 3037 days newer than the signature
==> Updating trust database...
gpg: next trustdb check due at 2022-01-20
==> Updating trust database...
gpg: next trustdb check due at 2022-01-20
(3/3) reinstalling manjaro-keyring [####################################################################] 100%
==> Appending keys from manjaro.gpg...
gpg: public key DB323392796CA067 is 3037 days newer than the signature
gpg: error reading key: No public key
gpg: error reading key: No public key
==> Disabling revoked keys in keyring...
-> Disabled 2 keys.
==> Updating trust database...
gpg: next trustdb check due at 2022-01-20
:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Refreshing PackageKit...
(3/3) Updating the info directory file...
~/Desktop ❯
But the main question for the project is: what could lead to this issue? Hardware (storage, CPU, RAM) issues? What else?