未能下载用于repo appstream的元数据

发布于 2025-02-10 03:32:17 字数 1594 浏览 0 评论 0 原文

Centos 8 上运行,今天要安装新软件包,并且在要运行之前:

YUM UPDATE -Y

但得到了:

未能下载用于repo'AppStream'的元数据:无法准备 内部镜像列表:MirrorList中没有URL

然后我进行了搜索并找到了解决方案对此进行修复:

sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*

我这样做了,但仍然存在错误,是否持续存在,有什么想法吗?如何解决这个问题? 2022年有新解决方案吗?

使用此

现在错误:

在下载存储库“ Extras”的元数据时出现错误:

Running on centos 8 today want to install new package and before it wants to run:

yum update -y

but got this:

Failed to download metadata for repo 'appstream': Cannot prepare
internal mirrorlist: No URLs in mirrorlist

Then I did search and found a solution to fix it:

sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*

I did this but still error persist, any idea? how to fix this? Is there new solution in 2022?

After use this solution

Now error:

Errors during downloading metadata for repository 'extras':

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

别念他 2025-02-17 03:32:17

Centos 8达到生命的终结,Ce​​ntos 8存储库的内容已转移到Vault.centos.org。请更新您的Centos YUM存储库路径,从'Mirrir.centos.org'到'Vault.centos.org'以解决问题。

The CentOS 8 reaching its end of life, the content from the CentOS 8 repositories has been moved to vault.centos.org. Please update your CentOS yum repository paths from 'mirror.centos.org' to 'vault.centos.org' to resolve the issue.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文