linutil icon indicating copy to clipboard operation
linutil copied to clipboard

reflector fails with `no mirrors found` in arch server setup

Open CtorW opened this issue 9 months ago • 6 comments

To Reproduce

Steps to reproduce the behavior:

  1. Arch Server Setup
  2. Ph mirror error

Screenshots

PXL_20250227_181232862.jpg

CtorW avatar Feb 27 '25 18:02 CtorW

i am also getting mirror issue in NP since last 3 days

nirabyte avatar Feb 28 '25 11:02 nirabyte

hey. thanks for reporting. that seems to be an issue with reflector so we can't really do much about it. i think we could probably add a prompt asking the user to choose between the default mirror set and the "most up-to-date" mirrors (either manually here or through reflector). would you be willing to implement this?

adamperkowski avatar Mar 01 '25 10:03 adamperkowski

Yes, I'd be happy to help implement a prompt for mirror selection. I agree that providing options for users in Asia, especially those outside the fastest mirror selection, is crucial.

I suggest we add a prompt that allows users to choose between:

  1. Manual Mirror Input: Users can enter their preferred mirror URLs directly. This is useful for users with specific mirror preferences.
  2. Location-Based Mirror Groups: We can provide pre-defined mirror groups based on geographical regions. For example, for users in the Philippines, we could offer a group containing mirrors from Japan, Indonesia, Thailand, and optionally, Worldwide.

example prompt:

Choose mirror selection method:

  1. Manual Input
  2. Location-Based Groups
  3. (The automatic setting up mirrors in linutil)

If Location-Based Groups, select your region: picked Philippines Fastest mirrors in Philippines

  • Japan
  • Indonesia
  • Thailand
  • (Optional) Worldwide

This approach allows for both flexibility and ease of use. That's all I suggest, but it still depends on you, thanks.

CtorW avatar Mar 01 '25 16:03 CtorW

Thanks for adding this. much appriciated!

nirabyte avatar Mar 05 '25 15:03 nirabyte

I think this is what causing the issue,

iso=$(curl -4 ifconfig.io/country_code)
reflector -a 48 -c "$iso" --score 5 -f 5 -l 20 --sort rate --save /etc/pacman.d/mirrorlist

codayon avatar Oct 07 '25 04:10 codayon

Yes, I'd be happy to help implement a prompt for mirror selection. I agree that providing options for users in Asia, especially those outside the fastest mirror selection, is crucial.

go ahead :)

This approach allows for both flexibility and ease of use. That's all I suggest, but it still depends on you, thanks.

i don't see any issues, all good to implement.

@CtorW

adamperkowski avatar Oct 07 '25 14:10 adamperkowski