Installation Failed: Failed to run pacstrap at installation

I’m trying to install endeavouros onto a external ssd (samsung t7) which I have formatted before (the root partition is formatted to ext4 and the bootloader partition is formatted to fat32). I have a Msi katana 17 with a b13v442 (Intel i7 13th gen (laptop version) and a rtx 4060 laptop gpu. When I try to install it it fails at about 96%. I had the same issue yesterday but it failed at 70% and 13%. The error is:

Failed to run pacstrap

Details: Failed to run pacman

I have tried updating my mirrors, didn’t work. I have to mention my internet connection isn’t the most stable with linux but I’ve tried using my hotspot also failed at 96%. I have searched online and I haven’t been able to find a fix for me. I’ve tried redownloading the ISO file and reburning it to the usb stick also didn’t work. I also had issues before were I couldn’t install grub, which is why I use the default bootloader now.

I have to mention I’m a complete newbie with endeavouros. I have only installed it on vm’s before.

The logs: https://termbin.com/al06

It looks like you are trying to install into an existing installation. You can’t do that, you need to format the / partition.

If you are using manual partitioning, be sure to check the box to format the partition.

I followed your instructions and it got to 100% but then it failed again the error was something like bad script I’m not sure

Need to see the full log to help you resolve that.

yeah I forgot to copy the log​:sweat_smile: and now pacman fails again I‘ll try to get the logs again tommorrow because I still have to do some stuff irl

1 Like

https://termbin.com/x3sn thats the logs for the bad main script error

Edit: I also went to the file that the logs mentioned and the output was this:
[13:29:38 LSP Client Warning] Failed to find server binary: pylsp
Please check your PATH for the binary
See also https://github.com/python-lsp/python-lsp-server

The exact same error also occured at 13:29:39

It looks like it is failing to write to the EFI partition.

If you are re-using an existing EFI partition, this usually means it is corrupt or marked dirty.

If you are creating a new EFI partition, you may have forgotten to click the box to format it.

Should I try to delete the existing partitions and then make the bootloader and root partition?

My advice would be to use Replace Partition instead of manual partitioning.

You can point replace partition at some empty space and it will take care of the rest for you.

1 Like

unbelievable, i just did something like that now.

edit:

wipefs did not work for me. earlier there was some antix linux on that usb (mbr)

dd did the trick. adjust the below correctly for yourself.

dd if='/dev/zero' of='dev/sdb' bs=1M show=progress

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.