Unable to get file from repo.msys2.org: Operation too slow. Less than 1 bytes / sec transferred the last 10 seconds

  • The error is as follows:
pacman -S make gcc diffutils

:: 正在获取软件包......
错误:无法从 repo.msys2.org : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds 
获取文件 'binutils-2.30-1-x86_64.pkg.tar.xz'
  • The solution is to use mirroring

/etc/pacman.d/mirrorlist.mingw32
Server = https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/i686


/etc/pacman.d/mirrorlist.mingw64
Server = https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/x86_64


/etc/pacman.d/mirrorlist.msys
Server = https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/$arch

  • Refresh
 pacman -Syu
  • Change network

  I still have problems with the above operation. Therefore, the network linked to the laptop was changed from telecom to mobile hotspot. Successfully updated.

Published 2654 original articles · praised 352 · 2.1 million views

Guess you like

Origin blog.csdn.net/quantum7/article/details/105388653