易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 3485|回复: 0
收起左侧

yum源报错

[复制链接]
发表于 2018-7-19 23:50:20 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?开始注册

x
# yum install -y chrony.x86_64 / h; I3 S4 t1 ~4 e  H2 h
Loaded plugins: fastestmirror7 g( p2 }7 p7 T' _/ h- A
Loading mirror speeds from cached hostfile% }7 I$ U5 q8 R7 m" b* p, k
* base: ftp.sjtu.edu.cn
/ k5 n) n* Y2 @  ] * extras: mirrors.huaweicloud.com
# J- b: w1 M9 A * updates: ftp.sjtu.edu.cn* P* R" n" R; a2 i; X/ T/ u$ _
base                                                                                                     | 3.6 kB  00:00:00     * h7 l6 t5 L! B. f: z
centos-ceph-jewel                                                                                        | 2.9 kB  00:00:00       e) y2 x5 s& E
centos-openstack-pike                                                                                    | 2.9 kB  00:00:00     + _6 H0 g5 r. ]5 x1 Z- X# K
http://mirror.centos.org/altarch/7/virt/x86_64/kvm-common/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
$ R, J) W& P, G0 `Trying other mirror.1 T$ u8 l# [% D! C  K# V
To address this issue please refer to the below wiki article 2 O* ~8 I7 q8 B5 A3 m: S
https://wiki.centos.org/yum-errors
6 z, `) u) l9 T, S" ?; e. xIf above article doesn't help to resolve this issue please use https://bugs.centos.org/.
2 P) Z' l4 ]; Y& u3 m; H
5 R3 f) I0 M1 E& V! n4 Z/ A One of the configured repositories failed (CentOS-7 - QEMU EV),
0 d* L2 E2 Q; n  t1 t& t6 G and yum doesn't have enough cached data to continue. At this point the only& \" t9 \1 {# g! C+ {
safe thing yum can do is fail. There are a few ways to work "fix" this:$ |2 t7 w; W9 q; w
     1. Contact the upstream for the repository and get them to fix the problem.
( l" E' b3 {6 ]6 c     2. Reconfigure the baseurl/etc. for the repository, to point to a working
+ s- M! _. Z" Z        upstream. This is most often useful if you are using a newer9 Z( `5 S: p' x5 \; ?  N" |
        distribution release than is supported by the repository (and the) J7 Y  W. I2 t% ~
        packages for the previous distribution release still work).
# h1 E0 n# v4 {1 a8 I5 J     3. Run the command with the repository temporarily disabled
1 X& B* b' z" f6 F0 Y4 m; t1 k5 r% E" A            yum --disablerepo=centos-qemu-ev ...5 z( w4 f% W/ M) {* E0 T5 |
     4. Disable the repository permanently, so yum won't use it by default. Yum
. s! Q; c- J; S5 C7 T, r        will then just ignore the repository until you permanently enable it/ W9 p. P0 n+ x( @
        again or use --enablerepo for temporary usage:* B% F# z- w8 H, y& q
            yum-config-manager --disable centos-qemu-ev* s, Q: P& i9 ~6 h6 y- K$ ]
        or4 O! t. A8 Q2 M! c, r: v1 P2 J
            subscription-manager repos --disable=centos-qemu-ev9 t$ i% x9 Q; A9 t
     5. Configure the failing repository to be skipped, if it is unavailable.( K6 P6 d+ J6 m9 S, G4 x) e9 m
        Note that yum will try to contact the repo. when it runs most commands,7 C: H9 \$ z7 x) i) @% j9 c# T! O
        so will have to try and fail each time (and thus. yum will be be much
6 M5 n4 y: b" ~' T9 ~* F        slower). If it is a very temporary problem though, this is often a nice6 v5 @1 s! @9 l4 \5 `
        compromise:6 [0 t! L) o3 G, r9 H
            yum-config-manager --save --setopt=centos-qemu-ev.skip_if_unavailable=true
1 v, Y2 f6 ^  n& a7 Z1 I, u+ Gfailure: repodata/repomd.xml from centos-qemu-ev: [Errno 256] No more mirrors to try.+ }  f: t( x' b- }
http://mirror.centos.org/altarch/7/virt/x86_64/kvm-common/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found( b$ D  K: h+ W) c  |+ F- k2 Z

/ R7 ]7 L8 a: C( C/ U4 G报错原因是因为yum源配置文件CentOS-QEMU-EV.repo有问题,需要验证所以会报错。
; b2 T# ?* T" q# W/ i# vim /etc/yum.repos.d/CentOS-QEMU-EV.repo
8 `6 e9 G( D* l  M4 N' q将默认状态的4 N/ w5 Q' |0 o; @- U
gpgcheck=1
* u5 \, e( A1 A( U; O6 P- xenabled=1
* h& V) r0 F7 f4 {& B1 p修改为:
4 }7 _, r2 ]/ G3 V4 A9 O2 L
1 l: x4 t% n5 v" ngpgcheck=0* Z' V! N+ M! d8 ~  K4 c
enabled=0
0 l3 E! b0 s( A5 \' N; k4 [) c0 F. O) z: u
再次安装就不会出现问题了。
; e% c7 ^: g$ u
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

站长推荐上一条 /4 下一条

北京云银创陇科技有限公司以云计算运维,代码开发

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 点击这里给我发消息

GMT+8, 2026-4-8 19:38 , Processed in 0.040366 second(s), 22 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

快速回复 返回顶部 返回列表