yum update 报错
Loaded plugins: fastestmirror
base | 3.6 kB 00:00:00
docker-ce-stable | 3.5 kB 00:00:00
docker-ce-test | 3.5 kB 00:00:00
epel | 4.7 kB 00:00:00
Not using downloaded epel/repomd.xml because it is older than what we have:
Current : Wed Sep 16 22:51:40 2020
Downloaded: Wed Sep 16 00:33:42 2020
extras | 2.9 kB 00:00:00
mysql-connectors-community | 2.5 kB 00:00:00
mysql-tools-community | 2.5 kB 00:00:00
mysql57-community | 2.5 kB 00:00:00
salt-latest | 2.9 kB 00:00:00
updates | 2.9 kB 00:00:00
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
epel/x86_64/primary_db FAILED
http://mirrors.aliyun.com/epel/7/x86_64/repodata/42d56601cf36c0491d0d9713782f8980c1fc6bd22f5b99aae3909d21c6a52cea-primary.sqlite.bz2: [Errno 14] HTTP Error 404 - Not Found0 B --:--:-- ETA
Trying other mirror.
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/
http://mirrors.aliyun.com/epel/7/x86_64/repodata/42d56601cf36c0491d0d9713782f8980c1fc6bd22f5b99aae3909d21c6a52cea-primary.sqlite.bz2: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
One of the configured repositories failed (Extra Packages for Enterprise Linux 7 - x86_64),
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=epel ...
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 epel
or
subscription-manager repos --disable=epel
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=epel.skip_if_unavailable=true
failure: repodata/42d56601cf36c0491d0d9713782f8980c1fc6bd22f5b99aae3909d21c6a52cea-primary.sqlite.bz2 from epel: [Errno 256] No more mirrors to try.
http://mirrors.aliyun.com/epel/7/x86_64/repodata/42d56601cf36c0491d0d9713782f8980c1fc6bd22f5b99aae3909d21c6a52cea-primary.sqlite.bz2: [Errno 14] HTTP Error 404 - Not Found
修改方法 进入到下载好的CentOS6-Base-163.repo,或者CentOS7-Base-163.repo文件中 将我们$releasever全部改为6即可
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。