Artix Linux Forum

Artix Linux => Installation / Migration / Configuration => Topic started by: itsover on 02 March 2025, 07:01:39

Title: [SOLVED] Faced with 'invalid PGP signatures' after running basestrap
Post by: itsover on 02 March 2025, 07:01:39
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.
Title: Re: Faced with 'invalid PGP signatures' after running basestrap
Post by: MaxLPM on 02 March 2025, 07:17:49
Which version of the ISO are you using?
Run
Code: [Select]
pacman -Sy archlinux-keyring artix-keyring
and then see if basestrap works
Title: Re: Faced with 'invalid PGP signatures' after running basestrap
Post by: itsover on 02 March 2025, 07:43:13
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'.
Title: Re: Faced with 'invalid PGP signatures' after running basestrap
Post by: MaxLPM on 02 March 2025, 07:58:35
 I/O errors are a concern.
Which program did you use to flash the ISO?
Title: Re: Faced with 'invalid PGP signatures' after running basestrap
Post by: itsover on 02 March 2025, 08:15:46
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
Title: Re: Faced with 'invalid PGP signatures' after running basestrap
Post by: MaxLPM on 02 March 2025, 08:28:00
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) (https://wiki.archlinux.org/title/USB_flash_installation_medium#Using_the_ISO_as_is_(BIOS_and_UEFI))
Title: Re: Faced with 'invalid PGP signatures' after running basestrap
Post by: itsover on 02 March 2025, 08:41:11
Is this a USB stick? How long have you been using it?
It is a USB stick and it hasn't been used much.
Title: Re: Faced with 'invalid PGP signatures' after running basestrap
Post by: tintin on 03 March 2025, 02:49:23
Bonjour,

Have you tried following this procedure:
https://wiki.artixlinux.org/Main/Troubleshooting#Invalid_or_corrupted_packages_.28PGP_signature.29

For my ISOs, I successfully use Ventoy:
https://www.ventoy.net/en/index.html
https://www.ventoy.net/en/download.html