易陆发现互联网技术论坛

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

yum源报错

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

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

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

x
# yum install -y chrony.x86_64 0 k+ y7 Z6 }: R. z
Loaded plugins: fastestmirror
" L! t* V+ ^. U& mLoading mirror speeds from cached hostfile) h4 u) M. ]4 b& z
* base: ftp.sjtu.edu.cn
3 M) |1 d- W7 i4 Q * extras: mirrors.huaweicloud.com4 `& M, F/ ?. R# j3 O4 G
* updates: ftp.sjtu.edu.cn
' q* R4 |* i. Lbase                                                                                                     | 3.6 kB  00:00:00     
* y: ]7 Y6 i! lcentos-ceph-jewel                                                                                        | 2.9 kB  00:00:00     7 I: T0 Y: T" \, C
centos-openstack-pike                                                                                    | 2.9 kB  00:00:00     - d6 M* \8 v* X  g, J
http://mirror.centos.org/altarch/7/virt/x86_64/kvm-common/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
( P3 n0 }. i' V% j3 H* rTrying other mirror.2 W3 i; j1 \' L: L! {/ F% w; _
To address this issue please refer to the below wiki article % _; ^- Z# E2 [
https://wiki.centos.org/yum-errors' B2 @1 F) j" H7 M
If above article doesn't help to resolve this issue please use https://bugs.centos.org/.
% C) @2 Q5 D3 A9 f& A. x2 V1 _- r+ e: Z/ ^- m7 [
One of the configured repositories failed (CentOS-7 - QEMU EV),
9 g% d% M4 h% @ and yum doesn't have enough cached data to continue. At this point the only7 ^" ^! P' v; j) k3 l$ n# s
safe thing yum can do is fail. There are a few ways to work "fix" this:
* C; v. [$ k5 _6 e; h     1. Contact the upstream for the repository and get them to fix the problem.9 C: G) F* s6 K- z
     2. Reconfigure the baseurl/etc. for the repository, to point to a working; V5 m9 W- N1 `& |( O. T8 E( S1 \: F" R
        upstream. This is most often useful if you are using a newer+ a# k# f* Z$ y5 M0 Z
        distribution release than is supported by the repository (and the; h' |, |$ a- `2 \
        packages for the previous distribution release still work).3 w+ r* W& k- N' s1 H
     3. Run the command with the repository temporarily disabled
& U2 \  r! V* E, J3 s6 g            yum --disablerepo=centos-qemu-ev ...
6 o  [) s6 D$ J" T' U     4. Disable the repository permanently, so yum won't use it by default. Yum
+ r2 |7 U# B4 ^2 C        will then just ignore the repository until you permanently enable it  e4 Z$ {* X+ E- E; X/ M
        again or use --enablerepo for temporary usage:* `& r. j) y# k5 N- V6 W+ E
            yum-config-manager --disable centos-qemu-ev5 q& l$ w8 ^/ e, H: {
        or8 D+ ^5 k1 m# n. I: d
            subscription-manager repos --disable=centos-qemu-ev
6 F# y/ Q+ S& c     5. Configure the failing repository to be skipped, if it is unavailable.
! H( |0 I' x% [  |8 h% W        Note that yum will try to contact the repo. when it runs most commands,) O; G! N- F- T/ _
        so will have to try and fail each time (and thus. yum will be be much3 p. q+ T2 Q* t/ C# x# V7 D6 Z
        slower). If it is a very temporary problem though, this is often a nice
8 U) V" T; U! U( o, z* i3 x        compromise:  Z  l' u( j: c( W) w
            yum-config-manager --save --setopt=centos-qemu-ev.skip_if_unavailable=true2 j; C6 C" v9 [* d
failure: repodata/repomd.xml from centos-qemu-ev: [Errno 256] No more mirrors to try.
- {5 P) k6 L7 dhttp://mirror.centos.org/altarch/7/virt/x86_64/kvm-common/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found0 Y: I$ z7 ~, f

) w6 t* y- L2 n: X  ^7 h# q报错原因是因为yum源配置文件CentOS-QEMU-EV.repo有问题,需要验证所以会报错。
; j- b, D: @: F* w4 K- M  }# vim /etc/yum.repos.d/CentOS-QEMU-EV.repo
8 ]# p% j& g1 U" [; v将默认状态的- R; i+ N: m6 _5 Y
gpgcheck=18 d8 H4 ]! I; ?' Z
enabled=1
" B+ e  r6 ]& Z修改为:8 b# ^0 G1 l1 ^, {( m, s5 A

, _$ X) G( Z! E/ \1 }+ h% c$ M% S5 Mgpgcheck=0, G( Z) ?! ~: C8 d( C
enabled=0/ z, Z7 U; b. X) f) k
- [1 r- f! ~7 g2 C7 C0 c
再次安装就不会出现问题了。
$ l$ s3 _0 p/ {
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

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

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

GMT+8, 2026-4-8 21:18 , Processed in 0.043835 second(s), 24 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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