一直在试图安装清除os插件,但没有任何工作,因为我在.repo文件中的每个镜像上面临此错误。
# yum install squid http://mirror2-dallas.clearsdn.com/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: [Errno 12] Timeout on http://mirror2-dallas.clearsdn.com/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: (28, **'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds'**) Trying other mirror. mirror2-dc.clearsdn.com/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: [Errno 12] Timeout on mirror2-dc.clearsdn.com/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: (28, '**Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds'**) Trying other mirror. mirror1.timburgess.net/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: [Errno 12] Timeout on mirror1.timburgess.net/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: (28, '**Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds**') Trying other mirror. mirror2-houston.clearsdn.com/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: [Errno 12] Timeout on mirror2-houston.clearsdn.com/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: (28, 'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds') Trying other mirror. mirror3-toronto.clearsdn.com/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: [Errno 12] Timeout on mirror3-toronto.clearsdn.com/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: (28, '**Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds**') Trying other mirror. mirror2-dallas.clearsdn.com/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: [Errno 12] Timeout on mirror2-dallas.clearsdn.com/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: (28, 'O**peration too slow. Less than 1 bytes/sec transfered the last 30 seconds'**) Trying other mirror. mirror2-dc.clearsdn.com/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: [Errno 12] Timeout on mirror2-dc.clearsdn.com/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: (28, 'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds') Trying other mirror. mirror1.timburgess.net/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: [Errno 12] Timeout on mirror1.timburgess.net/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: (28, '**Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds**') Trying other mirror. mirror3-toronto.clearsdn.com/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: [Errno 12] Timeout on mirror3-toronto.clearsdn.com/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: (28, '**Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds**') Trying other mirror. **Error: failure: repodata/primary.sqlite.bz2 from clearos-core: [Errno 256] No more mirrors to try.**
我怎样才能解决这个问题。我能够通过networking访问回购,而回购似乎没有错。在哪里可以解决问题。
尝试百胜清洁,但它也没有帮助。
有没有办法解决这个问题,因为我无法安装任何软件包。
networking工作怎么样呢? 你能够手动去那些镜子吗? 你是否从另一个位置尝试了它们(看看问题可能不在你的最后)?
*更新*
所以在这里,我拿了一个URL,并把它下载到我的盒子上:
$ time wget http://mirror3-toronto.clearsdn.com/clearos/core/6/x86_64/repodata/primary.sqlite.bz2 --2012-10-16 13:06:52-- http://mirror3-toronto.clearsdn.com/clearos/core/6/x86_64/repodata/primary.sqlite.bz2 Resolving mirror3-toronto.clearsdn.com... 69.90.141.74 Connecting to mirror3-toronto.clearsdn.com|69.90.141.74|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 6952331 (6.6M) [application/x-bzip2] Saving to: “primary.sqlite.bz2” 100%[==================================================================================================================================================================================================>] 6,952,331 742K/s in 6.6s 2012-10-16 13:06:59 (1.00 MB/s) - “primary.sqlite.bz2” saved [6952331/6952331] real 0m6.925s user 0m0.011s sys 0m0.110s $
看起来像镜子的速度是好的,所以它必须是你在印度的盒子是错误的,它可能是一些东西:你的networking(界面上的错误),ISP的路线等尝试寻找镜子那距离你的位置更近,而不是数千英里之外,如果你的networking过载/缓慢,我不认为有太多的事情可以做。
*更新2 *
试着在你的本地盒子上做
$ ifconfig | grep errors RX packets:31133806 errors:0 dropped:0 overruns:0 frame:0 TX packets:22168636 errors:0 dropped:0 overruns:0 carrier:0 RX packets:3329073 errors:0 dropped:0 overruns:0 frame:0 TX packets:3329073 errors:0 dropped:0 overruns:0 carrier:0 $
如果你没有看到任何错误,找出你的networking速度到互联网(ISP)
有yum参数可以调整,以防止超时错误。
timeout=300 # default is 30 minrate=100 # default is 1000
但是,如果您实现的速率实际上低于1000,并且在传输后期(例如,病毒扫描代理)没有拿起,那么1兆字节的传输时间将在半小时左右或小时。 但是,如果你让超时时间足够长,至less它会结束…最终。 如果您的传输速度低于1B /秒(似乎是clearos的默认最低速率),那么您的传输将永远不会完成,除非希望它是一个病毒扫描代理向您传递数据。
我在Fedora 19上,奇怪的是minrate设置从未占用过,但是通过将超时设置为5分钟,我可以下载12 MB的包文件。 该文件在1:36传输,但大部分时间都在200 B / s以下,并突然完成非常快(一旦代理病毒扫描程序完成)。
这个想法是,代理将以非常低的速率来缓冲您的文件,以防止在病毒扫描时发生连接超时,并在文件检出后以全速传输。 但是,如果涓stream率低于yum的最小值,那么最终无论如何都会超时。
从man yum.conf :
minrate设置每秒以字节为单位的低速阈值。 如果服务器发送数据的速度比这个更慢
timeout' seconds, Yum aborts the connection. The default istimeout' seconds, Yum aborts the connection. The default is1000。超时在超时之前等待连接的秒数。 默认为30秒。 对于超负荷的网站来说,这可能太短了。
你可以减less最小和/或增加时间 。 只需在/etc/yum.conf [main]部分添加/编辑这些参数。 例如:
[main] ... minrate=1 timeout=300
我有同样的问题。 在我的情况下,事实certificate我有百胜configuration使用本地HTTP代理,并且该代理不能正常运行。
只需编辑/etc/yum.conf并删除以“proxy =”开头的行即可解决问题。 显然,另一种方法是修复代理服务器。