安装 glusterfs yum源报错

Posted ylj-linux

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了安装 glusterfs yum源报错相关的知识,希望对你有一定的参考价值。

yum install glusterfs-server

yum 一直报错 把/etc/yum.repos.d 备份 删除了所有文件,从测试机192..168.59.128上同步过来 一直报错

已加载插件:fastestmirror
base | 3.6 kB 00:00:00
http://mirror.centos.org/%24contentdir/7/storage/x86_64/gluster-4.1/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
正在尝试其它镜像。
To address this issue please refer to the below knowledge base article

https://access.redhat.com/articles/1320623

If above article doesn‘t help to resolve this issue please create a bug on https://bugs.centos.org/

 

One of the configured repositories failed (CentOS-7 - Gluster 4.1 (Long Term Maintanance)),
and yum doesn‘t have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:

1. Contact the upstream for the repository and get them to fix the problem.

2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).

3. Run the command with the repository temporarily disabled
yum --disablerepo=centos-gluster41 ...

4. Disable the repository permanently, so yum won‘t use it by default. Yum
will then just ignore the repository until you permanently enable it
again or use --enablerepo for temporary usage:

yum-config-manager --disable centos-gluster41
or
subscription-manager repos --disable=centos-gluster41

5. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:

yum-config-manager --save --setopt=centos-gluster41.skip_if_unavailable=true

failure: repodata/repomd.xml from centos-gluster41: [Errno 256] No more mirrors to try.
http://mirror.centos.org/$contentdir/7/storage/x86_64/gluster-4.1/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
[[email protected] ~]# ping www.baidu.com
PING www.a.shifen.com (14.215.177.39) 56(84) bytes of data.
64 bytes from 14.215.177.39 (14.215.177.39): icmp_seq=1 ttl=128 time=15.6 ms
64 bytes from 14.215.177.39 (14.215.177.39): icmp_seq=2 ttl=128 time=15.8 ms
^C
--- www.a.shifen.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 15.662/15.779/15.897/0.172 ms

原因 128安装了glusterFS /etc//etc/yum.repos.d 下多了文件CentOS-Gluster-4.1.repo

在129上 文件CentOS-Gluster-4.1.repo  删除 就不报错了

 




























以上是关于安装 glusterfs yum源报错的主要内容,如果未能解决你的问题,请参考以下文章

glusterfs本地yum源安装报错Error: Package:

解决centos 6.6 更换yum 163源报错

yum安装报错

ubuntu更新源报错

linux -小记 问题:linux 安装epel扩展源报错

Glusterfs分布式存储