archlinux / archinstall

Arch Linux installer - guided, templates etc.
GNU General Public License v3.0
5.95k stars 514 forks source link

archinstall will stuck at Testing mirrors forever #1429

Open JamesLewisLiu opened 1 year ago

JamesLewisLiu commented 1 year ago

archinstall will stuck at Testing mirrors forever,however I knew which mirrors are usable. After manually run reflector -c the archinstall will still modify mirrorslist,Hope it can be add a option to pass country parameter to reflector or specify the only one mirror for the whole process

Torxed commented 1 year ago

If you don't touch the Mirror region setting in the menu, archinstall shouldn't modify the mirror-list. If it does that's a bug.

Testing mirrors shouldn't take more than a few seconds and simply checks your ability to reach the mirrors: https://github.com/archlinux/archinstall/blob/397cceca90592ec39a594cd8fa5215b64d7238ae/examples/guided.py#L281-L284

Def: https://github.com/archlinux/archinstall/blob/31e6eca3af607bbfa79cda30c9e0ff16bb2b66c3/archinstall/lib/networking.py#L34-L37

I've noticed that it's some what slow occasionally, and that's probably when reflector either hasn't completed it's execution prior to running archinstall or the top mirror had good latency but terrible throughput for where you live. In which case pacman -Sy might be pretty slow.

I don't have any good ideas on how to work around that tbh. Ideas?

joshuataylor commented 1 year ago

I also faced this. I had a hunch it could be related to trying to connect to IPv6, and checked my router and it had DHCP with IPv6 enabled, and I only have ipv4 address (my ISP offers ipv6, but I currently have this disabled, but unrelated).

I ended up removing this from my router, and rebooting the live CD and it worked. Maybe check if the user actually HAS IPv6 before checking for mirrors, or prefer ipv4 if they have that?

moyanxinxu commented 1 year ago

archinstall will stuck at Testing mirrors forever,however I knew which mirrors are usable.

After manually run reflector -c the archinstall will still modify mirrorslist,Hope it can be add a option to pass country parameter to reflector or specify the only one mirror for the whole process

rm -rf /etc/pacman.d/mirrorlist vim /etc/pacman.d/mirrorlist

add a mirror you can reach in your country

then,save the file and quit editor

finally type archinstall

3sv commented 7 months ago

Today had this same issue, at first tried the procedure from @moyanxinxu and @Torxed described here without luck. Also checked DNS and tried without IPv6 without change based on comment from @joshuataylor.

So somehow it is still possible to get stuck on this step forever, so there is a codepath or a server/DNS thing that can break this step?

Afterwards found out that many people have the same problem today, and how to get around to run the installer at: #https://www.reddit.com/r/archlinux/comments/199pp25/reflector_broken/

Copied solution here for others ending here: run "sudo pacman -Sy" run "archinstall" when installing and hangs on reflector ctrl alt F2 login as root run "systemctl stop reflector" ctrl alt F1 back to install reboot after install Run "sudo pacman-key --refresh-keys"

wantToHawaii commented 7 months ago

Copied solution here for others ending here: run "sudo pacman -Sy" run "archinstall" when installing and hangs on reflector ctrl alt F2 login as root run "systemctl stop reflector" ctrl alt F1 back to install reboot after install Run "sudo pacman-key --refresh-keys"

Thank you! It works :)

PhilipPurwoko commented 3 months ago

Today had this same issue, at first tried the procedure from @moyanxinxu and @Torxed described here without luck. Also checked DNS and tried without IPv6 without change based on comment from @joshuataylor.

So somehow it is still possible to get stuck on this step forever, so there is a codepath or a server/DNS thing that can break this step?

Afterwards found out that many people have the same problem today, and how to get around to run the installer at: #https://www.reddit.com/r/archlinux/comments/199pp25/reflector_broken/

Copied solution here for others ending here: run "sudo pacman -Sy" run "archinstall" when installing and hangs on reflector ctrl alt F2 login as root run "systemctl stop reflector" ctrl alt F1 back to install reboot after install Run "sudo pacman-key --refresh-keys"

This solved the case on archlinux version April 2024

hublol commented 3 weeks ago

Same problem, same solution on version July 2024.

What is interesting is that I did several installations without any problem. Then, yesterday, without any change I can think of, I started to run into this issue, that I worked around by stopping reflector. Today, the installations are again able to proceed without any issue.