Hi, I’m trying to install EndeavourOS with i3wm/BSPWM, but the installations fails with different error messages. Most of the time it is “installation failed with pacstrap error”, but sometimes “bootloader installation error”. The latter also says this: The bootloader could not be installed. The installation command <pre>grub-install --target=i38-pc --recheck --force /dev/nvme0n1</pre> returned error code 1.
I should add that /dev/nvme0n1 is one of my three drives, one which Windows 11 is installed on, while I’m trying to install EndeavourOS on /dev/sdb, a dedicated drive. I think the latter is where grub/bootloader for dualbooting was installed on before I attempted to install EndeavourOS on it. Is this where the error may be coming from?
I’ve looked up some potential solutions - the keyring update: https://is.gd/KGqZvC, updating mirrors before installation, creating manual GPT table in GParted, but nothing seems to work.
should provide some clues as to your disk layout and the existing EFI boot entries.
Please post the output as text and format it by highlighting it and pressing Ctrl-E.
Provide details of your installation mode, automatic or manual etc.
Assuming that your system supports UEFI boot mode, go into firmware settings and disable Legacy/CSM boot mode and boot your live usb in UEFI mode.
Also, the issue with pacstrap might be solved by refreshing your mirrors from the Welcome app pop-up prior to launching the installer.
2022-11-12 - 14:09:59 [6]: [PYTHON JOB]: "pacstrap: error: failed retrieving file 'attr-2.5.1-2-x86_64.pkg.tar.zst' from archlinux.grena.ge : Failed to connect to archlinux.grena.ge port 443 after 6 ms: Connection refused"
2022-11-12 - 14:09:59 [6]: [PYTHON JOB]: "pacstrap: error: failed retrieving file 'libnftnl-1.2.3-1-x86_64.pkg.tar.zst.sig' from archlinux.grena.ge : Failed to connect to archlinux.grena.ge port 443 after 1 ms: Connection refused"
2022-11-12 - 14:09:59 [6]: [PYTHON JOB]: "pacstrap: warning: failed to retrieve some files"
2022-11-12 - 14:09:59 [6]: [PYTHON JOB]: "pacstrap: error: failed to commit transaction (unexpected error)"
2022-11-12 - 14:09:59 [6]: [PYTHON JOB]: "pacstrap: Errors occurred, no packages were upgraded."
2022-11-12 - 14:09:59 [6]: [PYTHON JOB]: "pacstrap: ==> ERROR: Failed to install packages to new root"
Looks like you are booting with Legacy/Bios mode.
Your Windows seems to be installed in Legacy/MBR mode as well since there is no ESP on that disk.
ERROR: Installation failed: "Bootloader installation error"
2022-11-12 - 14:25:21 [6]: .. - message: "Bootloader installation error"
2022-11-12 - 14:25:21 [6]: .. - details: The bootloader could not be installed. The installation command <pre>grub-install --target=i386-pc --recheck --force /dev/nvme0n1</pre> returned error code 1.
If you are going to install EnOS on /dev/sdb on a disk with msdos partiton table in Legacy/Bios mode you would need to choose /dev/sdb (the disk and not a partition on it) as the location for the installation of the bootloader.
There is a dropdown menu at the bottom of the screen where you make the choices of which disk to install to, the filesystem etc.
I changed the mirror to a different country plus selected several countries, then run the installer and selected this in partitions/bootloader: https://i.imgur.com/ypBqKwn.png , but got the “Failed to run pacstrap” error which in Details said “Failed to run pacman”. The log is here: https://termbin.com/2jri
If I switch Storage Book Option Control from Legacy to UEFI in BIOS and then select a different place for bootloader, could that change anything?
You would then need to edit this file and remove # in front of the server names. Next you would need to replace /etc/pacman.d/mirrorlist with this new file.
Not when it comes to this mirror issue.
However if you change this now to UEFI and install your EnOS in UEFI mode, you won’t be getting a boot entry on the Grub boot menu for Windows. Still it would be possible to bring up Bios’ one-time-boot menu and choose what system to boot from. But then you would need to have CSM enabled.
My suggestion would be to install all your systems in the same mode. Nothing wrong with installing in Legacy mode.
There seems to be an issue with mirrors indeed - if I switch mirror to a different country, then click OK, wait until the process is finished, and then reopen Update Mirrors, the previous country is selected instead of the one I switched to.
I would try your suggestion of editing the file, but if I try to download a text editor that I can use to edit it with sudo privileges, I get messages in terminal telling me the mirrors are returning 404 errors. Is there any other way of editing/replacing the file with sudo while in live boot?
You don’t need to download a text editor.
There must be one included in the live iso. I guess it might be xed. Look into tthe application menu.
Otherwise you could use nano in terminal.
Thank you, the default editor was not allowing me to save the file with privileges but I used nano instead.
I opened the file, but it did not list that mirror. Then I used the mirror generator website, replaced the contents of the file with the generated list, uncommented the servers, saved and tested the result by trying to install an app using sudo pacman -S. The results in terminal tell me the mirrors I have inserted into the file are returning the 404 error. So no matter which mirror from different countries I use, it can’t reach the servers? Is this a known issue? If I use offline installation of EndeavourOS, maybe that will be a workaround?
That worked, and then the EndeavourOS installation was also successfully completed! Thank you so much for the help - I don’t think I would’ve been able to identify the mirror as the issue by going through the logs myself, especially as I got different error messages at different times. I appreciate your help a lot.