‘reflector-simple’ can’t find mirrors suddenly. Previously it was working as expected. I used HTTP and HTTPS protocols, but none are working now.
My pacman -Sy command is working without any problem. It uses the mirror which was previously selected without any problem. The mirror is not out of sync.
pycrk
July 21, 2022, 10:00am
2
you might want to add India to your mirrors as an alternative if the Bangladesh mirrors are too slow or not available.
1 Like
If I add a Bangladeshi mirror by editing the mirror list, it works without any issue.
The problem is that reflector-simple is failing to find any Bangladeshi mirror.
I was trying to add both BD and Indian mirrors. But reflector-simple simply fails at finding any BD mirror.
pebcak
July 21, 2022, 10:28am
4
mdintisar:
You could try increasing the “Download timeout” and see if it will work.
Also you could try the command line tool reflector: https://wiki.archlinux.org/title/Reflector and see if that works.
2 Likes
sudo reflector --verbose --country 'Bangladesh' -l 5 -a 100 -p http --sort rate --save /etc/pacman.d/mirrorlist
[sudo] password for md:
error: no mirrors found
This happens with the command line tool reflector.
What does
rate-mirrors arch
return?
I find it to be much more reliable than reflector
and much simpler than reflector-simple
There’s no need to fuss with geography, you normally just want a couple of mirrors that are up to date and you have a fast connection to them.
If you find good mirrors with rate-mirrors
, just save the stdout to /etc/pacman.d/mirrorlist
:
rate-mirrors arch | sudo tee /etc/pacman.d/mirrorlist
pebcak
July 21, 2022, 10:45am
7
That’s quite odd!
Same command line with the only difference of using India instead of Bangladesh works just fine.
1 Like
pebcak
July 21, 2022, 10:56am
9
Do you have a working mirror from Bangladesh already in your mirrorlist?
Trying to generate a mirrorlist for Bangladesh at: https://archlinux.org/mirrorlist/ yields only one mirror:
##
## Arch Linux repository mirrorlist
## Filtered by mirror score from mirror status page
## Generated on 2022-07-21
##
## Bangladesh
#Server = http://mirror.xeonbd.com/archlinux/$repo/os/$arch
1 Like
This is a working mirror. Did you generate it using reflector-simple?
It works but can’t rate BD mirror.
pebcak
July 21, 2022, 11:01am
12
2 Likes
mdintisar:
It works
Great, problem solved!
So what? Why do you care about using a mirror that is in Bangladesh?
1 Like
pebcak
July 21, 2022, 11:03am
14
There seems to be only one mirror in Bangladesh so I don’t get the point of rating it.
Also:
http://mirror.xeonbd.com/archlinux/ http Bangladesh HTTP Error 500: Internal Server Error 2022-07-20 20:20 1
Check here: https://archlinux.org/mirrors/status/
1 Like
dalto
July 21, 2022, 11:11am
15
reflector
only returns mirrors with a completion percentage of 100% by default.
If you check the mirror status page, you can see that the bangladesh mirror is not at 100% so it is not included.
If you pass --completion-percent=90
, it will show up at the time of this posting.
3 Likes
pebcak
July 21, 2022, 11:18am
16
It’s getting there!
http://mirror.xeonbd.com/archlinux/ http Bangladesh 98.5%
1 Like
pebcak
July 21, 2022, 11:24am
17
reflector --verbose --country 'Bangladesh' --completion-percentage=90
usage: reflector [-h] [--connection-timeout n] [--download-timeout n] [--list-countries] [--cache-timeout n] [--url URL] [--save <filepath>] [--sort {age,rate,country,score,delay}] [--threads n] [--verbose] [--info] [-a n] [--delay n]
[-c <country name or code>] [-f n] [-i <regex>] [-x <regex>] [-l n] [--score n] [-n n] [-p <protocol>] [--completion-percent [0-100]] [--isos] [--ipv4] [--ipv6]
reflector: error: unrecognized arguments: --completion-percentage=90
There seems to be a typo:
--completion-percent
3 Likes
Thanks to all for their support.
1 Like
pebcak
July 21, 2022, 11:34am
20
@mdintisar thanks for marking my post as the solution but the the credit is due to @dalto for their explanation of the working of reflector and pointing out the --completion-percent option.
Please consider marking their post as the solution of the topic.
2 Likes