I feel like I have exhausted every option. I have looked at dozens of posts here, Reddit, wherever… No fix seems to help. I have spent a combined total of 8 hours reading online articles, plugging random terminal commands from the internet and Claude just trying to install. I feel this is the only place left to post, and hopefully someone can help me out.
I am willing to try anything.
Welcome to the forum!
It would be nice to know what you have tried to solve it. Is this your first time installing CachyOS, or have you done it successfully before on your machine?
It is my first time installing Cachy, and I did go through the steps in the documentation to a T several times. So far I have tried the by the books install, since multiple Reddit threads and forums posts here say it has something to do with the mirrors for the Pacman installs I ran commands to replace/repair the mirros and keyring, I have tried installing both the regular kernel and the LTS kernel, I have tried installing an older ISO, I have tried Ventoy, I have tried flashing with Popsicle, I have tried flashing with dd in the terminal, and I think I am running out of things I have tried…
I know it’s a wall of text, and I am sorry for that. I just have been beating my head against a wall for days.
Are you trying to dual-boot with Windows?
Not the OP, but I am encountering the same issue. I am not trying to dual boot. I am running a fresh install from the 04-26 Desktop Live ISO using “erase disk” and I’m getting the “Failed to run pacstrap” error message as well.
here’s the log file generated on my last failed attempt:
I have tried resetting the keyrings as well as ranking mirrors but that doesn’t seem to help so I’m really at my wits end here.
Welcome to the forum!
I know it says erase disk, but try formatting the disk first and see if it helps.
Hi! just tried your suggestion by formatting the disk using KDE Partition Manager but no dice.
Here’s a new log for this latest attempt. I’m not very knowledgeable about how pacman and the installer work together, but it looks like there are issues when downloading the packages from these server mirrors:
https://cdn77.cachyos.org
https://mirror.krfoss.org
I don’t think this has to do with an incorrect system time, since this is handled by the CachyOS Live installer…
With both of you the installation fails at the same point - trying to get gcc from cdn77.cachyos.org.
This has been noticed before - this thread has the possible solution: Installation Error: Failed to run pacstrap
Looks like instead of removing these mirrors from the rankings, we need to block them in the HOSTS file. Interesting.
I’ll try that and report back if successful.
Looks like instead of removing these mirrors from the rankings, we need to block them in the HOSTS file. Interesting.
I’ll try that and report back if successful.
EDIT: Removing these entries from the mirrorlist using the sed command only caused the installer to hang on the initial step: “waiting for 1 module (x seconds)…”. It keeps waiting forever.
I had to add additional mirrors that failed on the latest attempt. Here’s a new log:
First of all, thank you so much for trying to help us. I ran the following commands:
sudo sed -i ‘/archlinux.cachyos.org/d;/cdn77.cachyos.org/d’ /etc/pacman.d/*mirrorlist
sudo resolvectl flush-caches
That got me past my Pacstrap error, but I received a new error. The installer just… Closed. Then when I tried to boot into Cachy this is what I got.
I admit I am unfamiliar on these results and will do some research, but if someone can shed some light that would be appreciated.
try modifying the command using backslashes as demonstrated in that other thread:
sudo sed -i '/archlinux\.cachyos\.org/d;/cdn77\.cachyos\.org/d' /etc/pacman.d/*mirrorlist
Please notice that the backlashes help the command avoid syntax errors when adding periods to the variables like archlinux.cachyos.org (which turns into /archlinux\.cachyos\.org/d )
sed is special like that lol
QUICK UPDATE:
I kept getting issues trying to install cachyOS, so I decided to try installing something else as a sanity check.
What do you know, I was also having tons of issues getting the archinstall script to work. This may be an issue with my internet connection and more specifically, my network card.
I turned off TCP Segmentation Offload (TSO) using the following command:
sudo ethtool -K eth0 tso off gso off
Replace eth0 with your actual network interface name. You can identify your network device using ip link in the terminal.
I also managed to install CachyOS mirrors and repos in Arch so I think I will leave things as they are now that I’m not having any more issues installing packages.
Hope this helps!
One more thing:
The previous command only lasts for the current session. You will need to open your network definition file (usually found in /etc/systemd/network/), then add these lines under the [Network] or [Link] section:
TCPSegmentationOffload=false
GenericSegmentationOffload=false
I personally use ethernet, so I modified the file called 20-ethernet.network by adding those lines.
Are you sure you have Secure Boot switched off and are not using Legacy?