rror: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
时间: 2023-09-21 12:09:51 浏览: 150
这个错误通常发生在CentOS 8停止服务后,使用yum源安装时。解决这个问题的方法是修改yum源。首先,打开终端并切换到/etc/yum.repos.d/目录。然后,使用以下命令注释掉mirrorlist,并将baseurl修改为http://vault.centos.org。如果还没有安装wget,可以使用yum install wget –y命令安装。接下来,使用wget命令将CentOS-Base.repo文件更新为阿里云源。最后,运行yum clean all和yum makecache命令来清理和更新yum源。这样就可以解决错误并正常安装软件了。
引用<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [Error: Failed to download metadata for repo ‘appstream‘: Cannot prepare internal mirrorlist](https://blog.csdn.net/weixin_51689532/article/details/127533832)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* [ Failed to download metadata for repo ‘appstream‘: Cannot prepare internal mirrorlist: No URLs](https://blog.csdn.net/Indra_ran/article/details/127066940)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文