[BUG]retrieving packages from msys2 repo is extremely slow
New MSYS2 installation on Windows 10. Trying to update and sync package manager for the first time (disabled download timeout). mingw32 download progress is ~3% for the last half hour.
I meet the same problem here, I think the problem here is:
I have already set the msys2 pacman mirror site, but when I run the pacman -Syu, it first update the pacman program. When updating the pacman, the mirror is reset to the following default setting:
https://github.com/msys2/MSYS2-packages/tree/23662333ca6106edf7b508b43d471c2e699a10e4/pacman-mirrors
So, you have to manually edit those three files, and put your customized mirror in front of the official mirror sites.
Can any developer change this issue title? I mean it could rename to something like "pacman mirrors get reset after update", so users need to manually config those mirrors again.
Just a bump on this issue. I can only get 620k - 1.1m download from the mirrors using the default mirrorlist files in the US (Texas). This problem has persisted since the last quarter of 2023. Prior to that, there were no issues with download speed -- the windows "Checking for available space" was still an issue, but downloads were good.
Worth a check to see if the mirrors are having problems - again.
Thank you for reporting the issue. Mirrors can be changed in /etc/pacman.d/mirrorlist* files. Either add # in front of the mirror link to disable it or change the order of the mirrors according to speed.
the windows "Checking for available space" was still an issue
That feature can be disabled in /etc/pacman.conf file by replacing CheckSpace with #CheckSpace
@Biswa96 wrote:
Either add
#in front of the mirror link to disable it or change the order of the mirrors according to speed.
This is a workaround at best (and more probably a micro-management).
Tasks like these should be handled automatically. That's what computers were built for in the first place.
So this is a problem.
Does anyone know how does the upstream (Arch Linux) deal with that problem?
Does anyone know how does the upstream (Arch Linux) deal with that problem?
Good question. I forgot to mention that. ArchLinux and msys2 both has rankmirrors command to sort mirrors, see https://wiki.archlinux.org/title/Mirrors#Sorting_mirrors
For example, command to sort ucrt64 mirrorlist rankmirrors -n 6 /etc/pacman.d/mirrorlist.ucrt64