centos8 yum时总报错Failed to synchronize cache for repo ‘AppStream‘, ignoring this repo.

进入/etc/yum.repos.d/找到对应的CentOS-AppStream.repo文件,把原始的baseurl换成​​​​​​https://mirrors.aliyun.com/centos/8-stream/AppStream/$basearch/os/

跟其他的不一样的地方在8-stream这个位置,原始的是$releasever,改成8-stream后应该就可以正常使用了。

其他的几个也是一样的改法。

posted @ 2023-11-28 00:51  郭小睿  阅读(788)  评论(0编辑  收藏  举报