|
|
Operation too slow ,Less than 1000 bytes Z" Q/ R/ ^) m4 u3 W4 I' O) a
$ G% J% x# D+ r4 P! j
问题# c% \' X }% X) H' h9 l4 Z' J$ l
$ B* L1 m2 @. r9 k" Q/ v
yum list " A. S/ Q3 O( |% N1 g! x
Loaded plugins: fastestmirror" O1 [( R' @/ |4 m: C6 D" t: R
Determining fastest mirrors$ | Y+ c- _1 |+ Z' m9 I0 l
http://172.24.21.35/os/repodata/repomd.xml: [Errno 12] Timeout on http://172.24.21.35/os/repodata/repomd.xml: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')
4 u' l" I6 }+ l9 A; r4 {Trying other mirror.
' W; w- l# E6 @2 Z% B( Lhttp://172.24.21.35/os/repodata/repomd.xml: [Errno 12] Timeout on http://172.24.21.35/os/repodata/repomd.xml: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')
6 F& Q" M/ ~; f7 T0 XTrying other mirror.
$ G- A' D" w. j" U# ahttp://172.24.21.35/os/repodata/repomd.xml: [Errno 12] Timeout on http://172.24.21.35/os/repodata/repomd.xml: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')
+ L. l4 }, r2 M$ DTrying other mirror./ @+ S4 N3 f8 l! Y! w B1 k
: [# v3 b4 p7 \5 T4 h# _7 M% W/os/repodata/repomd.xml: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')8 |: O4 O, }9 M: K f
1 J/ D" i7 B# h( {$ x
分析来看
" H6 t9 c% m; [ y3 v
( E8 C/ [, F. i2 O# L# fhttp://172.24.21.35/os/repodata/repomd.xml: [Errno 12] Timeout on http://172.24.21.35/os/repodata/repomd.xml: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')
: q( m! r7 A" V0 e5 ohttp://172.24.21.35/os/repodata/repomd.xml: [Errno 12] Timeout on http://172.24.21.35/os/repodata/repomd.xml: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')5 y: k7 P. G( M9 @& ]5 j
http://172.24.21.35/os/repodata/repomd.xml: [Errno 12] Timeout on http://172.24.21.35/os/repodata/repomd.xml: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')
$ K6 z( p$ @" X' `2 _无法识别目录。
6 M3 K! }: _0 I' M% @8 N o" p$ S) }* @6 x7 C1 v
解决办法:& s5 \) ^' I2 i1 v
检查repo文件
8 B* @0 P: h! {8 y
- c. B* h7 P! K9 ?& gcat /etc/yum.repos.d/base.repo
/ b( S0 C/ ]# N2 Z[base]
! J/ P! u" L7 q0 |name=CentOS-$releasever - Base- `- d& n, x% M% y# U
#mirrorlist=http://mirrors.163.com/?release=$releasever&arch=$basearch&repo=os&infra=$infra
" ^; [! U" Z/ Pbaseurl=http://172.24.21.35/os/9 z) W- ?# [! ?1 G! O, m) f
gpgcheck=0
* i# j U* H# l4 W4 N' V2 ]gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
6 `' o, s- y* Z$ O D) X) S& z
^' }3 k4 C4 Y* n; A1 C#released updates
- y6 L, Y6 h) N) O, u[updates]' a' E( K5 C1 A, |+ t) k
name=CentOS-$releasever - Updates
* ]' B- S4 z6 W( M- S% v#mirrorlist=http://mirrors.163.com/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
" C7 J( I. T! X: _, L5 O* cbaseurl=http://172.24.21.35/updates/x86_64
! \ g) ?' `0 s, K8 Mgpgcheck=0, W$ H/ @1 A$ O2 b/ X" c
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7- o' b/ G1 b" r# i0 A
2 c3 t: f* A$ @: p/ O1 c#additional packages that may be useful
- H. _+ {, _$ F9 e( `. Y3 J( x- Z[extras]5 D i! g; f' g6 y' s
name=CentOS-$releasever - Extras) [9 b. b( i3 B9 \; p Q
#mirrorlist=http://mirrors.163.com/?release=$releasever&arch=$basearch&repo=extras&infra=$infra8 W, B% d8 t, u% K- P
baseurl=http://172.24.21.35/extras/x86_64, |9 ?( q: |2 m: i8 B
gpgcheck=0
; x8 i! c3 f' @( }7 e1 v7 a
. w0 n3 t4 D' }0 D9 l' u N6 K0 b/ f* R3 ]
1 s% M$ [: Y0 x9 A+ t发现是配置的路劲里目录写错了。
6 ^! b' Y/ d6 F1 C6 n( u4 e修改即可:
3 A( [9 Q: Q0 a& O" Z
' B7 r3 {* m! W2 V+ }$ L, k: w
1 f/ M, M+ w* v) H' X[base]8 e) C) T# Z. a" ~& X5 v; {
name=CentOS-$releasever - Base
/ r5 N+ z7 P5 I$ E4 x4 Abaseurl=http://172.24.21.35/centos/os/
" t9 s4 a7 A S8 t5 rgpgcheck=07 m7 M2 Z: P9 h9 y3 x
7 e4 v/ g5 F/ [2 F# @- @$ f#released updates $ X, V+ A4 Q9 y% F! h1 E8 _- I8 F
[updates]: n# L9 d6 k% p9 x% t
name=CentOS-$releasever - Updates+ ~5 J# @6 H: _1 G& L9 U4 |
baseurl=http://172.24.21.35/centos/updates/
1 ~! P- f+ Z, o, S1 K( d5 Ygpgcheck=0
8 j0 y/ D) ~" m' q3 x
6 d i$ I# F3 A" P#additional packages that may be useful$ E* F" K0 {8 b0 \) x1 x
[extras]
, r! c1 T) [0 t8 ~7 Uname=CentOS-$releasever - Extras3 E: a5 k1 W7 y2 i3 W7 A; y, B
baseurl=http://172.24.21.35/centos/extras/x86_64/: Y5 q9 V, I* ?; Y- }# X
gpgcheck=0
9 ^( p: g: e( ~8 R- ~ i- \
. Z6 X; `+ O4 ~2 N+ T9 F) ~& M1 u
# ~- e2 Y1 f9 o. J$ \3 U% Q2 w6 |
; w2 o, c4 c N" i# ] |
|