Installation "Failed to run pacman" error

Hey there!, I am trying to install EndeavourOS alongside Win11 (Dual Boot) and during the installation I encounter “Failed to run Pacstrap, Failed to run Pacman” error message and the online installer quits at 9%.

I have tried updating the arch mirrors using reflector tool, also I’ve tried updating the whole system with

sudo pacman -Syu & run

sudo pacman -Sy arch-keyring

Log can be found at https://termbin.com/ohb3
More logs are here https://0x0.st/82KS.txt

Also, I am using Mercury Neo Iso file with ventoy if that helps.

It looks like you didn’t select the check boxes to format the partitions in manual partitioning.

It is failing to write to the disk.

But I thought I formatted them already.

Please check these https://0x0.st/82Kj.txt if that helps.

I can’t say for sure what happened but this is the error:

2025-03-31 - 18:10:55 [6]: [PYTHON JOB]: "pacstrap: error: could not open file /tmp/calamares-root-etvskumr/var/lib/pacman/sync/download-eATf7q/endeavouros.db.part: Permission denied" 

This is the first time it tries to write to the install after mounting the partitions and it can’t write the files.

Ok I’ll select the formatting checkbox & let you know. I did the formatting outside the installer because I wanted to preserve the LVM names of the drives.

The other thing to be aware of is that Calamares support for LVM is not fully working.

There are numerous open issues upstream related to LVM.

I tried formatting from the installer & it shows formatting error

Log: https://termbin.com/o5de

Calamares is closing the volumes:

     "Successfully closed mapper device /dev/mapper/ROOT_VG-swap_lv." 
     "Successfully disabled volume group ROOT_VG." 

This is by design in Calamares, you can’t externally open volumes and use them in Calamares.

I believe people have found workarounds to this if you do some searching.

Is this what you’re talking about sir??

This is one of the workarounds:

Thanks a lot! I’ll try it and let you know, somewhat busy rn.

1 Like

I read the post, & I did the set up quite similarly too, I did not use calamares to make lvm partiions, I used terminal commands such as pvcreate, vgcreate & lvcreate to make them. The author uses partition manager, though I don’t think that should make any difference. The point here was to make partitions manually if I understood correctly.

And as my system is uefi, I did not make 8MB bios_grub partition, as I am dual booting with linux I mounted 100MB windows efi partition on /boot/efi.

Will mounting these partitions mentioned https://github.com/calamares/calamares/issues/2343#issuecomment-2175960092 here help, that I’ll have to check.

Broo!! @dalto I got it installed man!!.

I followed this comment

while true; sleep 0.1; do sudo vgchange -ay; done

I executed it right before hitting install & it went just smoothly as intended. I guess it did not allow the calamares to disable the volume group. Other things I just did normally as I was doing before.

I am so happy Man! I am really thankful to you for your prompt replies and assistance.

2 Likes