易陆发现互联网技术论坛

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

yum源报错

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

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

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

x
# yum install -y chrony.x86_64   S) S" ~3 g& b& }
Loaded plugins: fastestmirror
! e8 \' S) a7 ~$ _: cLoading mirror speeds from cached hostfile
* h( Q1 g- }  n$ M* P1 `4 O0 Q * base: ftp.sjtu.edu.cn
7 q4 ]' X6 t0 o" r  Z * extras: mirrors.huaweicloud.com: x* t! c0 ?. t( h
* updates: ftp.sjtu.edu.cn9 S3 m) r  U9 i4 q9 ]
base                                                                                                     | 3.6 kB  00:00:00       F# [9 ]/ q# F5 a$ X4 |2 G2 R
centos-ceph-jewel                                                                                        | 2.9 kB  00:00:00       N) U) i: q# i3 |; Q4 s
centos-openstack-pike                                                                                    | 2.9 kB  00:00:00     
$ l% T4 _/ E6 A1 J0 Z: l, X; Phttp://mirror.centos.org/altarch/7/virt/x86_64/kvm-common/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found* W0 w& i0 B7 a! P& [* F0 N
Trying other mirror.( g! E6 ?% F% E* p, C
To address this issue please refer to the below wiki article
9 l  d1 h/ \; y. c; r+ i5 m8 chttps://wiki.centos.org/yum-errors/ b0 {3 R9 @: S& w) @7 n6 J
If above article doesn't help to resolve this issue please use https://bugs.centos.org/.
& K, g* P  D4 N
) ^' S# E* [% F: a  v  L/ Z One of the configured repositories failed (CentOS-7 - QEMU EV),7 |6 P2 \7 O1 |' |2 ~$ I
and yum doesn't have enough cached data to continue. At this point the only
  T9 E3 Z; Z6 ~8 u' m* Z, }  X safe thing yum can do is fail. There are a few ways to work "fix" this:
7 ~- c, i! i  `$ a     1. Contact the upstream for the repository and get them to fix the problem.1 ?- }; E( q$ ?3 h3 u+ t
     2. Reconfigure the baseurl/etc. for the repository, to point to a working1 F4 s8 i4 G0 Z& P" i. Y
        upstream. This is most often useful if you are using a newer
$ z9 [* i# a" Q7 z' Q# R) z7 W        distribution release than is supported by the repository (and the
5 H$ X7 {/ `, A! r9 B) y* `! F" i        packages for the previous distribution release still work).' t8 t1 c( e1 V8 E; b
     3. Run the command with the repository temporarily disabled# E* O, c/ Q0 A9 S
            yum --disablerepo=centos-qemu-ev ...
8 \" b( u8 \7 Z! [     4. Disable the repository permanently, so yum won't use it by default. Yum
9 p1 q9 A$ J& u. v0 T/ y1 ]        will then just ignore the repository until you permanently enable it5 g* ], O4 }" s: Q" H
        again or use --enablerepo for temporary usage:- v' @: L. x2 p4 b7 Y
            yum-config-manager --disable centos-qemu-ev) E- i* Z: h$ D! O' W
        or
: t# ]4 \' \2 m3 {  v# E            subscription-manager repos --disable=centos-qemu-ev
$ c. c8 X# m  {( G4 M     5. Configure the failing repository to be skipped, if it is unavailable.8 ?; o( K& {5 o3 K) s% {
        Note that yum will try to contact the repo. when it runs most commands,/ V7 A! ~# B+ c) j5 |
        so will have to try and fail each time (and thus. yum will be be much
# ^8 j1 K2 W( \) X' v9 a        slower). If it is a very temporary problem though, this is often a nice8 L1 r: B2 @! T6 _: X; R
        compromise:$ S* z4 p& q' T9 h3 {# |8 d
            yum-config-manager --save --setopt=centos-qemu-ev.skip_if_unavailable=true
" E( ]' ~' m* Q3 O$ L! q& Y7 ~failure: repodata/repomd.xml from centos-qemu-ev: [Errno 256] No more mirrors to try.
; v5 u+ Y/ y0 {9 L" ohttp://mirror.centos.org/altarch/7/virt/x86_64/kvm-common/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found* a) `" s1 H7 t8 D7 Y
; Z. s9 n$ M' s! ?6 x' v
报错原因是因为yum源配置文件CentOS-QEMU-EV.repo有问题,需要验证所以会报错。! v: d. _- C% ^( v2 Y, K
# vim /etc/yum.repos.d/CentOS-QEMU-EV.repo
  O1 F2 R5 }' Q0 o0 N- o9 }将默认状态的
# v3 x; u+ x' rgpgcheck=10 U4 T$ z/ q2 Q. `5 V2 B: \6 {
enabled=1% D+ Y- l* Z0 X( e4 ~( N. q& f
修改为:
: N( K- s0 J0 p% M) h! q/ w! T
* N. }1 E- P8 j: D4 M) qgpgcheck=0
$ T- Z' \2 U2 b5 y( v/ L4 h5 [1 |enabled=0' [9 {8 w/ ?2 b! R( o" d0 U/ X" A. D$ K

5 N0 I) V8 @) j/ u1 h再次安装就不会出现问题了。
* ~" w" F/ F: t
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

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

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )点击这里给我发消息

GMT+8, 2026-4-8 21:23 , Processed in 0.048322 second(s), 21 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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