keyring PGP key error on upgrade
I had some errors that stopped the update relating to a missing key:
PGP key 139B09DA5BF0D338, "David Runge <[email protected]>"
Then I installed most of the packages with -S, but these 3 were related to that key:
Packages (3) libtraceevent-1:1.6.2-1 libtracefs-1.4.2-1 trace-cmd-3.1.2-1
So I manually installed the archlinux-keyring package update with -S too and then I could install the other 3 above, with the new keys and the hooks run.
So running this before -Syu was the solution to my problem:
$ pakku -S archlinux-keyring
(Or use pacman, yay, whatever you are usually updating with.)
I also did some other things first but not sure if that's relevant, although I guess the segfault looks sort of interesting wherever that came from, I think possibly inside pacman rather than pakku as the lock file was left in place. Importing the key manually didn't help at all.
downloading required keys...
:: Import PGP key 139B09DA5BF0D338, "David Runge <[email protected]>"? [Y/n] y
error: segmentation fault
Please submit a full bug report with --debug if appropriate.
SIGSEGV: Illegal storage access. (Attempt to read from nil?)
Segmentation fault
$ gpg --recv-key 139B09DA5BF0D338
gpg: key 139B09DA5BF0D338: public key "David Runge <[email protected]>" imported
gpg: Total number processed: 1
gpg: imported: 1
$ pakku -Syu
:: Synchronizing package databases...
error: failed to synchronize all databases (unable to lock database)
$ sudo rm /var/lib/pacman/db.lck