CentOS-8 - AppStream 46 B/s | 38 B 00:00
Error: Failed to download metadata for repo 'AppStream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
# cat /etc/redhat-release
CentOS Linux release 8.1.1911 (Core)
服務(wù)器是 CentOS
解決辦法
自2022年1月31日起栈幸,CentOS團(tuán)隊(duì)從官方鏡像中移除CentOS 8的所有包消返,但軟件包仍在官方鏡像上保留一段時(shí)間〈鹩妫現(xiàn)在被轉(zhuǎn)移到https://vault.centos.org。如需繼續(xù)運(yùn)行舊CentOS 8摩钙,可以在/etc/yum.repos中更新repos.d,使用vault.centos.org代替mirror.centos.org
sudo sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sudo sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
成功
參考:
https://techglimpse.com/failed-metadata-repo-appstream-centos-8/
https://blog.csdn.net/watson2017/article/details/122887710