Skip to main content
Topic: [SOLVED] Faced with 'invalid PGP signatures' after running basestrap (Read 495 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED] Faced with 'invalid PGP signatures' after running basestrap

Problem solved after reboot!

After running this command:
Code: [Select]
basestrap /mnt base base-devel openrc elogind-openrc
every package it downloads reports PGP sign issues.

So, I decided to skip to see if I can perform the next step (ie downloading the kernel with basestrap), and it's also not working due to the same problem.

To clarify, every error that all the packages report is the following:
Code: [Select]
:: File /mnt/var/cache/pacman/pkg/example-version.pkg.tar.zst is corrupted (invalid or corrupted PGP signature)).
Do you want to delete it? [Y/n]

I've tried to running the command with the -i flag to force it to not delete these files (pressing n every time), and I still get the "no packages were upgraded" error at the end.

Re: Faced with 'invalid PGP signatures' after running basestrap

Reply #1
Which version of the ISO are you using?
Run
Code: [Select]
pacman -Sy archlinux-keyring artix-keyring
and then see if basestrap works

Re: Faced with 'invalid PGP signatures' after running basestrap

Reply #2
Which version of the ISO are you using?
Run
Code: [Select]
pacman -Sy archlinux-keyring artix-keyring
and then see if basestrap works
I'm using the latest version of the base openrc ISO (not the weekly version).

When attempting to run that command I received this error:
Code: [Select]
error: failed to initialize alpm library:
(root: /, dbpath, /var/lib/pacman/)
database is incorrect version
try running pacman-db-upgrade
I of course tried running the command it told me to which led to yet another error:
Code: [Select]
cat: /var/lib/pacman/local/ALPM_DB_VERSION: Input/output error
I'm assuming this error is fatal because I'm still unable to run 'pacman -S'.

Re: Faced with 'invalid PGP signatures' after running basestrap

Reply #3
 I/O errors are a concern.
Which program did you use to flash the ISO?

Re: Faced with 'invalid PGP signatures' after running basestrap

Reply #4
I/O errors are a concern.
Which program did you use to flash the ISO?
Balena etcher because I flashed it from a Windows PC. I've used it before and haven't had issues though.

I'm not sure if this is relevant, but before making this thread I ran these two commands in an attempt to solve this issue: pacman-key --init & pacman-key populate

Re: Faced with 'invalid PGP signatures' after running basestrap

Reply #5
That I/O error probably means the ISO got flashed in a weird way or the drive is dying (there could be a third cause but I can't find anything else on the web).
Is this a USB stick? How long have you been using it?
I'd recommend flashing from scratch again using a different method. See https://wiki.archlinux.org/title/USB_flash_installation_medium#Using_the_ISO_as_is_(BIOS_and_UEFI)



 
Artix forum uses a single cookie to remember youOK