宇筱博客

  • 解决办法
  • 学无止境
  • 记录时光
  • 百宝箱
宇筱博客
点滴记忆,汇聚成海。
  1. 首页

  2. Warning: Undefined array key 0 in /www/wwwroot/www.timeit.cn/wp-content/themes/kratos-4.3.2/single.php on line 30

    Warning: Attempt to read property "term_id" on null in /www/wwwroot/www.timeit.cn/wp-content/themes/kratos-4.3.2/single.php on line 30

    Warning: Undefined property: WP_Error::$term_id in /www/wwwroot/www.timeit.cn/wp-content/themes/kratos-4.3.2/single.php on line 35

    Warning: Undefined property: WP_Error::$name in /www/wwwroot/www.timeit.cn/wp-content/themes/kratos-4.3.2/single.php on line 37

    Warning: Undefined property: WP_Error::$parent in /www/wwwroot/www.timeit.cn/wp-content/themes/kratos-4.3.2/single.php on line 38
  3. 正文

centos8 Cannot prepare internal mirrorlist: No URLs in mirrorlist

2022年2月10日 605点热度 0人点赞 0条评论

centos8 yum命令报错

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


原因:
2022 年 1 月 31 日,Cent OS团队终于从官方镜像中移除了 CentOS 8 的所有软件包。CentOS 8 已于 2021 年 12 月 31 日结束生命周期。官方临时镜像地址从 mirror.centos.org 移到 https://vault.centos.org


解决方案:
root用户执行以下命令解决

cd /etc/yum.repos.d/
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-*

原文链接:

https://blog.csdn.net/l2539469416/article/details/122813043
标签: 暂无
最后更新:2022年2月10日

小渔民

这个人很懒,什么都没留下

点赞

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

COPYRIGHT © 2025 宇筱博客. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

豫ICP备15017825号-2