Archlinux keyring fails to update

First, thanks for your help. The summary is I found a way to get my system updated, but I don’t think I solved the original problem.

Here is a summary of what I did.

Step #1. Run the script with --basic. This failed with the following error:

[INFO] Performing a full upgrade with pacman
[QUESTION] Do you want to continue? [Yy/Nn] (Be aware that a full upgrade needs enough ram on a live session)
> [Yy/Nn] y
[sudo] password for mezzo: 
:: Synchronizing package databases...
 core                                                                    140.0 KiB   371 KiB/s 00:00 [------------------------------------------------------------] 100%
 extra                                                                     8.3 MiB  10.5 MiB/s 00:01 [------------------------------------------------------------] 100%
 multilib                                                                144.7 KiB   374 KiB/s 00:00 [------------------------------------------------------------] 100%
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (4) brave-browser-1.67.119-1  inxi-3.3.35.1-1  onlyoffice-desktopeditors-8.1.0-1  thunderbird-115.12.1-1

Total Download Size:     55.20 MiB
Total Installed Size:  1385.52 MiB
Net Upgrade Size:         3.67 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 thunderbird-115.12.1-1-x86_64                                            55.2 MiB  27.6 MiB/s 00:02 [------------------------------------------------------------] 100%
(4/4) checking keys in keyring                                                                       [------------------------------------------------------------] 100%
downloading required keys...
:: Import PGP key 244740D17C7FD0EC, "Leonidas Spyropoulos <artafinde@archlinux.org>"? [Y/n] 
(4/4) checking package integrity                                                                     [------------------------------------------------------------] 100%
error: thunderbird: signature from "Leonidas Spyropoulos (Arch Linux Packager key) <artafinde@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/thunderbird-115.12.1-1-x86_64.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.
[INFO] Done. Note that you need to refresh the database for pamac also.

Step #2: I tried the script with the --moderate. It failed with the following error:

[INFO] Remove cached software packages [optional]
[QUESTION] Delete them? [Yy/Nn]
[Yy/Nn] > n
[INFO] Performing a full upgrade with pacman
[QUESTION] Do you want to continue? [Yy/Nn] (Be aware that a full upgrade needs enough ram on a live session)
> [Yy/Nn] y
:: Synchronizing package databases...
 core                                                                    140.0 KiB  25.9 KiB/s 00:05 [------------------------------------------------------------] 100%
 extra                                                                     8.3 MiB  1471 KiB/s 00:06 [------------------------------------------------------------] 100%
 multilib                                                                144.7 KiB  26.7 KiB/s 00:05 [------------------------------------------------------------] 100%
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (4) brave-browser-1.67.119-1  inxi-3.3.35.1-1  onlyoffice-desktopeditors-8.1.0-1  thunderbird-115.12.1-1

Total Download Size:     55.20 MiB
Total Installed Size:  1385.52 MiB
Net Upgrade Size:         3.67 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 thunderbird-115.12.1-1-x86_64                                            55.2 MiB  23.5 MiB/s 00:02 [------------------------------------------------------------] 100%
(4/4) checking keys in keyring                                                                       [------------------------------------------------------------] 100%
downloading required keys...
:: Import PGP key 244740D17C7FD0EC, "Leonidas Spyropoulos <artafinde@archlinux.org>"? [Y/n] 
(4/4) checking package integrity                                                                     [------------------------------------------------------------] 100%
error: thunderbird: signature from "Leonidas Spyropoulos (Arch Linux Packager key) <artafinde@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/thunderbird-115.12.1-1-x86_64.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.
[INFO] Done. Note that you need to refresh the database for pamac also.

Note: When the script asked if I wanted to, “Remove cached software packages (optional)” I chose No. I don’t think it would have helped if I did, but I believe you would be a better judge of that.

Step #3: At this point I didn’t think using the --aggressive flag was going to help. So I took a different approach and uninstalled thunderbird. thunderbird is signed by the key that was being reported as corrupted.

Step #4: update the system with gui updater and three packages were successfully updated (brave-browser, inxi and onlyoffice-desktopeditors) and now my system is up to date.

Step #5: Attempt to re-install thunderbird. It failed, complaining about a corrupt key.

In conclusion:
SO, my sytem IS updatted, BUT I still have something wrong that will probably cause issues when the next new system update is ready.

Where do I go from here?


Moderator edit: In the future, please use proper formatting: [HowTo] Post command output and file content as formatted text