![为什么 pacman/packer 总是连接失败三次,现在是第四次?](https://linux22.com/image/1359954/%E4%B8%BA%E4%BB%80%E4%B9%88%20pacman%2Fpacker%20%E6%80%BB%E6%98%AF%E8%BF%9E%E6%8E%A5%E5%A4%B1%E8%B4%A5%E4%B8%89%E6%AC%A1%EF%BC%8C%E7%8E%B0%E5%9C%A8%E6%98%AF%E7%AC%AC%E5%9B%9B%E6%AC%A1%EF%BC%9F.png)
我认为这可以更好地解释:
:: Retrieving packages ...
error: failed retrieving file 'gpm-1.20.7-2-x86_64.pkg.tar.xz' from mirror.us.leaseweb.net : Resolving timed out after 10000 milliseconds
error: failed retrieving file 'gpm-1.20.7-2-x86_64.pkg.tar.xz' from mirror.de.leaseweb.net : Resolving timed out after 10000 milliseconds
error: failed retrieving file 'gpm-1.20.7-2-x86_64.pkg.tar.xz' from mirror.nl.leaseweb.net : Resolving timed out after 10000 milliseconds
gpm-1.20.7-2-x86_64 131.8 KiB 65.1K/s 00:02 [###############################################################] 100%
error: failed retrieving file 'vim-runtime-7.3.875-1-x86_64.pkg.tar.xz' from mirror.us.leaseweb.net : Resolving timed out after 10000 milliseconds
error: failed retrieving file 'vim-runtime-7.3.875-1-x86_64.pkg.tar.xz' from mirror.de.leaseweb.net : Resolving timed out after 10000 milliseconds
error: failed retrieving file 'vim-runtime-7.3.875-1-x86_64.pkg.tar.xz' from mirror.nl.leaseweb.net : Resolving timed out after 10000 milliseconds
vim-runtime-7.3.875-1-x86_64 4.4 MiB 67.1K/s 01:07 [###############################################################] 100%
error: failed retrieving file 'ruby-2.0.0_p0-1-x86_64.pkg.tar.xz' from mirror.us.leaseweb.net : Resolving timed out after 10000 milliseconds
error: failed retrieving file 'ruby-2.0.0_p0-1-x86_64.pkg.tar.xz' from mirror.de.leaseweb.net : Resolving timed out after 10000 milliseconds
error: failed retrieving file 'ruby-2.0.0_p0-1-x86_64.pkg.tar.xz' from mirror.nl.leaseweb.net : Resolving timed out after 10000 milliseconds
ruby-2.0.0_p0-1-x86_64 3.4 MiB 57.8K/s 01:00 [###############################################################] 100%
error: failed retrieving file 'lua-5.2.2-1-x86_64.pkg.tar.xz' from mirror.us.leaseweb.net : Resolving timed out after 10000 milliseconds
error: failed retrieving file 'lua-5.2.2-1-x86_64.pkg.tar.xz' from mirror.de.leaseweb.net : Resolving timed out after 10000 milliseconds
error: failed retrieving file 'lua-5.2.2-1-x86_64.pkg.tar.xz' from mirror.nl.leaseweb.net : Resolving timed out after 10000 milliseconds
lua-5.2.2-1-x86_64 231.2 KiB 69.6K/s 00:03 [###############################################################] 100%
这绝对会发生每一个包。我向你保证。它尝试获取文件,但没有成功,它一次又一次地尝试,然后它成功了。
仔细观察后,我猜测它是试图从中获取文件的服务器,对吗?
如果是这样,我应该在哪里将这些服务器的顺序更改为更好的顺序?
答案1
显然这三台服务器超时了;当 pacman 尝试第四台服务器时,它成功了。或者你的网络有其他问题(我可以解决并连接到它们)。
尝试编辑/etc/pacman.d/mirrorlist
并更改服务器。