Install error and fail PACMAN

Hi All,

Install error:

  • message: “Failed to run pacstrap”
  • details: Failed to run pacman

I am trying to install on my PC for the first time. PACSTRAP is giving the error PACMAN failed install. I saw post that it could be “Slow servers in India”, I am in S. Korea, so it is possible. So, I tried again using my router VPN connected in San Francisco. This did not resolve the issue. I noticed that the log file is showing a failure to validate the signatures:

2024-08-10 - 08:38:20 [6]: [PYTHON JOB]: “pacstrap: error: iana-etc: signature from "Jelle van der Waa jelle@vdwaa.nl" is unknown trust”

I tried to update the Keyring with:
sudo pacman-key --refresh-keys
and
sudo pacman-key --populate archlinux

This did not fix the problem either. I am not sure what the next step should be to trouble shoot the issue, but I will be greatful for any advice.

Here is my Log.

parttype : “EBD0A0A2-B9E5-4433-87C0-68B6B72699C7” partattrs : “0” - Pastebin.com

Thats sadly a different issue. Basically, what happens is that while the installation is running the keyring does corrupt.

We have tried to mitigate this now on several ways.
Please check out the testing ISO:
https://cdn77.cachyos.org/ISO/testing/cachyos-desktop-linux-240804.iso

Here are following changes included:

  1. Using the Archlinux mirror hosted by cachyos (cdn77), as well as fallback mirrors from us
  2. The Keyring installation is a bit differently.

The other possible solution would be that disabling the “archlinux-wkd.service”, but since we were not able to reproduce this issue once in the team, its hard to test. But this would be the next step.

Hi
Try to delete /var/lib/pacman/db.lck only db.lck file useing
terminal sudo rm - Rf db.lck
after that use:
sudo pacman -Syu and reboot
In my case it worked

The new build worked perfectly. I figured there was something going on with the keyring, but I didn’t know how to fix it. Thank you for the quick response and help!

Cheers.

I didn’t get a chance to try this, because the new iso worked. But thank you for the suggestion and hopefully it will help someone else.

Hello, I have the same issue.
When trying to install it I get the Failed to run pacstrap error.
I try to download the testing ISO but the page say 403 Forbidden.

Don’t know why but tried again today and now it works.

Looks like some countries have problems with keyservers, I have found a quicker solution

First without making an internet connection with live usb enter lines I wrote below to

/etc/resolv.conf
keyserver 1.1.1.1
keyserver 8.8.8.8

now connect to internet and add these lines to “/etc/pacman.d/gnupg/gpg.conf“

keyserver hkps://keys.openpgp.org
keyserver hkps://keyserver.ubuntu.com

last step manually get keyrings:

sudo pacman -Sy archlinux-keyring cachyos-keyring
sudo pacman-key --init
sudo pacman-key --populate archlinux cachyos

worked for me i didnt wait too long

Is keyserver a recognized option in this file (and would it even make sense, as those are DNS servers .. maybe you meant nameserver)?

After performing a clean reset of the NVMe drive (sudo sgdisk --zap-all /dev/nvme0), it started working again on my PC.