易陆发现互联网技术论坛

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

yum源报错

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

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

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

x
# yum install -y chrony.x86_64
+ v* z% f  U6 n0 r% ?) N- oLoaded plugins: fastestmirror
. {0 A* r5 x2 [- p/ }6 OLoading mirror speeds from cached hostfile
+ Z3 T( |8 J8 D$ P* _ * base: ftp.sjtu.edu.cn
8 V/ j: j( _9 p& J, b* D% j. P$ K8 X * extras: mirrors.huaweicloud.com: t2 a) r. ?; N
* updates: ftp.sjtu.edu.cn: E4 S: g- I) y3 y
base                                                                                                     | 3.6 kB  00:00:00     
+ M- y. a4 l2 A) T4 ?  a. p2 ycentos-ceph-jewel                                                                                        | 2.9 kB  00:00:00     4 o# ]- e- W" r. r# Y+ ]5 w
centos-openstack-pike                                                                                    | 2.9 kB  00:00:00     
* ^0 s( e% C: _* y# ghttp://mirror.centos.org/altarch/7/virt/x86_64/kvm-common/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found. G' `* o- L) a, c0 ?& E) |
Trying other mirror.
  U- R. Y" l3 ?9 YTo address this issue please refer to the below wiki article
9 H5 b: [6 g3 b7 g2 zhttps://wiki.centos.org/yum-errors: X# q% L0 g0 e
If above article doesn't help to resolve this issue please use https://bugs.centos.org/.
  C0 x* c& p, i7 ]" F4 ?: Z
0 s; l: h4 A! Y8 A0 @  f One of the configured repositories failed (CentOS-7 - QEMU EV),
$ f; K# G$ W+ T* X) d and yum doesn't have enough cached data to continue. At this point the only, _6 [( z7 y7 w) O
safe thing yum can do is fail. There are a few ways to work "fix" this:4 y; K9 |- P- y/ r( w8 x3 x
     1. Contact the upstream for the repository and get them to fix the problem.
) C0 U) B2 i) d     2. Reconfigure the baseurl/etc. for the repository, to point to a working" ^1 U$ j1 S7 j* L5 }
        upstream. This is most often useful if you are using a newer
% T* g' g2 Y0 q' p- Z" N1 m        distribution release than is supported by the repository (and the
( {9 W& H3 B+ Z        packages for the previous distribution release still work).7 H% `% M8 b0 Y5 Q
     3. Run the command with the repository temporarily disabled
7 [( Y2 f" j( g# s- T            yum --disablerepo=centos-qemu-ev ...) }' K2 @( [" A" i8 ]
     4. Disable the repository permanently, so yum won't use it by default. Yum
; P- R9 q' v- s2 @6 P. r: V; d$ W        will then just ignore the repository until you permanently enable it5 v7 C) o) B4 R% z# J* Y* R! g- H
        again or use --enablerepo for temporary usage:5 _- f' n- W9 P& a5 C
            yum-config-manager --disable centos-qemu-ev
& _8 q. P, O7 u        or
0 z- I+ W: C% z! l            subscription-manager repos --disable=centos-qemu-ev* u7 ]9 n: J7 Y. Y$ \6 s" p8 N
     5. Configure the failing repository to be skipped, if it is unavailable.
+ \- y4 y$ @2 Z' |/ a; G+ R! L        Note that yum will try to contact the repo. when it runs most commands,
# c2 M% i; v; g  {- J6 n7 J        so will have to try and fail each time (and thus. yum will be be much1 f; g, ^5 D. |* g" m& K
        slower). If it is a very temporary problem though, this is often a nice
# m& V0 a1 V: M9 q        compromise:1 Z$ B, N, X( a7 R0 S8 B0 ]
            yum-config-manager --save --setopt=centos-qemu-ev.skip_if_unavailable=true
; [2 D  S) Q3 h9 u1 g, X! kfailure: repodata/repomd.xml from centos-qemu-ev: [Errno 256] No more mirrors to try.
7 J: Y( o  c+ q+ ?- M# F+ c) x- p2 P8 lhttp://mirror.centos.org/altarch/7/virt/x86_64/kvm-common/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found, t) u" {4 R" r5 N0 d" M
4 ^" [: A1 b/ D, E
报错原因是因为yum源配置文件CentOS-QEMU-EV.repo有问题,需要验证所以会报错。* [& z1 o1 w7 ~8 g7 {
# vim /etc/yum.repos.d/CentOS-QEMU-EV.repo 8 H: m+ b8 ?, z; C/ {$ H4 p
将默认状态的
; T' }: w+ ~& b+ V8 vgpgcheck=1
5 y/ S( N4 @, m  @. eenabled=1
" Z9 |' {. m; p$ M修改为:
! y. U/ J1 a# l, P1 V# P5 \) i, {) e/ }6 W6 u* W, N; D4 v: o5 _
gpgcheck=0' m/ ?& A3 s0 E# S( T% {. w5 \
enabled=0& s7 T( H! U# W" P* q

8 E4 a4 s3 n$ ?再次安装就不会出现问题了。
% p" A7 R! ~9 y
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

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

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

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

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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