为什么 pacman/packer 总是连接失败三次,现在是第四次?

为什么 pacman/packer 总是连接失败三次,现在是第四次?

我认为这可以更好地解释:

:: 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并更改服务器。

相关内容