You are not logged in.

#1 2022-02-12 16:51:21

logic_guy76
Member
Registered: 2020-05-24
Posts: 7

problem importing PGP keys

I hadn't updated my archlinux32 installation for a few months and when I tried to do a system upgrade I got lots of errors about invalid keys.  I tried to follow the instructions at https://archlinux32.org/download/ "https://archlinux32.org/download/:Fixing Broken Keyring(s)"  When I execute

[root@mainpc cbailey]# pacman -S archlinux-keyring archlinux32-keyring

I get:

warning: archlinux-keyring-20220125-1.0 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (2) archlinux-keyring-20220125-1.0  archlinux32-keyring-20220131-1.1

Total Installed Size:   1.48 MiB
Net Upgrade Size:      -0.04 MiB

:: Proceed with installation? [Y/n] y
(2/2) checking keys in keyring                            [##############################] 100%
downloading required keys...
:: Import PGP key C8E8F5A0AF9BA7E7, "Andreas Baumann <mail@andreasbaumann.cc>"? [Y/n] y
error: key "C8E8F5A0AF9BA7E7" could not be looked up remotely
error: required key missing from keyring
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.

Any suggestions?
Thanks

Offline

#2 2022-02-12 17:50:13

levi
Moderator
From: Yorkshire, UK
Registered: 2018-06-16
Posts: 1,197

Re: problem importing PGP keys

I'm not sure why those instructions tell you to install archlinux-keyring (the 64-bit version) alongside archlinux32-keyring.  I guess that was useful when we were migrating from that service way back when, but these days, I think it's overkill and could potentially be causing this problem.  Just do a pacman -S archlinux32-keyring' instead and see if that works for you.


Architecture: pentium4, Testing repos: Yes, Hardware: EeePC 901+2GB RAM+OS half on the SD card.

Offline

#3 2022-02-12 18:35:32

logic_guy76
Member
Registered: 2020-05-24
Posts: 7

Re: problem importing PGP keys

I get:

[root@mainpc cbailey]# pacman -S archlinux32-keyring
resolving dependencies...
looking for conflicting packages...

Packages (1) archlinux32-keyring-20220131-1.1

Total Download Size:    0.04 MiB
Total Installed Size:   0.04 MiB
Net Upgrade Size:      -0.04 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 archlinux32-keyring-20220131-1.1-any       35.9 KiB   283 KiB/s 00:00 [########################################] 100%
(1/1) checking keys in keyring                                         [########################################] 100%
(1/1) checking package integrity                                       [########################################] 100%
error: archlinux32-keyring: signature from "Erich Eckner (just to sign arch packages) <arch-packages@eckner.net>" is unknown trust
:: File /var/cache/pacman/pkg/archlinux32-keyring-20220131-1.1-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]

Offline

#4 2022-02-12 20:42:40

logic_guy76
Member
Registered: 2020-05-24
Posts: 7

Re: problem importing PGP keys

I tried

pacman-key --init
pacman-key --populate archlinux archlinux32

then tried to update archlinux32-keyring again and this time it worked.

Tried performing a full system upgrade again and this time it worked!

Offline

#5 2022-02-12 21:28:44

levi
Moderator
From: Yorkshire, UK
Registered: 2018-06-16
Posts: 1,197

Re: problem importing PGP keys

Yes, especially if you're coming from an old update, it's often worth trying multiple different approaches until something sticks.


Architecture: pentium4, Testing repos: Yes, Hardware: EeePC 901+2GB RAM+OS half on the SD card.

Offline

Board footer

Powered by FluxBB