我是靠谱客的博主 年轻跳跳糖,这篇文章主要介绍Errors during downloading metadata for repository ‘AppStream‘,现在分享给大家,希望可以做个参考。

1.1 备份

备份 repo 文件

复制代码
1
rename '.repo' '.repo.bak' /etc/yum.repos.d/*.repo

1.2 下载

下载最新的 repo 文件

复制代码
1
2
wget https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo -O /etc/yum.repos.d/Centos-vault-8.5.2111.repo wget https://mirrors.aliyun.com/repo/epel-archive-8.repo -O /etc/yum.repos.d/epel-archive-8.repo

1.3 运行

替换 repo 中的连接

复制代码
1
2
3
4
5
sed -i 's/mirrors.cloud.aliyuncs.com/url_tmp/g' /etc/yum.repos.d/Centos-vault-8.5.2111.repo && sed -i 's/mirrors.aliyun.com/mirrors.cloud.aliyuncs.com/g' /etc/yum.repos.d/Centos-vault-8.5.2111.repo && sed -i 's/url_tmp/mirrors.aliyun.com/g' /etc/yum.repos.d/Centos-vault-8.5.2111.repo sed -i 's/mirrors.aliyun.com/mirrors.cloud.aliyuncs.com/g' /etc/yum.repos.d/epel-archive-8.repo

1.4 缓存

从新创建缓存

复制代码
1
yum clean all && yum makecache

1.5 注意

如果从装了系统,需要清除本地 SSH 协议

复制代码
1
ssh-keygen -R "服务器地址"

转载为:https://blog.csdn.net/qq_44831808/article/details/123644378

最后

以上就是年轻跳跳糖最近收集整理的关于Errors during downloading metadata for repository ‘AppStream‘的全部内容,更多相关Errors内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(57)

评论列表共有 0 条评论

立即
投稿
返回
顶部