Failed to synchronize cache for repo 'AppStream', ignoring this repo.
Failed to synchronize cache for repo 'BaseOS', ignoring this repo.
Failed to synchronize cache for repo 'extras', ignoring this repo.
cd /etc/yum.repos.d
分别找到三个文件,修改阿里云地址即可
vi CentOS-AppStream.repo
vi CentOS-Base.repo
vi CentOS-Extras.repo
把
baseUrl=baseurl=http://mirrors.cloud.aliyuncs.com/$contentdir/$releasever/AppStream/$basearch/os/
改成
baseUrl=http://mirrors.aliyuncs.com/centos/$releasever/AppStream/$basearch/os/
修改完之后执行 dnf命令或者yum 命令都可以
dnf clean all # 清除所有的缓存文件
dnf makecache # 制作元数据缓存
如果此文对你有所帮助,请随意打赏鼓励作者^_^
微信公众号
微信
最新评论
总共0条评论