首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >CentOS 7在yum更新时超时

问CentOS 7在yum更新时超时
EN

Server Fault用户
提问于 2017-07-05 02:17:01
回答 3查看 22.2K关注 0票数 1

在过去的几天里,我一直在犯这个错误。当我执行"yum更新“或基本上任何"yum”命令时,它都是超时并花费很长时间或基本停止它。我去谷歌上的每个人寻找解决方案,但都没有任何帮助。这是我的装备:

VMware ESXI 6.5主机它是运行在OVH网络上的CentOS 7虚拟机。

这是当我更新的时候它给我的东西..。

代码语言:javascript
复制
Total download size: 100 M
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
warning: /var/cache/yum/x86_64/7/updates/packages/NetworkManager-libnm-1.4.0-20.el7_3.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Public key for NetworkManager-libnm-1.4.0-20.el7_3.x86_64.rpm is not installed
(1/71): NetworkManager-libnm-1.4.0-20.el7_3.x86_64.rpm     | 443 kB   00:00     
(2/71): NetworkManager-team-1.4.0-20.el7_3.x86_64.rpm      | 147 kB   00:00     
NetworkManager-tui-1.4.0-20.el FAILED                                          
http://centos.mirror.iweb.ca/7.3.1611/updates/x86_64/Packages/NetworkManager-tui-1.4.0-20.el7_3.x86_64.rpm: [Errno 14] curl#7 - "Failed to connect to 2607:f748:10:12:0:ce17:705:1: Network is unreachable"
Trying other mirror.
(3/71): NetworkManager-wifi-1.4.0-20.el7_3.x86_64.rpm      | 176 kB   00:00     
NetworkManager-1.4.0-20.el7_3. FAILED                                          
http://centos.mirror.iweb.ca/7.3.1611/updates/x86_64/Packages/NetworkManager-1.4.0-20.el7_3.x86_64.rpm: [Errno 12] Timeout on http://centos.mirror.iweb.ca/7.3.1611/updates/x86_64/Packages/NetworkManager-1.4.0-20.el7_3.x86_64.rpm: (28, 'Connection timed out after 30000 milliseconds')
Trying other mirror.
(4/71): audit-2.6.5-3.el7_3.1.x86_64.rpm                   | 233 kB   00:00     
(5/71): audit-libs-2.6.5-3.el7_3.1.x86_64.rpm              |  85 kB   00:00     
bash-4.2.46-21.el7_3.x86_64.rp FAILED                                          
http://centos.mirror.iweb.ca/7.3.1611/updates/x86_64/Packages/bash-4.2.46-21.el7_3.x86_64.rpm: [Errno 12] Timeout on http://centos.mirror.iweb.ca/7.3.1611/updates/x86_64/Packages/bash-4.2.46-21.el7_3.x86_64.rpm: (28, 'Connection timed out after 30001 milliseconds')
Trying other mirror.
(6/71): bind-libs-lite-9.9.4-38.el7_3.3.x86_64.rpm         | 730 kB   00:00     
(7/71): bind-license-9.9.4-38.el7_3.3.noarch.rpm           |  83 kB   00:00     
(8/71): ca-certificates-2017.2.14-70.1.el7_3.noarch.rpm    | 438 kB   00:00     
(9/71): chkconfig-1.7.2-1.el7_3.1.x86_64.rpm               | 175 kB   00:00     
(10/71): chrony-2.1.1-4.el7.centos.x86_64.rpm              | 281 kB   00:00     
device-mapper-1.02.135-1.el7_3 FAILED                                          
http://centos.mirror.iweb.ca/7.3.1611/updates/x86_64/Packages/device-mapper-1.02.135-1.el7_3.5.x86_64.rpm: [Errno 12] Timeout on http://centos.mirror.iweb.ca/7.3.1611/updates/x86_64/Packages/device-mapper-1.02.135-1.el7_3.5.x86_64.rpm: (28, 'Connection timed out after 30001 milliseconds')
Trying other mirror.
device-mapper-libs-1.02.135-1. FAILED                                          
http://centos.mirror.iweb.ca/7.3.1611/updates/x86_64/Packages/device-mapper-libs-1.02.135-1.el7_3.5.x86_64.rpm: [Errno 12] Timeout on http://centos.mirror.iweb.ca/7.3.1611/updates/x86_64/Packages/device-mapper-libs-1.02.135-1.el7_3.5.x86_64.rpm: (28, 'Resolving timed out after 30540 milliseconds')
Trying other mirror.
dmidecode-3.0-2.1.el7_3.x86_64 FAILED                                          
http://centos.mirror.iweb.ca/7.3.1611/updates/x86_64/Packages/dmidecode-3.0-2.1.el7_3.x86_64.rpm: [Errno 14] curl#6 - "Could not resolve host: centos.mirror.iweb.ca; Name or service not known"
Trying other mirror.
dracut-033-463.el7_3.2.x86_64. FAILED                                          
http://centos.mirror.iweb.ca/7.3.1611/updates/x86_64/Packages/dracut-033-463.el7_3.2.x86_64.rpm: [Errno 12] Timeout on http://centos.mirror.iweb.ca/7.3.1611/updates/x86_64/Packages/dracut-033-463.el7_3.2.x86_64.rpm: (28, 'Resolving timed out after 30539 milliseconds')
Trying other mirror.
dracut-config-rescue-033-463.e FAILED                                          
http://centos.mirror.iweb.ca/7.3.1611/updates/x86_64/Packages/dracut-config-rescue-033-463.el7_3.2.x86_64.rpm: [Errno 14] curl#7 - "Failed to connect to 2607:f748:10:12:0:ce17:705:1: Network is unreachable"
Trying other mirror.
firewalld-0.4.3.2-8.1.el7_3.3. FAILED                                          
http://centos.mirror.colo-serv.net/7.3.1611/updates/x86_64/Packages/firewalld-0.4.3.2-8.1.el7_3.3.noarch.rpm: [Errno 14] curl#7 - "Failed to connect to 2001:19c0:e:13::23: Network is unreachable"
Trying other mirror.
firewalld-filesystem-0.4.3.2-8 FAILED                                          
http://centos.mirror.vexxhost.com/7.3.1611/updates/x86_64/Packages/firewalld-filesystem-0.4.3.2-8.1.el7_3.3.noarch.rpm: [Errno 14] curl#7 - "Failed to connect to 2604:e100:1:0:f816:3eff:fe28:88d0: Network is unreachable"
Trying other mirror.
(11/71): gawk-4.0.2-4.el7_3.1.x86_64.rpm                   | 874 kB   00:00     
(12/71): glibc-2.17-157.el7_3.4.x86_64.rpm                 | 3.6 MB   00:00     
expat-2.1.0-10.el7_3.x86_64.rp FAILED                                          
http://centos.mirror.netelligent.ca/centos/7.3.1611/updates/x86_64/Packages/expat-2.1.0-10.el7_3.x86_64.rpm: [Errno 12] Timeout on http://centos.mirror.netelligent.ca/centos/7.3.1611/updates/x86_64/Packages/expat-2.1.0-10.el7_3.x86_64.rpm: (28, 'Connection timed out after 30001 milliseconds')
Trying other mirror.
grubby-8.28-21.el7_3.x86_64.rp FAILED                                          
http://centos.mirror.iweb.ca/7.3.1611/updates/x86_64/Packages/grubby-8.28-21.el7_3.x86_64.rpm: [Errno 14] curl#7 - "Failed to connect to 2607:f748:10:12:0:ce17:705:1: Network is unreachable"
Trying other mirror.
(13/71): irqbalance-1.0.7-6.el7_3.1.x86_64.rpm             |  44 kB   00:00     
(14/71): kernel-3.10.0-514.26.2.el7.x86_64.rpm             |  37 MB   00:01     
(15/71): kernel-tools-3.10.0-514.26.2.el7.x86_64.rpm       | 4.0 MB   00:00     
dracut-network-033-463.el7_3.2 FAILED                                          
http://centos.mirror.ca.planethoster.net/7.3.1611/updates/x86_64/Packages/dracut-network-033-463.el7_3.2.x86_64.rpm: [Errno 12] Timeout on http://centos.mirror.ca.planethoster.net/7.3.1611/updates/x86_64/Packages/dracut-network-033-463.el7_3.2.x86_64.rpm: (28, 'Resolving timed out after 30539 milliseconds')
Trying other mirror.
glibc-common-2.17-157.el7_3.4. FAILED                                          
http://centos.mirror.netelligent.ca/centos/7.3.1611/updates/x86_64/Packages/glibc-common-2.17-157.el7_3.4.x86_64.rpm: [Errno 12] Timeout on http://centos.mirror.netelligent.ca/centos/7.3.1611/updates/x86_64/Packages/glibc-common-2.17-157.el7_3.4.x86_64.rpm: (28, 'Connection timed out after 30001 milliseconds')
Trying other mirror.
initscripts-9.49.37-1.el7_3.1. FAILED                                          
http://centos.mirror.iweb.ca/7.3.1611/updates/x86_64/Packages/initscripts-9.49.37-1.el7_3.1.x86_64.rpm: [Errno 14] curl#7 - "Failed to connect to 2607:f748:10:12:0:ce17:705:1: Network is unreachable"
Trying other mirror.
krb5-libs-1.14.1-27.el7_3.x86_ FAILED                                          
http://centos.mirror.iweb.ca/7.3.1611/updates/x86_64/Packages/krb5-libs-1.14.1-27.el7_3.x86_64.rpm: [Errno 14] curl#7 - "Failed to connect to 2607:f748:10:12:0:ce17:705:1: Network is unreachable"
Trying other mirror.
kernel-tools-libs-3.10.0-514.2 FAILED                                          
http://centos.mirror.ca.planethoster.net/7.3.1611/updates/x86_64/Packages/kernel-tools-libs-3.10.0-514.26.2.el7.x86_64.rpm: [Errno 12] Timeout on http://centos.mirror.ca.planethoster.net/7.3.1611/updates/x86_64/Packages/kernel-tools-libs-3.10.0-514.26.2.el7.x86_64.rpm: (28, 'Connection timed out after 30001 milliseconds')
Trying other mirror.
kpartx-0.4.9-99.el7_3.3.x86_64 FAILED                                          
http://centos.mirror.ca.planethoster.net/7.3.1611/updates/x86_64/Packages/kpartx-0.4.9-99.el7_3.3.x86_64.rpm: [Errno 14] curl#6 - "Could not resolve host: centos.mirror.ca.planethoster.net; Name or service not known"
Trying other mirror.
(16/71): libblkid-2.23.2-33.el7_3.2.x86_64.rpm             | 170 kB   00:10     
libgcrypt-1.5.3-13.el7_3.1.x86 FAILED                                          
http://centos.mirror.iweb.ca/7.3.1611/updates/x86_64/Packages/libgcrypt-1.5.3-13.el7_3.1.x86_64.rpm: [Errno 14] curl#7 - "Failed to connect to 2607:f748:10:12:0:ce17:705:1: Network is unreachable"
Trying other mirror.
libgudev1-219-30.el7_3.9.x86_6 FAILED                                          
http://centos.mirror.ca.planethoster.net/7.3.1611/updates/x86_64/Packages/libgudev1-219-30.el7_3.9.x86_64.rpm: [Errno 12] Timeout on http://centos.mirror.ca.planethoster.net/7.3.1611/updates/x86_64/Packages/libgudev1-219-30.el7_3.9.x86_64.rpm: (28, 'Connection timed out after 30001 milliseconds')
Trying other mirror.
(17/71): libmount-2.23.2-33.el7_3.2.x86_64.rpm             | 172 kB   00:00     
libnetfilter_conntrack-1.0.6-1 FAILED                                          
http://centos.mirror.ca.planethoster.net/7.3.1611/updates/x86_64/Packages/libnetfilter_conntrack-1.0.6-1.el7_3.x86_64.rpm: [Errno 12] Timeout on http://centos.mirror.ca.planethoster.net/7.3.1611/updates/x86_64/Packages/libnetfilter_conntrack-1.0.6-1.el7_3.x86_64.rpm: (28, 'Connection timed out after 30001 milliseconds')
Trying other mirror.
(18/71): libnl3-3.2.28-3.el7_3.x86_64.rpm                  | 278 kB   00:00

我会感谢你的帮助。

EN

回答 3

Server Fault用户

发布于 2017-07-05 05:18:15

看起来是IPv6连接问题(将ip_resolve=ipv4添加到/etc/yum.conf以强制仅强制IPv4)。其中可能是gpg键验证失败。尝试一下IPv4选项。

票数 5
EN

Server Fault用户

发布于 2018-04-18 01:52:52

在您的VPS上似乎没有正确地配置IPv6。您应该完成对VPS上的IPv6的配置(请与OVH联系以获得此方面的帮助)。

票数 0
EN

Server Fault用户

发布于 2017-07-05 06:40:57

检查互联网连接和带宽,并尝试如下:

代码语言:javascript
复制
yum clean all
yum check
yum erase apf
yum upgrade
票数 -1
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/859388

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档